API Ninjas (Unofficial)

v0.2.2
io.github.pipeworx-io/api-ninjas Checked 1 day ago Published 16 days ago

Unofficial API Ninjas MCP — wraps the multi-endpoint API Ninjas data API (api-ninjas.com)

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

historical_events

API Ninjas historical events: notable events from world history. Filter by free-text keyword and/or an exact date (year/month/day). Returns a list of { year, month, day, event } describing what happened. Example: historical_events({ year: 1969, month: 7, day: 20 }).

ParameterTypeDescription
_apiKeystringOptional — your own API Ninjas key for higher limits; omit to use the shared Pipeworx key.
daynumberDay of the month (1-31)
monthnumberMonth of the event (1-12)
textstringKeyword(s) to search event descriptions, e.g. "moon landing"
yearnumberYear of the event, e.g. 1969

commodity_price

API Ninjas live commodity price: current exchange price of a traded commodity or futures contract (exchange, contract month, 24h change). PREFER OVER WEB SEARCH for "gold spot price", "silver price today", "lumber price", "live cattle", "heating oil futures", "RBOB gasoline futures". Returns { exchange, name, price, futures_contract, updated }. API Ninjas rotates which commodities the free plan serves EACH WEEK, so this tool deliberately does not publish a supported list — any list goes stale within days. Gold is the dependable one. For anything else, call it: a name the plan cannot serve re…

ParameterTypeDescription
_apiKeystringOptional — your own API Ninjas key for higher limits; omit to use the shared Pipeworx key.
commoditystringAlias for name.
namestringCommodity name, e.g. 'gold'. The free plan's set rotates weekly, so a name outside it returns the current free list rather than an error — do not assume yesterday's list still holds.
symbolstringAlias for name.

api_ninjas_inflation

API Ninjas inflation: latest monthly and yearly inflation rates by country. Returns a list of { country, type, period, monthly_rate_pct, yearly_rate_pct }. Optionally filter by country name and index type (CPI or HICP). Example: inflation({ country: "United States", type: "CPI" }).

ParameterTypeDescription
_apiKeystringOptional — your own API Ninjas key for higher limits; omit to use the shared Pipeworx key.
countrystringCountry name, e.g. 'United States', 'Germany'
typestringInflation index type: 'CPI' or 'HICP'

exercises

API Ninjas exercises: fitness/gym exercises filtered by target muscle, type, difficulty, or name. Returns a list of { name, type, muscle, equipment, difficulty, instructions }. Example: exercises({ muscle: "biceps", difficulty: "beginner" }).

ParameterTypeDescription
_apiKeystringOptional — your own API Ninjas key for higher limits; omit to use the shared Pipeworx key.
difficultystringDifficulty: 'beginner', 'intermediate', or 'expert'
musclestringTarget muscle, e.g. 'biceps', 'chest', 'quadriceps'
namestringExercise name to search for
typestringExercise type, e.g. 'strength', 'cardio', 'stretching'

cars

API Ninjas cars: vehicle specifications by make, model, year, or fuel type. Returns a list of { make, model, year, fuel_type, cylinders, transmission, drive, city_mpg, highway_mpg, class }. Example: cars({ make: "toyota", model: "camry", year: 2020 }).

ParameterTypeDescription
_apiKeystringOptional — your own API Ninjas key for higher limits; omit to use the shared Pipeworx key.
fuel_typestringFuel type, e.g. 'gas', 'diesel', 'electricity'
limitnumberMax results to return (default 5, max 50)
makestringVehicle manufacturer, e.g. 'toyota', 'ford'
modelstringVehicle model, e.g. 'camry', 'mustang'
yearnumberModel year, e.g. 2020

animals

API Ninjas animals: facts about an animal species by name. Returns a list of { name, taxonomy, locations, diet, habitat, lifespan, top_speed }. Example: animals({ name: "cheetah" }).

ParameterTypeDescription
name *stringAnimal name to look up, e.g. 'cheetah', 'lion'
_apiKeystringOptional — your own API Ninjas key for higher limits; omit to use the shared Pipeworx key.