OpenAPI MCP Server
🤖 OpenAPI MCP サーバー
あらゆる OpenAPI サービスをモデル コンテキスト プロトコル (MCP) サーバーに変換し、MCP 仕様をサポートする AI エージェントおよびツールとのシームレスな統合を可能にするコマンドライン ツール。
[!NOTE] このツールはまだ開発初期段階です。ロードマップはこちらです
モデルコンテキストプロトコル (MCP) とは何ですか?
モデルコンテキストプロトコル(MCP)は、AIエージェントが外部ツールやサービスと連携するための標準化されたプロトコルです。AIモデルが統一されたインターフェースを通じて様々な機能を一貫して発見、理解、活用できるようにすることで、複数のサービスと連携できるAI搭載アプリケーションの構築を容易にします。
Related MCP server: mcpify
OpenAPI とは何ですか?
OpenAPI(旧称Swagger)は、RESTful Webサービスを記述、生成、利用、視覚化するための機械可読インターフェースファイルの仕様です。これにより、人間とコンピューターの両方が、ソースコードや追加のドキュメントにアクセスすることなく、サービスの機能を発見し、理解することができます。
このプロジェクトについて
このミドルウェアは、OpenAPI サービスと MCP クライアント間のブリッジとして機能します。その機能は次のとおりです。
OpenAPI仕様ファイルを入力として受け取ります
MCP準拠のサーバーを自動生成
受信リクエストを実際の OpenAPI サービスにプロキシします
MCP と REST の規則を変換します
これにより、元のサービスに変更を加えることなく、OpenAPI 仕様を備えた既存の REST API に、MCP を理解する AI エージェントがすぐにアクセスできるようになります。
インストール
npm install -g openapi-mcp-proxy使用法
npx openapi-mcp-proxy --spec ./path/to/openapi.yml --target http://your-api.com --port 3000オプション
-s, --spec <path>(必須): OpenAPI 仕様ファイルへのパス (env:OMP_OPENAPI_SPEC_FILE)-t, --target <url>(オプション): API サービスのターゲット URL (デフォルト: " http://localhost:8080 "、env:OMP_TARGET_BASE_URL)-p, --port <number>(オプション): MCP サーバーを実行するポート (デフォルト: "3000"、env:PORT)-V, --version: バージョン番号を表示する-h, --help: コマンドのヘルプを表示する
例
Petstore API 用の MCP サーバーを起動します
npx openapi-mcp-proxy --spec resources/petstore.openapi.yml --target https://petstore.swagger.io/v2テスト
MCP検査官
MCP サーバーをテストするには、モデル コンテキスト プロトコルを使用できます。
MCP Inspector をインストールします。
npx @modelcontextprotocol/inspectorMCPサーバーを起動する
インスペクターのUIに移動し、
/mcpで終わる正しいサーバーパスを入力します(例http://localhost:3000/mcpこれでMCPサーバーとやり取りできるようになりました。MCPインスペクターには、リクエストとレスポンスに関する詳細情報が表示されます。
VSコードで
VS Code の組み込みエージェント モードを使用すると、これが簡単になります。
VS Code を開き、エージェント モードを有効にします。
Cmd/Ctrl + Shift + Pを押します「GitHub Copilot Agent モードを切り替える」と入力します
「有効にする」を選択
MCP サーバーを追加します:
Cmd/Ctrl + Shift + Pを押します「MCP: サーバーを追加」と入力します
MCP サーバーの URL を
http://localhost:3000/mcpのように入力します**(末尾に/mcpが付きます)。**
Github Copilot チャットでは、新しいツールが取り上げられるはずです。
これで、VS Codeのエージェントインターフェースを介してMCPサーバーとやり取りできるようになりました。「今、ペットは何匹いますか?」と聞いてみてください。
VSコードでMCPサーバーを使用する方法の詳細については、 こちらをご覧ください。
貢献
貢献を歓迎します!お気軽にプルリクエストを送信してください。ロードマップはこちらです。
ライセンス
マサチューセッツ工科大学
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseDqualityCmaintenanceA tool that creates MCP (Model Context Protocol) servers from OpenAPI/Swagger specifications, enabling AI assistants to interact with your APIs.315047MIT
- AlicenseNot gradedqualityCmaintenanceTurns any OpenAPI specification into a fully working MCP server with a single command, enabling AI agents to call APIs without writing any glue code.8MIT
- AlicenseNot gradedqualityBmaintenanceAutomatically generates MCP server tools from OpenAPI specifications, enabling LLMs to interact with any API defined by an OpenAPI spec through natural language.19MIT
- AlicenseNot gradedqualityDmaintenanceConverts an OpenAPI spec into an MCP server, enabling AI agents to call your API without writing tool definitions or integration code.3MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Generate a typed SDK, CLI, and MCP server from any OpenAPI or GraphQL spec, and keep them current.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/JacerOmri/openapi-mcp-proxy'
If you have feedback or need assistance with the MCP directory API, please join our Discord server