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
参照してください。
貢献
- リポジトリをフォークする
- 機能ブランチを作成する
- 変更をコミットする
- ブランチにプッシュする
- 新しいプルリクエストを作成する
ライセンス
マサチューセッツ工科大学
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
YAML ファイルで定義された API 構成からツールを作成し、コーディングなしで外部 API を MCP エコシステムに簡単に統合できるモデル コンテキスト プロトコル サーバー。
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides tools for code modification and generation via Large Language Models, allowing users to create, modify, rewrite, and delete files using structured XML instructions.Last updated -12PythonMIT License
- AsecurityAlicenseAqualityA comprehensive Model Context Protocol server that provides advanced Node.js development tooling for automating project creation, component generation, package management, and documentation with AI-powered assistance.Last updated -72JavaScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server implementation that enables connection between OpenAI APIs and MCP clients for coding assistance with features like CLI interaction, web API integration, and tool-based architecture.Last updated -28Python
- -securityAlicense-qualityA streamlined foundation for building Model Context Protocol servers in Python, designed to make AI-assisted development of MCP tools easier and more efficient.Last updated -14PythonMIT License