Skip to main content
Glama

MCP YAML API

by molavec

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. 新しいプルリクエストを作成する

ライセンス

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

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

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.

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

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

                  Related MCP Servers

                  • -
                    security
                    F
                    license
                    -
                    quality
                    A 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 -
                    33
                    Python
                    • Linux
                    • Apple
                  • -
                    security
                    A
                    license
                    -
                    quality
                    A 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 -
                    15
                    Python
                    MIT License
                  • -
                    security
                    A
                    license
                    -
                    quality
                    A server that translates Model Context Protocol (MCP) tool callings to traditional HTTP API requests, allowing existing HTTP APIs to be integrated into MCP territory through configurable mappings.
                    Last updated -
                    1
                    Python
                    Apache 2.0
                  • -
                    security
                    F
                    license
                    -
                    quality
                    A server implementation of the Model Context Protocol (MCP) that provides REST API endpoints for managing and interacting with MCP resources.
                    Last updated -
                    Python

                  View all related MCP servers

                  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/molavec/mcp-yaml-api'

                  If you have feedback or need assistance with the MCP directory API, please join our Discord server