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
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
Configuration
Create an api.yaml
file in your project:
Create a .env
file for your API tokens:
Usage
Run the MCP server:
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
This server cannot be installed
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.
Related MCP Servers
- -securityAlicense-qualityMCP 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 -43TypeScriptMIT License
- -securityAlicense-qualityMCP 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 -132TypeScriptMIT License
- -securityAlicense-qualityAn MCP server that exposes HTTP methods defined in an OpenAPI specification as tools, enabling interaction with APIs via the Model Context Protocol.Last updated -2PythonMIT License
- -securityAlicense-qualityA 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 -1112TypeScriptMIT License