Turns an OpenAPI or Swagger spec into MCP tools so AI assistants can call that API.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
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"
]
}
}
}