Turns an OpenAPI or Swagger spec into MCP tools so AI assistants can call that API.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add api-to -- npx -y @tyk-technologies/api-to-mcp --spec https://petstore3.swagger.io/api/v3/openapi.json~/.codex/config.toml
[mcp_servers.api-to]
command = "npx"
args = ["-y", "@tyk-technologies/api-to-mcp", "--spec", "https://petstore3.swagger.io/api/v3/openapi.json"]
# codex mcp add api-to -- npx -y @tyk-technologies/api-to-mcp --spec https://petstore3.swagger.io/api/v3/openapi.json~/.cursor/mcp.json
{
"mcpServers": {
"api-to": {
"command": "npx",
"args": [
"-y",
"@tyk-technologies/api-to-mcp",
"--spec",
"https://petstore3.swagger.io/api/v3/openapi.json"
]
}
}
}.vscode/mcp.json
{
"servers": {
"api-to": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@tyk-technologies/api-to-mcp",
"--spec",
"https://petstore3.swagger.io/api/v3/openapi.json"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"api-to": {
"command": "npx",
"args": [
"-y",
"@tyk-technologies/api-to-mcp",
"--spec",
"https://petstore3.swagger.io/api/v3/openapi.json"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"api-to": {
"command": "npx",
"args": [
"-y",
"@tyk-technologies/api-to-mcp",
"--spec",
"https://petstore3.swagger.io/api/v3/openapi.json"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"api-to": {
"command": "npx",
"args": [
"-y",
"@tyk-technologies/api-to-mcp",
"--spec",
"https://petstore3.swagger.io/api/v3/openapi.json"
]
}
}
}