Skip to main content
Glama

MCP YAML API

by molavec

MCP YAML-API

Ein Model Context Protocol (MCP)-Server, der Tools aus in YAML-Dateien definierten API-Konfigurationen erstellt. Mit diesem Server können Sie MCP-Tools erstellen, indem Sie einfach API-Endpunkte in einer YAML-Konfigurationsdatei definieren. So können Sie externe APIs problemlos in Ihr MCP-Ökosystem integrieren.

Merkmale

  • Konfigurieren Sie mehrere API-Endpunkte mit YAML
  • Unterstützt alle HTTP-Methoden (GET, POST, PATCH, PUT, DELETE)
  • Umgebungsvariableninterpolation für vertrauliche Daten
  • Automatische Parametergenerierung aus URL-Vorlagen
  • Fabrikmuster zur Werkzeugerstellung
  • Vollständige MCP-Serverimplementierung

Installation

npm install -g mcp-yaml-api

Konfiguration

Erstellen Sie eine api.yaml Datei in Ihrem Projekt:

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

Erstellen Sie eine .env Datei für Ihre API-Token:

API_TOKEN=your_api_token_here

Verwendung

Führen Sie den MCP-Server aus:

mcp-yaml-api

Der Server erstellt MCP-Tools für jeden API-Endpunkt, der in Ihrer Datei api.yaml definiert ist.

YAML-Konfiguration

Jeder API-Endpunkt in der YAML-Datei sollte Folgendes haben:

  • url : Die Endpunkt-URL (unterstützt Pfadparameter wie {id} )
  • method : HTTP-Methode (GET, POST, PATCH, PUT, DELETE)
  • api-token : API-Token (unterstützt Umgebungsvariablen)
  • content : Konfiguration anfordern
    • headers : Anforderungsheader
    • body : Anforderungstextschema (für POST, PUT, PATCH)

Beispielkonfiguration

Ein vollständiges Beispiel mit allen HTTP-Methoden finden Sie api.yaml .

Beitragen

  1. Forken Sie das Repository
  2. Erstellen Sie Ihren Feature-Zweig
  3. Übernehmen Sie Ihre Änderungen
  4. Push zum Zweig
  5. Erstellen Sie einen neuen Pull Request

Lizenz

MIT

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.

Ein Model Context Protocol-Server, der Tools aus in YAML-Dateien definierten API-Konfigurationen erstellt und so eine einfache Integration externer APIs in ein MCP-Ökosystem ohne Codierung ermöglicht.

  1. Merkmale
    1. Installation
      1. Konfiguration
        1. Verwendung
          1. YAML-Konfiguration
            1. Beispielkonfiguration
              1. Beitragen
                1. Lizenz

                  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