Skip to Content
ExamplesGive Claude your API

πŸ”Œ Give Claude Code your own API

Stack β€” Trigger: Claude Code / any MCP client Β· Tools: your API (any schema) Β· Gateway: MCP (+ A2A, UTCP) Β· Auth: x-api-key Β· Output: Claude calls your API

Who it’s for β€” anyone who wants Claude Code, Cursor, or Claude Desktop to call an API they already run.

This recipe is real β€” the Petstore MCP gateway below is live in the demo org, serving 19 Swagger Petstore tools over MCP with 14 real requests logged.

Build it

  1. Connect the API. In APIs β†’ Connect API, paste a schema URL β€” OpenAPI, GraphQL, SOAP/WSDL, or Protobuf. almyty generates a typed tool for every operation. (The demo imported Swagger Petstore: 19 operations β†’ 19 tools.)

    The imported Swagger Petstore β€” 19 operations turned into tools

  2. Publish an MCP gateway. Group the tools to expose and publish them as an MCP gateway, then generate an x-api-key on its Authentication panel. Scope exactly which tools it serves β€” here, 19 of 55 available tools.

    The Petstore MCP gateway β€” endpoint, API keys, and tool scoping

  3. Grab the endpoint. The gateway’s Integrations tab gives you the live MCP endpoint (https://api.almyty.com/{org}/{gateway}), plus SSE and discovery URLs:

    The gateway's MCP endpoint, SSE, and discovery URLs

  4. Add it to your client and use it:

    claude mcp add petstore --transport http https://api.almyty.com/northwind-ai/petstore # clients send: x-api-key: <your gateway key>
    > look up pet #2 and show its status Claude calls getPetById via almyty β†’ "Rosie", available

Make it yours

  • The same gateway also speaks A2A and UTCP, so other agents and clients reach identical tools.
  • Rotate or revoke keys per client from the Authentication panel (the demo has three: a default key, a quickstart key, and a docs key).
  • Front a legacy SOAP service the same way.

Uses β€” Platform Β· MCP Β· Claude Code