API Ninjas MCP server for AI agents

Live

API KEY

DATA LOOKUPS

Developer Tools

API Ninjas gives your agent quick data lookups: weather and forecasts, currency, stock, and crypto prices, geocoding and timezones, domain, DNS, and IP checks, email and phone validation, and text tools such as sentiment and language detection.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
API Ninjas
agent · Acme Q3
Run
What's the weather in Austin right now?
S
apininjas_get_weather
88ms
Research agent
It is 24°C in Austin with light wind and 48% humidity. Clear skies are holding through the afternoon.
Sources: API Ninjas weather, 1 location
apininjas
1 lookup
18:29
Message Claude...

Tools your research agent reaches for on API Ninjas, scoped per user.

CALL ANY TOOL
38 tools for data lookups in API Ninjas: get weather, exchange rates, stock and crypto prices, geocode places, check domains, DNS, WHOIS, and IPs, validate emails and phone numbers, and score text sentiment and similarity.
apininjas_analyze_sentiment
Analyze sentiment
Score the sentiment of a piece of text. Returns text, score from -1 (most negative) to 1 (most positive) and sentiment: POSITIVE, WEAK_POSITIVE, NEUTRAL, WEAK_NEGATIVE or NEGATIVE. Use apininjas_analyze_sentiment for tone. Use apininjas_filter_profanity to find offensive words.
Parameters
Name
Type
Required
Description
text
string
Required
Text to analyse, up to 2000 characters. Example: The delivery was late but the support team was fantastic.
apininjas_check_domain
Check domain
apininjas_check_holiday
Check holiday
apininjas_convert_currency
Convert currency
apininjas_convert_units
Convert units
apininjas_decode_vin
Decode vin
apininjas_detect_language
Detect language
apininjas_filter_profanity
Filter profanity
apininjas_geocode
Geocode
apininjas_get_crypto_price
Get crypto price
apininjas_get_exchange_rate
Get exchange rate
apininjas_get_inflation
Get inflation
apininjas_get_interest_rate
Get interest rate
apininjas_get_nutrition
Get nutrition
apininjas_get_synonyms
Get synonyms
apininjas_get_timezone
Get timezone
apininjas_get_weather
Get weather
apininjas_get_weather_forecast
Get weather forecast
apininjas_list_holidays
List holidays
apininjas_lookup_ip
Lookup ip
apininjas_lookup_url
Lookup url
apininjas_lookup_whois
Lookup whois
apininjas_scrape_webpage
Scrape webpage
apininjas_search_aircraft
Search aircraft
apininjas_search_airlines
Search airlines
apininjas_search_airports
Search airports
apininjas_search_cars
Search cars
apininjas_search_cities
Search cities
apininjas_search_countries
Search countries
apininjas_validate_email
Validate email

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// API Ninjas tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["apininjas"], toolNames: [
    "apininjas_geocode",
    "apininjas_get_weather_forecast",
    "apininjas_get_world_time"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Get the 5-day forecast and local time for our Berlin offsite" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["apininjas"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Get the 5-day forecast and local time for our Berlin offsite" }],
  tools,
});

// Execute the tool call with the user's vaulted API Ninjas API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["apininjas"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Get the 5-day forecast and local time for our Berlin offsite" }],
  tools,
});

// Tool call runs with the user's vaulted API Ninjas API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["apininjas"] }, pageSize: 100,
});

const agent = new Agent({
  name: "research_agent",
  model: "gemini-2.5-pro",
  instruction: "API Ninjas tools scoped to this user",
  tools,
});

await agent.run("Get the 5-day forecast and local time for our Berlin offsite");
Try these prompts
Copy any prompt into your agent. Each maps directly to a API Ninjas tool. Click to copy, paste into your agent, done.
Places and time
Copy the prompt
Copied
What's the 5-day forecast for Berlin?
Copy the prompt
Copied
What time is it in Singapore right now?
Copy the prompt
Copied
List public holidays in India for 2026.
Markets
Copy the prompt
Copied
Convert 2,500 USD to EUR at today's rate.
Copy the prompt
Copied
What's the latest price of AAPL?
Copy the prompt
Copied
What's the current inflation rate in the UK?
Validation and domains
Copy the prompt
Copied
Is jane@acme.com a valid address that can receive mail?
Copy the prompt
Copied
Show the DNS records for acme.com.
Copy the prompt
Copied
Who is the registrar for globex.com?
SEE HOW AUTH WORKS
Each user connects their own API Ninjas API key once, and Scalekit sends it with every call. API keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
API Ninjas
once. We tie it to their identity and the meetings they approved — no shared bot account, no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
API Ninjas
token lives in a vault scoped to them. User A's meetings are never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tokens:
auto-refreshed
3
Resolve
When your agent calls a
API Ninjas
tool, we fetch the right token server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
API Ninjas
tool call is logged — who triggered it, which meeting was fetched, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other developer and data connectors.
GTM and RevOps Teams
Competitive intelligence briefing agent
Scans Gong calls for competitor mentions, matches each one to its Notion battlecard, and DMs every affected rep a single Slack digest per cycle. Every call runs as the PMM who owns the briefing, never a shared bot.
GTM and RevOps Teams
Outbound prospecting agent
Searches Apollo for prospects matching your ICP, scores and ranks them, drafts personalized outreach in Gmail, and logs every send to Google Sheets. Mail goes out as the rep, not from a shared inbox.
Test other agents
See the same per-user auth pattern across other developer and data connectors.
GTM
Competitive intelligence briefing agent
Scan Gong calls for competitor mentions, match each one to its Notion battlecard, and DM every affected rep a single Slack digest.
SALES
Outbound prospecting agent
Search Apollo for ICP matches, rank them, draft personalised Gmail outreach, and log every send to Google Sheets.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared API Ninjas API key looks fine in a demo. In production every lookup looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
API Ninjas today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access API Ninjas as the user or through a shared API key?
As the user. Each user connects their own API Ninjas API key once, and Scalekit sends it with every call. Audit logs attribute every lookup to that user, not a shared service account.
Where is the API Ninjas API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in API Ninjas?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example only the weather and timezone tools. Every tool looks up or scores data and none changes anything in the user's account. Scalekit also enforces scope checks before every API call.
What happens when a user revokes API Ninjas access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Do some API Ninjas tools need a paid plan?
Some options do. The docs note that apininjas_get_weather by city name and apininjas_search_recipes by ingredients need a paid API Ninjas plan, so results depend on the plan attached to the user's API key.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""apininjas"": {
""url"": ""https://mcp.scalekit.com/apininjas"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.apininjas]
url = ""https://mcp.scalekit.com/apininjas""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""apininjas"": {
""url"": ""https://mcp.scalekit.com/apininjas"",
""type"": ""http""
}
}
}