NewConnect Claude, Gemini, ChatGPT, and other AI agents to API Ninjas via our MCP server
Works with any plan, including Free

Connect your AI agent to API Ninjas

Access our entire API catalog with a single MCP endpoint. Bring your own API key — works with Claude, Cursor, ChatGPT, GitHub Copilot, Gemini, and a dozen other clients.

EndpointStreamable HTTP transport
AuthenticationFind your key on the profile page — also accepted as Authorization: Bearer or ?apikey= in the URL
Command line

Claude Code

Official docs

Anthropic's official CLI for Claude. Native support for remote streamable-http servers and per-request headers.

Add via the CLI
claude mcp add --transport http apininjas https://mcp.api-ninjas.com/mcp \
  --header "X-Api-Key: YOUR_API_NINJAS_KEY"
Or edit .mcp.json directly (project-scoped)
{
  "mcpServers": {
    "apininjas": {
      "type": "http",
      "url": "https://mcp.api-ninjas.com/mcp",
      "headers": { "X-Api-Key": "YOUR_API_NINJAS_KEY" }
    }
  }
}

Troubleshooting

429 Too Many Requests

Your key has used its monthly quota (3,000 calls on the Free plan). Every plan, including Free, can connect to the MCP server; upgrade your plan for a larger quota and premium-only fields.

401 Unauthorized

Your key isn't reaching the server, or it isn't valid. The server accepts it three ways: an X-Api-Key header, an Authorization: Bearer header, or ?apikey=YOUR_KEY appended to the server URL (for clients with no header field). Confirm the value matches the key on your profile page.

Tool count looks short

A successful connection lists roughly 170 tools (one per API Ninjas endpoint). Some clients filter or paginate — check your client's tool browser settings.

Client doesn't support remote MCP

Wrap our endpoint with the mcp-remote bridge to convert it into a stdio process: npx -y mcp-remote https://mcp.api-ninjas.com/mcp --header "X-Api-Key:YOUR_API_NINJAS_KEY"

Hitting rate limits

Each tool call counts against your normal API Ninjas quota. Upgrade your plan for higher rate limits, more requests per month, and access to premium-only fields. Still stuck? Contact us.