mcp-link
Convert Any OpenAPI V3 API to MCP Server
claude mcp add --transport stdio automation-ai-labs-mcp-link go run main.go serve --port 8080 --host 0.0.0.0
How to use
MCP Link is a converter and adapter that exposes any OpenAPI v3 specification as an MCP-compatible server. It automatically generates an MCP interface for each endpoint defined in your API, so AI agents can discover, authenticate, and call those endpoints using the MCP protocol without modifying your original API implementation. The tool is designed to map OpenAPI paths, methods, and parameters into MCP endpoints, preserving operation semantics and supporting common authentication schemes as described by the OpenAPI spec. You can point MCP Link at any public or private OpenAPI document, and it will emit an MCP-facing interface that AI agents can consume via the generated MCP URL.
To use it, start the MCP Link server and provide the required OpenAPI spec URL and the target API base URL through the provided CLI flags. The server will then expose an MCP-compatible interface that AI agents can access. Check the Quick Start examples in the README for the correct URL shapes and parameter formats. The core idea is that the MCP Link service acts as a bridge: it reads the OpenAPI contract, creates a faithful MCP mapping, and serves that mapping to agents without requiring code changes to either the API or the agent runtime.
How to install
Prerequisites:
- Go 1.18+ installed on your system
- Git installed
- Access to the OpenAPI spec you want to convert (local path or URL)
Installation steps:
-
Clone the repository: git clone https://github.com/automation-ai-labs/mcp-link.git cd mcp-link
-
Install dependencies (Go modules will be resolved automatically): go mod download
-
Run the MCP Link server (example): go run main.go serve --port 8080 --host 0.0.0.0
-
Verify the server is running by visiting the configured URL or by checking logs. If you want to build a binary first, you can run: go build -o mcp-link ./... ./mcp-link serve --port 8080 --host 0.0.0.0
Additional notes
Tips and common considerations:
- MCP Link expects a valid OpenAPI v3 document. If your OpenAPI spec uses components security schemes, ensure the server supports the corresponding authentication headers described in the spec (the MCP mapping will reflect these where possible).
- The Quick Start includes a sample usage snippet showing how agents can reference the MCP endpoint via an sse-based URL pattern. You can adapt the host/port as needed for deployment environments (e.g., behind a reverse proxy or in a container).
- If you modify the OpenAPI spec, restart the MCP Link server to refresh the MCP mapping so agents see updated endpoints and parameters.
- When using with private APIs, ensure network access and credentials are supplied in the appropriate OpenAPI security definitions and/or host headers as part of the mapping.
Related MCP Servers
mcp-language
mcp-language-server gives MCP enabled clients access semantic tools like get definition, references, rename, and diagnostics.
context-space
Ultimate Context Engineering Infrastructure, starting from MCPs and Integrations
agentcontrolplane
ACP is the Agent Control Plane - a distributed agent scheduler optimized for simplicity, clarity, and control. It is designed for outer-loop agents that run without supervision, and make asynchronous tool calls like requesting human feedback on key operations. Full MCP support.
kodit
👩💻 MCP server to index external repositories
wanaku
Wanaku MCP Router
time
⏰ Time MCP Server: Giving LLMs Time Awareness Capabilities