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

Domain-scoped endpoints

The endpoint above lists all 213 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 · 72 tools

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

fun · 35 tools

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

banking · 24 tools

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

geo · 24 tools

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

vehicles · 15 tools

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

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 · 7 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 213 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.