1. Get your API token
Every connection authenticates with your personal Leeway API token. Find it in your account area. Replace YOUR_TOKEN in all examples with your real token.
Pick your client and follow the steps. One API token works for all of them.
Every connection authenticates with your personal Leeway API token. Find it in your account area. Replace YOUR_TOKEN in all examples with your real token.
There are three paths — pick the one your client supports.
Streamable HTTP with a bearer token. For Cursor, VS Code and most MCP clients.
A tiny bridge via npx — no OAuth, no Leeway server to install. For Claude Desktop.
For assistants without MCP that expect an OpenAPI schema — e.g. Custom GPTs or other AI clients.
Cursor connects remotely over Streamable HTTP. The fastest path is the one-click install; alternatively add the server to mcp.json manually.
{
"mcpServers": {
"leeway-api": {
"url": "https://mcp.leeway.tech/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
}
}Claude Desktop's built-in "Add custom connector" only supports OAuth, which our token-based API doesn't use. Instead, bridge the hosted Leeway server into stdio with the mcp-remote package — via npx, so there's no Leeway server to install or host yourself.
{
"mcpServers": {
"leeway": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.leeway.tech/mcp",
"--header",
"Authorization:Bearer YOUR_TOKEN"
]
}
}
}VS Code (with an MCP-capable extension) connects remotely over Streamable HTTP — the same config as Cursor.
{
"mcpServers": {
"leeway-api": {
"url": "https://mcp.leeway.tech/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
}
}Assistants that don't support MCP can be connected using our OpenAPI specification. You provide the JSON schema and authenticate via a query parameter.
https://api.leeway.tech/openapi.jsonhttps://api.leeway.tech?apitoken=YOUR_TOKENAny MCP-compatible client connects with the same two pieces: the endpoint and the Authorization header. The endpoint is meant for MCP clients — not for opening in a browser (there you only get an auth message).
https://mcp.leeway.tech/mcpAuthorization: Bearer YOUR_TOKENCheck that the server is enabled and refreshed in the client. After editing the config, a restart or refresh is usually required.
YOUR_TOKEN was not replaced, or the token is invalid. Get a fresh token in your account area.
The free tier includes 50 request units per day. For production use, the Data API plan offers 100,000 per day.