mcpgate
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcpgateturn this OpenAPI spec into MCP tools: https://petstore.swagger.io/v2/swagger.json"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
| |
| |
| |
| |
|
mcpgate
Welcome to mcpgate's documentation!
A stateless gateway that turns any OpenAPI spec into MCP tools on the fly.
Quick Start
Run mcpgate directly with uvx — no installation needed:
uvx mcpgateRelated MCP server: MCP Adapter
Examples
Nametag
Connect an MCP client to the Nametag API without any custom server code.
1. Start the gateway:
uvx mcpgate --port 80002. Configure your MCP client (e.g. Claude Desktop — claude_desktop_config.json):
{
"mcpServers": {
"Nametag": {
"baseUrl": "http://localhost:8000/mcp/",
"headers": {
"X-OpenAPI-URL": "https://app.nametag.one/api/openapi.json",
"X-API-URL": "https://app.nametag.one",
"X-Cookies": "YOUR_SESSION_COOKIE"
}
}
}
}To get YOUR_SESSION_COOKIE, open the Nametag web app in your browser, open DevTools → Application → Cookies, and copy the value of the session cookie (e.g. __Secure-authjs.session-token=<value>). Pass it as X-Cookies: __Secure-authjs.session-token=<value>.
The gateway fetches the OpenAPI spec from X-OpenAPI-URL once and caches it, then proxies every MCP tool call to X-API-URL with your session cookie attached — no backend changes required.
Headers
mcpgate is configured per-request via HTTP headers sent by the MCP client:
Header | Required | Description |
| Yes | URL of the OpenAPI JSON specification to load |
| Yes | Base URL of the target API for proxied requests |
| No | Cookie string to forward with API requests |
When both x-openapi-url and x-api-url are present, mcpgate fetches the
OpenAPI spec, generates MCP tools from it, and proxies tool calls to the target
API. When these headers are absent, the server returns no tools.
Installation
To install mcpgate as a persistent CLI tool:
# With uv
uv tool install mcpgate
# With pipx
pipx install mcpgateOr add it as a dependency:
uv add mcpgate
pip install mcpgateContributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
More details can be found in CONTRIBUTING.
Contributors ✨
License
This project was created with the MicaelJarniac/crustypy template.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/MicaelJarniac/mcpgate'
If you have feedback or need assistance with the MCP directory API, please join our Discord server