Petstore MCP Server

Swagger Petstore API (v1.0.27) as MCP for testing and prototyping powered by the HAPI MCP server

Community: Submitted by a user or imported; check the owner before granting accessOnlineNo sign-inGlobalFreeRead-only

What it can do

    What data it sees

    Do you need an account

    No: the server works without sign-in

    Swagger Petstore API (v1.0.27) as MCP for testing and prototyping powered by the HAPI MCP server

    How to connect

    How to connect Petstore MCP Server to Claude

    The server address to paste into Claude settings:

    https://petstore.run.mcp.com.ai/mcp

    1. Open Claude (claude.ai or the desktop app).
    2. Go to Settings → Connectors.
    3. Click Add custom connector.
    4. Paste the server address copied below into Remote MCP server URL and click Add.
    5. In a chat, click + → Connectors and switch the new connector on.

    Custom connectors are available on Free, Pro, Max, Team and Enterprise plans (Free is limited to one). On Team and Enterprise an organization Owner adds the connector first under Organization settings → Connectors.

    Authorization

    After you click Add, a sign-in window for the service opens. Sign in with your own account and approve access. Claude never sees your password.

    How to connect Petstore MCP Server to ChatGPT

    The server address to paste into ChatGPT settings:

    https://petstore.run.mcp.com.ai/mcp

    1. Open ChatGPT in a browser (chatgpt.com). A Plus, Pro, Business, Enterprise or Edu plan is required.
    2. Turn on developer mode once: Settings → Apps → Advanced settings → Developer mode.
    3. Open Settings → Connectors and click Create.
    4. Fill in the form: Name (anything), Description (one line about what the service does), MCP server URL (copy it below).
    5. Under Authentication choose OAuth if the service requires sign-in, otherwise None. Click Create.
    6. In a new chat open + → Apps/Connectors and enable the connector.

    OpenAI has renamed this section before (Connectors → Apps/Plugins). If the label differs, search settings for "developer mode". On Business/Enterprise workspaces an admin must allow custom connectors first.

    Authorization

    On first use ChatGPT opens the service's sign-in window. Sign in and approve access.

    How to connect Petstore MCP Server to Cursor

    The server address to paste into Cursor settings:

    https://petstore.run.mcp.com.ai/mcp

    Fastest: click Open in Cursor below and confirm the prompt.

    Manually:

    1. In Cursor open Settings → Cursor Settings → MCP and click Add new global MCP server.
    2. Paste the JSON copied below into ~/.cursor/mcp.json (per project: .cursor/mcp.json in the repo root).
    3. Save the file. The server appears in the MCP list; authorize it there if asked.

    Authorization

    If the service needs sign-in, an authorize button appears next to the server in the MCP list.

    Server tool list (19)

    Raw names from tools/list. Only developers need these.

    updatePetUpdate an existing pet. - Update an existing pet by Id.
    addPetAdd a new pet to the store. - Add a new pet to the store.
    findPetsByStatusFinds Pets by status. - Multiple status values can be provided with comma separated strings.
    findPetsByTagsFinds Pets by tags. - Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
    getPetByIdFind pet by ID. - Returns a single pet.
    updatePetWithFormUpdates a pet in the store with form data. - Updates a pet resource based on the form data.
    deletePetDeletes a pet. - Delete a pet.
    uploadFileUploads an image. - Upload image of the pet.
    getInventoryReturns pet inventories by status. - Returns a map of status codes to quantities.
    placeOrderPlace an order for a pet. - Place a new order in the store.
    getOrderByIdFind purchase order by ID. - For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions.
    deleteOrderDelete purchase order by identifier. - For valid response try integer IDs with value < 1000. Anything above 1000 or non-integers will generate API errors.
    createUserCreate user. - This can only be done by the logged in user.
    createUsersWithListInputCreates list of users with given input array. - Creates list of users with given input array.
    loginUserLogs user into the system. - Log into the system.
    logoutUserLogs out current logged in user session. - Log user out of the system.
    getUserByNameGet user by user name. - Get user detail based on username.
    updateUserUpdate user resource. - This can only be done by the logged in user.
    deleteUserDelete user resource. - This can only be done by the logged in user.