MetorialDocs

Set up API Ninjas in Metorial for Claude, ChatGPT and Cursor

Share API Ninjas with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 25 tools, all read-only.

To give your team API Ninjas in Claude, ChatGPT, Cursor and other AI clients, an admin shares the API Ninjas integration in a Metorial portal, and each person connects with an API key. Agents can look up market prices and currency conversions, current weather and forecasts, air quality, places, local time, holidays, text analysis, nutrition, exercises, quotes, trivia, animal data, domain records, IP locations, and email or phone validation. The integration has 25 tools, all read-only, plus 1 trigger.

What you'll learn

  • How an admin shares API Ninjas in a portal and how each person connects
  • What API Ninjas asks for when you connect, and where to find it
  • How to check the connection with metorial call

Before you start

Sign-in method

MethodTypeWhat a person provides
API KeyAPI tokenapiKey

API Key

To connect, a person enters:

  • apiKey: Your API Ninjas API key from your account dashboard

Admin: share API Ninjas in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose API Ninjas. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.

Choose who gets it

Add the access groups that should see API Ninjas. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user API Ninjas integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search "api ninjas"

Employee: connect API Ninjas

In the portal

Open API Ninjas in the catalog

Sign in to your portal and open API Ninjas. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API key (apiKey).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search "api ninjas"
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your API Ninjas connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list "api ninjas"
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Every API Ninjas tool only reads, so the connection is read-only as it is.

Check it worked

metorial list "api ninjas"
metorial tools <integration-id>
metorial call <integration-id> get_quotes -d '{}'

metorial tools lists the 25 tools, minus any you rejected. get_quotes takes no input. It retrieves inspirational, philosophical, or topical quotes.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (25)

  • get_historical_events: Search for historical events by keyword, date, or both.
  • get_weather: Retrieve current weather conditions for a location.
  • lookup_domain: Get WHOIS registration data and DNS records for a domain, including registrar, creation date, expiration, and nameservers. Needs domain.
  • validate_contact: Validate an email address or phone number.
  • get_trivia: Retrieve random trivia questions with answers.
  • lookup_ip: Get geolocation and network information for an IP address. Needs address.
  • get_nutrition: Extract nutrition information from a natural language food description. Needs query.
  • get_crypto_price: Retrieve the current market price for a cryptocurrency trading pair. Needs symbol.
  • get_quotes: Retrieve inspirational, philosophical, or topical quotes.
  • get_stock_price: Retrieve the current price of a stock or market index. Needs ticker.
  • analyze_sentiment: Analyze the sentiment of a text passage using AI. Needs text.
  • lookup_word: Look up a word's definition, synonyms, and antonyms. Needs word.
  • compare_text_similarity: Compare two text passages and get a similarity score using AI-powered NLP. Needs textA and textB.
  • search_exercises: Search for exercises by name, type, target muscle, or difficulty level.
  • geocode_location: Convert a city name or address into geographic coordinates (latitude/longitude), or convert coordinates back into a place name.
  • lookup_animal: Search for detailed information about animal species. Needs name.
  • get_exchange_rate: Look up the current exchange rate between two currencies. Needs fromCurrency and toCurrency.
  • get_commodity_price: Retrieve the current price for a commodity such as gold, silver, platinum, natural gas, or other traded commodities. Needs commodityName.
  • get_air_quality: Retrieve current air quality data for a location, including overall AQI and individual pollutant levels (CO, NO₂, O₃, SO₂, PM2.5, PM10).
  • convert_currency: Convert an amount between two currencies using the provider exchange rate and return its timestamp.
  • search_countries: Find country statistics by name, ISO code, currency, or population range.
  • get_world_time: Get the local date, time zone, UTC offset, and daylight-saving status for a timezone, city, or coordinates.
  • get_weather_forecast: Get a five-day weather forecast in three-hour intervals by coordinates, city, or US ZIP code.
  • search_cities: Search cities by name, country, or population range and retrieve coordinates, population, and capital status.
  • get_holidays: Get holidays and observances for a country and year, with an optional holiday-type filter.

Triggers

API Ninjas has 1 trigger, which fire on events in API Ninjas:

  • inbound_webhook

Next steps