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

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)
  • Interpolation von Umgebungsvariablen 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

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

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
                    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