
kadykov/mcp-openapi-schema-explorer
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
kadykov/mcp-openapi-schema-explorer は [https://github.com/kadykov/mcp-openapi-schema-explorer. からインポートされた MCP サーバー候補です
概要
kadykov/mcp-openapi-schema-explorer は [https://github.com/kadykov/mcp-openapi-schema-explorer. からインポートされた MCP サーバー候補です
概要(AI 翻訳)
MCP (Model Context Protocol) サーバは、OpenAPI (v3.0) および Swagger (v2.0) の仕様を、MCP Resource Templates 経由で提供するものです。
##プロジェクトゴール
このプロジェクトの主な目的は、MCP クライアント (Cline や Claude Desktop のような) が、LLM のコンテキストウィンドウにファイル全体をロードすることなく、大規模な OpenAPI 仕様の構造と詳細を探索できるようにすることです。 これは、読み取り専用データ探索のためのパラメータ化されたアクセスパターンを提供するMCPリソーステンプレートを介して仕様の部分を公開することによってこれを実現します。
ローカルファイルパスとリモート HTTP/HTTPS URL の両方からのロード仕様をサポートしています。 Swagger v2.0 仕様は、ロード時に OpenAPI v3.0 に自動的に変換されます。
注記: このサーバはresource template(未計算のリソース)を提供します。 MCP クライアントは、[
resources/templates/list] プロトコルメソッドでこれらのテンプレートにアクセスします。 リソーステンプレートの詳細については、MCPリソーステンプレートのドキュメントを参照してください。
#MCPリソーステンプレートの理由
Model Context プロトコルは、ResourcesとToolsの両方を定義しています.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MCP OpenAPI Schema Explorer
An MCP (Model Context Protocol) server that provides token-efficient access to OpenAPI (v3.0) and Swagger (v2.0) specifications via MCP Resource Templates.
Project Goal
The primary goal of this project is to allow MCP clients (like Cline or Claude Desktop) to explore the structure and details of large OpenAPI specifications without needing to load the entire file into an LLM’s context window. It achieves this by exposing parts of the specification through MCP Resource Templates, which provide parameterized access patterns for read-only data exploration.
This server supports loading specifications from both local file paths and remote HTTP/HTTPS URLs. Swagger v2.0 specifications are automatically converted to OpenAPI v3.0 upon loading.
Note: This server provides resource templates (not pre-enumerated resources). MCP clients access these templates through the
resources/templates/listprotocol method. For more information about resource templates, see the MCP Resource Templates documentation.
Why MCP Resource Templates?
The Model Context Protocol defines both Resources and Tools.
- Resources: Represent data sources (like files, API responses). They are ideal for read-only access and exploration by MCP clients.
- Resource Templates: A special type of resource that uses parameterized URIs (e.g.,
openapi://paths/{path}/{method}), allowing dynamic access without pre-enumerating all possible values.
- Resource Templates: A special type of resource that uses parameterized URIs (e.g.,
- Tools: Represent executable actions or functions, often used by LLMs to perform tasks or interact with external systems.
インストール
npx -y mcp-openapi-schema-explorer@latest <path-or-url-to-spec> --output-format yaml設定
{
"mcpServers": {
"My API Spec (npx)": {
"command": "npx",
"args": [
"-y",
"mcp-openapi-schema-explorer@latest",
"<path-or-url-to-spec>",
"--output-format",
"yaml"
],
"env": {}
}
}
}