MCP YAML API

by molavec

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サーバーの実装

インストール

npm install -g mcp-yaml-api

構成

プロジェクトにapi.yamlファイルを作成します。

apis: getUser: url: https://api.example.com/users/{id} method: GET api-token: ${API_TOKEN} content: headers: Accept: application/json

API トークン用の.envファイルを作成します。

API_TOKEN=your_api_token_here

使用法

MCP サーバーを実行します。

mcp-yaml-api

サーバーは、 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参照してください。

貢献

  1. リポジトリをフォークする
  2. 機能ブランチを作成する
  3. 変更をコミットする
  4. ブランチにプッシュする
  5. 新しいプルリクエストを作成する

ライセンス

マサチューセッツ工科大学

-
security - not tested
F
license - not found
-
quality - not tested

YAML ファイルで定義された API 構成からツールを作成し、コーディングなしで外部 API を MCP エコシステムに簡単に統合できるモデル コンテキスト プロトコル サーバー。

  1. 特徴
    1. インストール
      1. 構成
        1. 使用法
          1. YAML構成
            1. 構成例
              1. 貢献
                1. ライセンス

                  Related MCP Servers

                  • -
                    security
                    A
                    license
                    -
                    quality
                    MCP 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 -
                    4
                    3
                    TypeScript
                    MIT License
                  • -
                    security
                    A
                    license
                    -
                    quality
                    MCP 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 -
                    13
                    2
                    TypeScript
                    MIT License
                  • -
                    security
                    A
                    license
                    -
                    quality
                    An MCP server that exposes HTTP methods defined in an OpenAPI specification as tools, enabling interaction with APIs via the Model Context Protocol.
                    Last updated -
                    2
                    Python
                    MIT License
                  • -
                    security
                    A
                    license
                    -
                    quality
                    A 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 -
                    111
                    2
                    TypeScript
                    MIT License
                    • Apple

                  View all related MCP servers

                  ID: 01spoor8mp