Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"open-api-to-mcp-server": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
This project allows developers to expose their website's API to AI agents (LLMs) using the Model Context Protocol (MCP). It dynamically generates MCP tools from an OpenAPI (Swagger) specification and serves them via both HTTP and stdio.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in developer-tools
Manage Supabase projects — databases, auth, storage, and edge functions
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
Asynchronous coordination layer for AI coding agents: identities, inboxes, searchable threads, and advisory file leases over FastMCP + Git + SQLite
MCP Security Weekly
Get CVE alerts and security updates for Open_api_to_mcp_server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
This project allows developers to expose their website's API to AI agents (LLMs) using the Model Context Protocol (MCP). It dynamically generates MCP tools from an OpenAPI (Swagger) specification and serves them via both HTTP and stdio.
# Build the server
cd open_api_to_mcp_server
# If you have Go installed:
go build -o open_api_to_mcp_server.exe main.go
# Run the server
./open_api_to_mcp_server.exe
The server will start:
http://localhost:8080Send a POST request to /upload with your OpenAPI JSON file:
curl -X POST http://localhost:8080/upload -F "spec=@path/to/openapi.json"
Send a POST request to /mcp with the tool name (operationId) and arguments:
curl -X POST http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-d '{
"params": {
"name": "show_all_divisions__get",
"arguments": { "depth": 2 }
}
}'
show_all_divisions__get with the desired operationId from your OpenAPI spec.Set environment variables for authentication if your API requires it:
BEARER_TOKEN for Bearer tokenAPI_KEY for API keySee openapi.json for a sample spec for Vietnam Provinces API.
MIT
For more details on MCP, see Model Context Protocol documentation.