a year ago
OpenAPI2MCP (Model Context Protocol) that allows AI clients to call any OpenAPI-compatible REST API through the MCP interface. This tool converts OpenAPI specifications into MCP tools, enabling AI clients to interact with external APIs seamlessly.
Tools
post_pet
put_pet
get_pet_findByStatus
get_pet_findByTags
get_pet_petId
post_pet_petId
delete_pet_petId
post_pet_petId_uploadImage
get_store_inventory
post_store_order
get_store_order_orderId
delete_store_order_orderId
post_user
post_user_createWithList
get_user_login
get_user_logout
get_user_username
put_user_username
delete_user_username
Server Config
{
"mcpServers": {
"petstore": {
"command": "npx",
"args": [
"-y",
"openapi2mcp"
],
"env": {
"TRANSPORT_TYPE": "stdio",
"API_BASE_URL": "https://petstore3.swagger.io/api/v3",
"OPENAPI_SPEC_URL": "https://petstore3.swagger.io/api/v3/openapi.json",
"HEADERS": "{\"Authorization\":\"Bearer your-token\",\"Content-Type\":\"application/json\"}"
}
}
}
}