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