把符合 OpenAPI/Swagger 规范的 REST API 转换为 MCP 工具,让智能体直接调用这些接口。
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add swagger -- node packages/mcp-swagger-server/dist/index.js~/.codex/config.toml
[mcp_servers.swagger]
command = "node"
args = ["packages/mcp-swagger-server/dist/index.js"]
# codex mcp add swagger -- node packages/mcp-swagger-server/dist/index.js~/.cursor/mcp.json
{
"mcpServers": {
"swagger": {
"command": "node",
"args": [
"packages/mcp-swagger-server/dist/index.js"
]
}
}
}.vscode/mcp.json
{
"servers": {
"swagger": {
"type": "stdio",
"command": "node",
"args": [
"packages/mcp-swagger-server/dist/index.js"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"swagger": {
"command": "node",
"args": [
"packages/mcp-swagger-server/dist/index.js"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"swagger": {
"command": "node",
"args": [
"packages/mcp-swagger-server/dist/index.js"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"swagger": {
"command": "node",
"args": [
"packages/mcp-swagger-server/dist/index.js"
]
}
}
}