API Ninjas MCP server
129 operations0 webhooks
Developer API hub for facts, finance, nutrition, and dozens of data endpoints.
Try API Ninjas with your agent
Connect API Ninjas, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in API Ninjas on my account, then run one read-only example and show me the result.
API Ninjas tools and triggers
Tools are what your agent can do in API Ninjas through Corsair's MCP server. Triggers are the API Ninjas events a routine can start from.
Entertainment
- AdviceRead-only
Returns a random piece of life advice
entertainment.advice
- Bucket ListRead-only
Returns a random bucket list idea
entertainment.bucketList
- Chuck NorrisRead-only
Returns a Chuck Norris joke
entertainment.chuckNorris
- Dad JokesRead-only
Returns one (or more) random dad jokes
entertainment.dadJokes
- Fact Of The DayRead-only
Returns a single fact for the current day
entertainment.factOfTheDay
- FactsRead-only
Returns one (or more) random facts
entertainment.facts
- Generate SudokuRead-only
Generate a new Sudoku puzzle with specified parameters
entertainment.generateSudoku
- HobbiesRead-only
Returns a random hobby and a Wikipedia link detailing the hobby
entertainment.hobbies
- HoroscopeRead-only
Returns the daily horoscope for a specific zodiac sign
entertainment.horoscope
- Joke Of The DayRead-only
Returns a single joke for the current day
entertainment.jokeOfTheDay
- JokesRead-only
Returns one (or more) random funny jokes
entertainment.jokes
- Quote Of The DayRead-only
Returns a single aphoristic quote for the current day
entertainment.quoteOfTheDay
- QuotesRead-only
Returns high-quality quotes with advanced filtering by categories (include/exclude), author, work, and pagination support [premium plan required]
entertainment.quotes
- Random QuotesRead-only
Returns random high-quality quotes with advanced filtering by categories (include/exclude), author, and work [premium plan required]
entertainment.randomQuotes
- RiddlesRead-only
Returns one or more random riddles
entertainment.riddles
- Solve SudokuRead-only
Solve an existing Sudoku puzzle
entertainment.solveSudoku
- TriviaRead-only
Returns a random trivia question and answer
entertainment.trivia
- Trivia Of The DayRead-only
Returns a single trivia question and answer for the current day
entertainment.triviaOfTheDay
Markets
- BitcoinRead-only
Returns the latest Bitcoin price in USD and 24-hour market data
markets.bitcoin
- Commodity PriceRead-only
Returns the current price information for one or more commodities
markets.commodityPrice
- Convert CurrencyRead-only
Converts an existing currency and amount into a new currency [premium plan required]
markets.convertCurrency
- Crypto PriceRead-only
Returns the current price and current time (in UNIX timestamp in seconds) for any cryptocurrency symbol
markets.cryptoPrice
- EarningsRead-only
Returns a JSON array of detailed earnings reports, each with comprehensive financial statements and key performance metrics
markets.earnings
- Earnings CalendarRead-only
Returns a list of past earnings results and upcoming earnings dates
markets.earningsCalendar
- Earnings TranscriptRead-only
Returns the earnings transcript for a given company earning quarter [premium plan required]
markets.earningsTranscript
- EtfRead-only
Returns comprehensive information about any ETF by its ticker
markets.etf
- Exchange RateRead-only
Returns the exchange rate for a given currency pair [premium plan required]
markets.exchangeRate
- Insider TransactionsRead-only
Returns a list of insider trading transactions that match the specified filters
markets.insiderTransactions
- Market CapRead-only
Returns the current market cap data for any given company ticker
markets.marketCap
- Mutual FundRead-only
Returns comprehensive information about any Mutual Fund by its ticker
markets.mutualFund
- Sec FilingsRead-only
Returns a list of SEC filing information (including the submission URL) corresponding to the given search parameters
markets.secFilings
- Sp500Read-only
Returns S&P 500 index constituents, filterable by ticker, company name, sector or the date the company joined the index
markets.sp500
- Stock ExchangesRead-only
Returns detailed information about stock exchanges matching the specified criteria
markets.stockExchanges
- Stock PriceRead-only
Returns price information for any given ticker symbol
markets.stockPrice
- TickerRead-only
Returns comprehensive company profile information including company name, CEO, address, financial data, exchange information, identifiers...
markets.ticker
- Ticker ListRead-only
Returns a list of all available companies and their ticker symbols
markets.tickerList
Economics
- GdpRead-only
Get GDP data from given parameters
economics.gdp
- Income TaxRead-only
Returns comprehensive income tax information including tax brackets and rates at both federal and state/provincial levels (where applicable)
economics.incomeTax
- Income Tax CalculatorRead-only
Returns comprehensive annual tax calculations including federal, state/provincial, and FICA taxes where applicable
economics.incomeTaxCalculator
- InflationRead-only
Returns current monthly and annual inflation percentages [premium plan required]
economics.inflation
- Interest RateRead-only
Get a specific interest rate by name
economics.interestRate
- Mortgage CalculatorRead-only
Returns monthly payment, annual payment, and interest rate information based on given mortgage parameters
economics.mortgageCalculator
- Mortgage RateRead-only
Returns the daily 30-year and 15-year fixed-rate mortgage (FRM) data
economics.mortgageRate
- PopulationRead-only
Get population data from given parameters
economics.population
- Property TaxRead-only
Returns a list of regions and corresponding 25th, 50th (median), and 75th percentile effective property tax rates
economics.propertyTax
- Sales TaxRead-only
Returns one or more sales tax breakdowns by ZIP code according to the specified parameters
economics.salesTax
- Sales Tax CalculatorRead-only
Calculates sales tax for a given amount and location
economics.salesTaxCalculator
- UnemploymentRead-only
Get unemployment data for a given country
economics.unemployment
- Vat RatesRead-only
Returns VAT rates for a specified EU country
economics.vatRates
Location
- Air QualityRead-only
Get air quality by city or location coordinates (latitude/longitude)
location.airQuality
- CitiesRead-only
Get city data from either a name or population range
location.cities
- CountryRead-only
Get country data from given parameters
location.country
- CountyRead-only
Returns details for one or more counties matching the input parameters
location.county
- Ev ChargersRead-only
find ev charging stations
location.evChargers
- GeocodeRead-only
Get current city coordinates by city and country name
location.geocode
- HospitalsRead-only
Get hospital data based on given parameters
location.hospitals
- Postal CodeRead-only
Returns a list of postal code details matching the input parameters
location.postalCode
- Reverse GeocodeRead-only
Returns a list of cities that contain a given latitude and longitude
location.reverseGeocode
- UniversitiesRead-only
Returns information about universities matching the provided filters
location.universities
- WeatherRead-only
Get current weather, wind speed and direction, humidity, and temperature data by city, ZIP code, or geolocation coordinates (latitude/longitude) [premium plan required]
location.weather
- Weather ForecastRead-only
Returns a 5-day weather forecast in 3-hour intervals for a given city [premium plan required]
location.weatherForecast
- Zip CodeRead-only
Returns a list of ZIP Code details matching the input parameters
location.zipCode
Text
- DictionaryRead-only
Returns a string containing definitions for a given word
text.dictionary
- EmbeddingsRead-only
Returns a 768-dimensional vector as an array that encodes the meaning of any given input text
text.embeddings
- LanguageRead-only
Returns the language name and 2-letter ISO language code for a given block of text string
text.language
- Lorem IpsumRead-only
Returns one or more paragraphs of lorem ipsum placeholder text
text.loremIpsum
- Profanity FilterRead-only
Returns the censored version (bad words replaced with asterisks) of any given text and whether the text contains profanity
text.profanityFilter
- Random WordRead-only
Returns a random word [premium plan required]
text.randomWord
- RhymesRead-only
Returns a list of rhyming words for any given word
text.rhymes
- SentimentRead-only
Returns sentiment analysis score and overall sentiment for a given block of text
text.sentiment
- SimilarityRead-only
Returns a similarity score between 0 and 1 (1 is similar and 0 is dissimilar) of two given texts
text.similarity
- Spell CheckRead-only
Returns spelling corrections and suggestions for any given text
text.spellCheck
- ThesaurusRead-only
Returns a list of synonyms and a list of antonyms for a given word
text.thesaurus
Reference
- AnimalsRead-only
Returns up to 10 results matching the input name parameter
reference.animals
- Baby NamesRead-only
Returns 10 baby name results
reference.babyNames
- CatsRead-only
Get a list of cat breeds matching specified parameters
reference.cats
- CelebritiesRead-only
Returns a list of up to 30 celebrities that match the search parameters
reference.celebrities
- Day In HistoryRead-only
Returns historical events that occurred on a specific date [premium plan required]
reference.dayInHistory
- DogsRead-only
Get a list of dog breeds matching specified parameters
reference.dogs
- Historical EventsRead-only
Returns a list of up to 10 events that match the search parameters
reference.historicalEvents
- Historical FiguresRead-only
Returns a list of up to 10 people that match the search parameters
reference.historicalFigures
- PlanetsRead-only
Get a list of planets matching specified parameters
reference.planets
- StarsRead-only
Get a list of stars matching specified parameters
reference.stars
Utility
- BarcodeRead-only
Returns a barcode image binary specified by input parameters
utility.barcode
- Convert UnitRead-only
Returns conversions between different units of the same measurement type
utility.convertUnit
- CounterWrite
Fetch and possibly update a counter
utility.counter
- Country FlagRead-only
Get a country's flag as SVG image URLs
utility.countryFlag
- EmojiRead-only
Returns a list of emojis according to input parameters
utility.emoji
- LogoRead-only
Get a list of company names, ticker symbols, and logo image URLs matching the input parameters
utility.logo
- PasswordRead-only
Returns a random password string adhering to the specified parameters
utility.password
- Qr CodeRead-only
Returns a QRCode image binary specified by input parameters
utility.qrCode
- Random ImageRead-only
Returns a random image in JPEG format [premium plan required]
utility.randomImage
- Random UserRead-only
Returns fake random user profiles
utility.randomUser
Internet
- Dns RecordsRead-only
Returns a list of DNS records associated with a particular domain
internet.dnsRecords
- DomainRead-only
Returns availability, registration lifecycle, and email/hosting intelligence for a given domain name
internet.domain
- Ip LookupRead-only
Returns the location of the IP address specified
internet.ipLookup
- Mx RecordsRead-only
Returns a list of MX records associated with a particular domain
internet.mxRecords
- ScrapeRead-only
Returns the HTML or plaintext data scraped from a given URL
internet.scrape
- Url LookupRead-only
Returns the location of the IP address hosting the URL domain
internet.urlLookup
- User AgentRead-only
Generates a realistic user agent string based on optional parameters
internet.userAgent
- WebpageRead-only
Returns the URL information and web page metadata from a given URL
internet.webpage
- WhoisRead-only
Returns domain registration details (e.g. registrar, contact information, expiration date, name servers) for a given domain name [premium plan required]
internet.whois
Transport
- AircraftRead-only
Returns a list of aircrafts that match the given parameters
transport.aircraft
- AirlinesRead-only
Returns airline details including fleet composition, base airport and branding assets, by name, IATA code or ICAO code
transport.airlines
- AirportsRead-only
Returns a list of up to 10 airport results
transport.airports
- CarsRead-only
Get car data from given parameters [deprecated by the provider]
transport.cars
- Electric VehiclesRead-only
Get electric vehicle data from given parameters
transport.electricVehicles
- HelicoptersRead-only
Get helicopter technical specifications that match the given parameters
transport.helicopters
- MotorcyclesRead-only
Returns up to 30 motorcycle results matching the input name parameters
transport.motorcycles
- VinRead-only
Returns key vehicle information including manufacturer, country of origin, and model year for a given VIN
transport.vin
Calendar
- HolidaysRead-only
Returns a list of holiday entries for a given country and year [premium plan required]
calendar.holidays
- Is Public HolidayRead-only
Returns whether a given date is a public holiday for a given country
calendar.isPublicHoliday
- Is Working DayRead-only
Returns whether a given date is a working day for a given country
calendar.isWorkingDay
- Public HolidaysRead-only
Returns a list of public holidays for a given country and year [premium plan required]
calendar.publicHolidays
- TimezoneRead-only
Get timezone info by city/state/country or location coordinates (latitude/longitude)
calendar.timezone
- Working DaysRead-only
Returns a list of working days and non-working days for a given country and year/month
calendar.workingDays
- World TimeRead-only
Get the current date and time by city/state/country, location coordinates (latitude/longitude), or timezone [premium plan required]
calendar.worldTime
Validation
- BinRead-only
Returns detailed information about a bank based on the BIN number provided
validation.bin
- Disposable EmailRead-only
Returns metadata for a given email address, including whether it is from a disposable email provider
validation.disposableEmail
- EmailRead-only
Returns metadata (including whether it is valid) for a given email address
validation.email
- IbanRead-only
Returns detailed information on a given IBAN
validation.iban
- PhoneRead-only
Returns metadata (including whether it is valid) for a given phone number
validation.phone
- Routing NumberRead-only
Returns detailed information about a bank based on its routing number
validation.routingNumber
- Swift CodeRead-only
Returns a list of bank information (including SWIFT/BIC Code) that match the input parameter
validation.swiftCode
Health
- Calories BurnedRead-only
Returns the calories burned per hour and total calories burned according to given parameters for given activities (up to 10)
health.caloriesBurned
- CocktailsRead-only
Returns up to 10 cocktail recipes matching the search parameters
health.cocktails
- ExercisesRead-only
Returns up to 5 exercises that satisfy the given parameters [premium plan required]
health.exercises
- NutritionRead-only
This endpoint uses AI to automatically read any text and extract every food item it contains, along with the right portion for each
health.nutrition
- RecipesRead-only
Get a list of recipes for a given recipe name or ingredient(s)
health.recipes
Connect API Ninjas to Claude, ChatGPT or Cursor
- 1
Connect API Ninjas in Corsair
Add your API Ninjas API key once in Corsair. Corsair stores the credential encrypted and makes the API Ninjas API calls for your agent, so it never goes into a prompt or a config file. Connect API Ninjas
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs API Ninjas. On a ChatGPT personal plan, connect API Ninjas here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Install Corsair from ChatGPT's plugin directory, connect it and sign in. A custom MCP server with the address works too, but personal plans get its read tools only.Add to Cursor / Grok BuildOr add this to~/.cursor/mcp.json. It opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Antigravity, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. None of API Ninjas's operations are destructive, so in the default Cautious mode they all run right away. Strict mode asks before each of its 1 write, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/apininjas, add the API Ninjas plugin, and connect with an API key. Then call methods like corsair.apininjas.api.calendar.holidays() from your app. Corsair syncs data per tenant.
Yes. API Ninjas requires an API key from your API Ninjas account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit API Ninjas, GitHub, Notion, Stripe, and the rest. Trigger API Ninjas from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for developer API hub for facts, finance, nutrition, and dozens of data endpoints. Common builds include sync jobs, admin tooling, and agents that call API Ninjas APIs from your backend. Local DB entities let you query synced API Ninjas records without hitting the API on every read.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per API Ninjas API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/apininjas in the open repo. When API Ninjas ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your API Ninjas data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store API Ninjas data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put API Ninjas on a link in Strict mode and every write waits for your approval, while destructive actions are refused. None of the API Ninjas operations are destructive, so the default Cautious mode runs them all without asking. You can change a link's mode at hub.corsair.dev/me.