swagger-petstore-mcp
OpenAPI-to-MCP example server generated with MCPForge. Demonstrates how REST APIs can be converted into production-ready MCP servers for Claude, Cursor, Windsurf, and other MCP clients.
README
Swagger Petstore MCP
MCP server for the Swagger Petstore API, generated with MCPForge.
The Petstore is a canonical OpenAPI 3.0 demo API. This MCP server exposes all 19 Petstore endpoints as tools that Claude and other MCP-compatible AI agents can call directly.
Live Endpoint
https://www.mcpforge.tech/api/servers/swagger-petstore-openapi-3-0-susoj
No setup required — connect Claude Desktop or any MCP client to this endpoint and start using it immediately.
Usage
Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"swagger-petstore-mcp": {
"url": "https://www.mcpforge.tech/api/servers/swagger-petstore-openapi-3-0-susoj",
"transport": "http"
}
}
}
Config file location:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Cursor
Add to your Cursor MCP settings:
{
"mcpServers": {
"swagger-petstore-mcp": {
"url": "https://www.mcpforge.tech/api/servers/swagger-petstore-openapi-3-0-susoj",
"transport": "http"
}
}
}
Available Tools
19 tools across three risk tiers:
Read-only (6 tools)
| Tool | Description |
|---|---|
getPetById |
Find a pet by its ID |
findPetsByStatus |
Find pets by status (available, pending, sold) |
findPetsByTags |
Find pets by tags |
getInventory |
Returns pet inventories by status |
getOrderById |
Find a purchase order by ID |
getUserByName |
Get user by username |
Side Effect (10 tools — write operations)
| Tool | Description |
|---|---|
addPet |
Add a new pet to the store |
updatePet |
Update an existing pet |
updatePetWithForm |
Update a pet using form data |
uploadFile |
Upload an image file for a pet |
placeOrder |
Place an order for a pet |
createUser |
Create a new user |
createUsersWithList |
Create a list of users |
updateUser |
Update an existing user |
loginUser |
Log user into the system |
logoutUser |
Log out the current user session |
Critical — Disabled by default (3 tools)
| Tool | Description |
|---|---|
deletePet |
Delete a pet by ID (disabled) |
deleteOrder |
Delete a purchase order (disabled) |
deleteUser |
Delete a user account (disabled) |
Destructive tools are disabled by default. Enable them in your MCPForge dashboard under Tools → Permissions if needed.
Security Report
Security Score: 75 / 100 · Good
| Dimension | Result |
|---|---|
| Tool Quality Score | 89 / 100 |
| Read-only tools | 6 |
| Side-effect tools | 10 |
| Critical tools (blocked) | 3 |
| Governance controls | 3 / 5 |
Full report: mcpforge.tech/examples/petstore-security-report
Generated with MCPForge
MCPForge converts any OpenAPI spec into a hosted, governed MCP server in under 60 seconds.
- Verify any MCP server for free at mcpforge.tech/verify
- Browse the verified MCP directory at mcpforge.tech/verified
- Generate your own MCP server at mcpforge.tech
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.