Skip to main content
Glama

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

Related MCP server: mcp-server-llmling

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

Available Tools

7 tools
createUserB

Create a new user.

Inputs: name (required), email (required).

deleteUserA
DestructiveIdempotent

Delete a user by ID.

Inputs: id.

getUsersB
Read-onlyIdempotent

Retrieve a list of users.

Inputs: no named parameters.

getUsersWithQueryParametersA
Read-onlyIdempotent

Retrieve a list of users with pagination.

Inputs: page, limit.

getUserWithPathParametersB
Read-onlyIdempotent

Retrieve a user by ID.

Inputs: id.

replaceUserB

Replace an existing user.

Inputs: name (required), email (required), id.

updateUserC

Update an existing user.

Inputs: id, name, email.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 7 tools

    Disambiguation3/5

    The tools have overlapping purposes that could cause confusion, particularly between getUsers, getUsersWithQueryParameters, and getUserWithPathParameters, which all retrieve user data but with different parameters. However, the descriptions clarify the distinctions, such as pagination vs. ID-based retrieval, helping to mitigate misselection.

    Naming Consistency4/5

    The naming is mostly consistent with a verb_noun pattern (e.g., createUser, deleteUser), but there are minor deviations in the longer names like getUsersWithQueryParameters and getUserWithPathParameters, which include additional descriptors. Overall, the pattern is readable and predictable.

    Tool Count5/5

    With 7 tools, the count is well-scoped for a user management API, covering essential CRUD operations and additional query functionalities. Each tool serves a distinct purpose, making the set appropriately sized for the domain.

    Completeness5/5

    The tool set provides complete CRUD coverage for user management, including create, read (with variations for listing and specific retrieval), update, replace, and delete. There are no obvious gaps, and the surface supports full lifecycle operations without dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that exposes HTTP methods defined in an OpenAPI specification as tools, enabling interaction with APIs via the Model Context Protocol.
      8
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      A server for the Machine Chat Protocol (MCP) that provides a YAML-based configuration system for LLM applications, allowing users to define resources, tools, and prompts without writing code.
      298 PyPI
      5
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A server that enables interaction with any API that has a Swagger/OpenAPI specification through Model Context Protocol (MCP), automatically generating tools from API endpoints and supporting multiple authentication methods.
      115
      Apache 2.0