把传统 Web API 转换为 MCP 工具,支持运行时注册与删除接口、统一请求头、参数校验和按路径提取结果。
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add webapi -- npx -y @yinzhouzhi/webapi-mcp-server start~/.codex/config.toml
[mcp_servers.webapi]
command = "npx"
args = ["-y", "@yinzhouzhi/webapi-mcp-server", "start"]
# codex mcp add webapi -- npx -y @yinzhouzhi/webapi-mcp-server start~/.cursor/mcp.json
{
"mcpServers": {
"webapi": {
"command": "npx",
"args": [
"-y",
"@yinzhouzhi/webapi-mcp-server",
"start"
]
}
}
}.vscode/mcp.json
{
"servers": {
"webapi": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@yinzhouzhi/webapi-mcp-server",
"start"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"webapi": {
"command": "npx",
"args": [
"-y",
"@yinzhouzhi/webapi-mcp-server",
"start"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"webapi": {
"command": "npx",
"args": [
"-y",
"@yinzhouzhi/webapi-mcp-server",
"start"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"webapi": {
"command": "npx",
"args": [
"-y",
"@yinzhouzhi/webapi-mcp-server",
"start"
]
}
}
}