基于 OpenAPI 2/3 的 API 生成工具,1000+接口数秒生成(playground 可验证)。完整类型注释,支持内网。MCP + Skill/CLI 双模,可在 AI 编辑器中消费。
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add api-gen -- npx -y mcp-api-gen~/.codex/config.toml
[mcp_servers.api-gen]
command = "npx"
args = ["-y", "mcp-api-gen"]
# codex mcp add api-gen -- npx -y mcp-api-gen~/.cursor/mcp.json
{
"mcpServers": {
"api-gen": {
"command": "npx",
"args": [
"-y",
"mcp-api-gen"
]
}
}
}.vscode/mcp.json
{
"servers": {
"api-gen": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-api-gen"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"api-gen": {
"command": "npx",
"args": [
"-y",
"mcp-api-gen"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"api-gen": {
"command": "npx",
"args": [
"-y",
"mcp-api-gen"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"api-gen": {
"command": "npx",
"args": [
"-y",
"mcp-api-gen"
]
}
}
}