
MCP YAML API
A Model Context Protocol server that creates tools from API configurations defined in YAML files, allowing easy integration of external APIs into an MCP ecosystem without coding.
README
MCP YAML API
A Model Context Protocol (MCP) server that creates tools from API configurations defined in YAML files. This server allows you to create MCP tools by simply defining API endpoints in a YAML configuration file, making it easy to integrate external APIs into your MCP ecosystem.
Features
- Configure multiple API endpoints using YAML
- Supports all HTTP methods (GET, POST, PATCH, PUT, DELETE)
- Environment variable interpolation for sensitive data
- Automatic parameter generation from URL templates
- Factory pattern for tool creation
- Full MCP server implementation
Installation
npm install -g mcp-yaml-api
Configuration
Create an api.yaml
file in your project:
apis:
getUser:
url: https://api.example.com/users/{id}
method: GET
api-token: ${API_TOKEN}
content:
headers:
Accept: application/json
Create a .env
file for your API tokens:
API_TOKEN=your_api_token_here
Usage
Run the MCP server:
mcp-yaml-api
The server will create MCP tools for each API endpoint defined in your api.yaml
file.
YAML Configuration
Each API endpoint in the YAML file should have:
url
: The endpoint URL (supports path parameters like{id}
)method
: HTTP method (GET, POST, PATCH, PUT, DELETE)api-token
: API token (supports environment variables)content
: Request configurationheaders
: Request headersbody
: Request body schema (for POST, PUT, PATCH)
Example Configuration
See api.yaml
for a complete example with all HTTP methods.
Contributing
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.