About API Auto MCP Server
API Auto MCP Server generates an MCP server from a server's OpenAPI specification, letting AI access that server's API without hand-written integration code. The README shows configuration examples for Cursor and Visual Studio Code.
Key features
- 01Generate tools from an OpenAPI specification
- 02Provide API access without hand-written code
- 03Configuration examples for Cursor
- 04Configuration examples for Visual Studio Code
Use cases
- 01Making an OpenAPI-described API available to AI
- 02Adding the generated server to Cursor
- 03Configuring the generated server in Visual Studio Code
MCP support
Generates an MCP server from an OpenAPI specification and exposes the described API through tools for MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEAPI Auto MCP Server
API Auto MCP Server is a MCP Server auto generate tool by your server's OpenAPI specification. It allow your AI to access your server's API without writing any code.
Quick Start
You can visit the api-auto-mcp-server-demo for a quick start.
Or you can follow the steps below to set up the API Auto MCP Server for your own server:
With Cursor
Add the api-auto mcp server config to your .cursor/mcp.json, remember change the url to your own:
{
"mcpServers": {
// ... other servers
"api-auto": {
"command": "npx",
"args": [
"-y",
"api-auto-mcp-server",
"--openapi-url",
"http://your-openapi-json-url",
"--cookie",
"auth=your-cookie-here"
]
}
}
}
With Visual Studio Code
Add this to your .vscode/mcp.json, remember change the url to your own:
{
"servers": {
// ... other servers
"auto-api": {
"command": "npx",
"args": [
"-y",
"api-auto-mcp-server",
"--openapi-url",
"http://your-openapi-json-url",
"--cookie",
"auth=your-cookie-value"
]
}
}
}
Development
Develop Environment
- Node.js: >22.14.0
- Bun: >1.1.43
Run the MCP server by inspector
npx @modelcontextprotocol/inspector bun dev --cwd D:/path/to/this/project --openapi-url your-openapi-json-url --cookie "<your-cookie-name>=<your-cookie-value>"
License
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.