Integrations
Supports environment variable interpolation for API tokens and sensitive data through .env files, allowing secure storage of credentials used in API configurations.
Provides installation through the npm package registry with global installation support via 'npm install -g mcp-yaml-api'.
Enables defining and configuring multiple API endpoints using YAML syntax, supporting various HTTP methods, parameter generation, and request configurations.
MCP YAML API
YAMLファイルで定義されたAPI設定からツールを作成するModel Context Protocol(MCP)サーバーです。このサーバーを使用すると、YAML設定ファイルでAPIエンドポイントを定義するだけでMCPツールを作成できるため、外部APIをMCPエコシステムに簡単に統合できます。
特徴
- YAML を使用して複数の API エンドポイントを構成する
- すべての HTTP メソッド (GET、POST、PATCH、PUT、DELETE) をサポート
- 機密データの環境変数補間
- URLテンプレートからの自動パラメータ生成
- ツール作成のためのファクトリーパターン
- 完全なMCPサーバーの実装
インストール
構成
プロジェクトにapi.yaml
ファイルを作成します。
API トークン用の.env
ファイルを作成します。
使用法
MCP サーバーを実行します。
サーバーは、 api.yaml
ファイルで定義された各 API エンドポイントに対して MCP ツールを作成します。
YAML構成
YAML ファイル内の各 API エンドポイントには次のものが必要です。
url
: エンドポイント URL ({id}
のようなパスパラメータをサポート)method
: HTTPメソッド (GET、POST、PATCH、PUT、DELETE)api-token
: APIトークン(環境変数をサポート)content
: リクエスト構成headers
: リクエストヘッダーbody
: リクエストボディスキーマ(POST、PUT、PATCH用)
構成例
すべての HTTP メソッドの完全な例については、 api.yaml
参照してください。
貢献
- リポジトリをフォークする
- 機能ブランチを作成する
- 変更をコミットする
- ブランチにプッシュする
- 新しいプルリクエストを作成する
ライセンス
マサチューセッツ工科大学
Related MCP Servers
- -securityAlicense-qualityMCP Server simplifies the implementation of the Model Context Protocol by providing a user-friendly API to create custom tools and manage server workflows efficiently.Last updated -43TypeScriptMIT License
- -securityAlicense-qualityMCP Server provides a simpler API to interact with the Model Context Protocol by allowing users to define custom tools and services to streamline workflows and processes.Last updated -132TypeScriptMIT License
- -securityAlicense-qualityAn MCP server that exposes HTTP methods defined in an OpenAPI specification as tools, enabling interaction with APIs via the Model Context Protocol.Last updated -2PythonMIT License
- -securityAlicense-qualityA Model Context Protocol server that exposes over 200+ APIs from API.market as MCP resources, allowing large language models to discover and interact with various APIs through natural language commands.Last updated -1112TypeScriptMIT License