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. Sign in with your API Ninjas account or use your API key — works with Claude, Cursor, ChatGPT, GitHub Copilot, Gemini, and a dozen other clients.

Connect without copying a key

If your client supports OAuth, use the connect URL. Your client opens API Ninjas in the browser, you sign in or create a free account, and you approve the connection. You don't need to copy or paste an API key.

Connect URL

Claude (claude.ai and Claude Desktop)

Open Settings → Connectors → Add custom connector, paste the connect URL and select Connect. Then sign in or create a free account, and approve the connection.

Claude Code

Add the server
claude mcp add --transport http api-ninjas https://mcp.api-ninjas.com/connect

Then run /mcp in Claude Code, choose api-ninjas and sign in.

ChatGPT and other clients that support OAuth

Add a custom connector or MCP server with the connect URL and choose OAuth as the authentication method.

Clients without OAuth

Use https://mcp.api-ninjas.com/mcp with your API key, as shown below.

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" }
    }
  }
}

Domain-scoped endpoints

The endpoint above lists all 244 tools. Every tool definition is loaded into your agent's context when it connects, so if you only need one area, add a suffix to the URL and the server lists just that subset. Same key, same transport, same configuration — only the URL changes. Add more than one if you need several areas.

finance · 89 tools

Stock prices, earnings calendar and transcripts, filings, 13F holdings, rates, crypto, commodities and metals.

fun · 35 tools

Jokes, quotes, trivia, riddles, facts, animals, recipes, cocktails and horoscopes.

banking · 30 tools

Routing numbers, SWIFT/BIC, IBAN, sort codes, VAT, sanctions screening, email, phone and domain checks.

geo · 26 tools

ZIP and postal codes, geocoding, cities, countries, population, weather, air quality and airports.

vehicles · 20 tools

Car and motorcycle specifications, electric vehicles, VIN decoding, aircraft and motor carriers.

text · 13 tools

Dictionary, thesaurus, spell check, text similarity, profanity filter, generators and web scraping.

dates · 10 tools

Public and bank holidays, working-day maths, time zones and world time.

media · 8 tools

Image-to-text, object and face detection, embeddings, logos, QR codes and barcodes.

health · 8 tools

Nutrition data, calories burned and exercise lookup.

tax · 4 tools

Sales tax by address or ZIP, income tax and property tax.

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 to the main endpoint lists 244 tools (one per API Ninjas endpoint). A domain-scoped URL lists only that subset, which is expected. Some clients also 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.