KnowAPI
No API? KnowAPI: verified, cited public data for AI agents, and any missing data built on request.
我该使用它吗
质量与安全性
发现(2)
- LOW在 disaster_declarations 中
- LOW在 treasury_yields 中
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"data": {
"url": "https://api.knowapi.dev/mcp"
}
}
}远程端点
https://api.knowapi.dev/mcpstreamable-http它能做什么
工具清单
工具(27)
🟢watch_check(kind, species, brands, companies, city, ...)
Use when the user asks whether something they own or rely on has a problem right now: a product (barcode or description) or car (VIN or make/model/year) recalled, a medicine (NDC or name) in FDA shortage or recalled, their flight's airports under FAA ground stops/closures/delays, what is happening near a location (power outages, NWS warnings, earthquakes, disaster declarations), undeclared-allergen food recalls (allergy), tire age and recalls from a DOT code (tire), or actively exploited flaws for a device (device), expiry and recalls for a car seat, smoke alarm, CO alarm or fire extinguisher (safety: type, made, brand, model), or recalls for a home appliance by brand and model number (appliance), pet food and pet medicine recalls (pet), data breaches reported by companies they use (breach), or drinking water violations for their water system (water). Flight checks cover airport-wide disruptions, not the status of a single flight. Medicines also return what pharmacies pay (NADAC) and expiry/lot checks. Returns alert/watch/clear with official sources.
输入模式
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"product",
"med",
"vehicle",
"flight",
"place",
"allergy",
"tire",
"device",
"safety",
"appliance",
"pet",
"breach",
"water"
]
},
"species": {
"type": "string",
"description": "pet: dog, cat or other."
},
"brands": {
"type": "string",
"description": "allergy/pet: brands, comma separated."
},
"companies": {
"type": "string",
"description": "breach: companies you use, comma separated."
},
"city": {
"type": "string",
"description": "water: your city (with state)."
},
"state": {
"type": "string",
"description": "water: 2-letter state."
},
"pwsid": {
"type": "string",
"description": "water: public water system id."
},
"type": {
"type": "string",
"description": "safety: car_seat, smoke_alarm, co_alarm or extinguisher; appliance: what it is (dryer, heater...)."
},
"made": {
"type": "string",
"description": "safety: manufacture date YYYY-MM."
},
"allergens": {
"type": "array",
"items": {
"type": "string",
"enum": [
"milk",
"egg",
"fish",
"shellfish",
"tree nut",
"peanut",
"wheat",
"soy",
"sesame"
]
}
},
"tin": {
"type": "string",
"description": "Tire DOT code."
},
"os": {
"type": "string",
"description": "Device system, e.g. iOS."
},
"browser": {
"type": "string",
"description": "Browser, e.g. Chrome."
},
"brand": {
"type": "string",
"description": "Brand (tire, router)."
},
"expires": {
"type": "string",
"description": "Medicine expiry YYYY-MM."
},
"lot": {
"type": "string",
"description": "Medicine lot."
},
"quantity": {
"type": "number",
"description": "Medicine quantity."
},
"paid": {
"type": "number",
"description": "Price paid (USD)."
},
"upc": {
"type": "string",
"description": "Product barcode digits."
},
"q": {
"type": "string",
"description": "Product description (if no barcode)."
},
"name": {
"type": "string",
"description": "Medicine name."
},
"ndc10": {
"type": "string",
"description": "10-digit NDC."
},
"vin": {
"type": "string",
"description": "17-character VIN."
},
"make": {
"type": "string",
"description": "Vehicle make."
},
"model": {
"type": "string",
"description": "Vehicle model."
},
"year": {
"type": "string",
"description": "Model year."
},
"from": {
"type": "string",
"description": "Departure airport code."
},
"to": {
"type": "string",
"description": "Arrival airport code."
},
"date": {
"type": "string",
"description": "Flight date YYYY-MM-DD."
},
"lat": {
"type": "number",
"description": "Latitude."
},
"lon": {
"type": "number",
"description": "Longitude."
},
"api_key": {
"type": "string",
"description": "Optional. Your KnowAPI key for this dataset; leave it out and a free key is created (first 15 calls free within 48 hours)."
}
},
"required": [
"kind"
],
"additionalProperties": false
}🟢check_product_recall(upc, model, brand, ndc, query, ...)
Use when the user asks whether a product, food, drug, medical device, toy, car or car part was recalled in the US, or scans a barcode. Give ONE of: upc (barcode digits), model (+ optional brand), ndc (drug code), query (free text like "listeria cheese"), or vehicle_make + vehicle_model + vehicle_year. Searches CPSC, FDA, USDA and NHTSA and links each official recall. "No match" is not proof an item is safe.
输入模式
{
"type": "object",
"properties": {
"upc": {
"type": "string",
"description": "Barcode digits (UPC/EAN)."
},
"model": {
"type": "string",
"description": "Model number."
},
"brand": {
"type": "string",
"description": "Brand, only with model."
},
"ndc": {
"type": "string",
"description": "National Drug Code."
},
"query": {
"type": "string",
"description": "Free text, 3 to 200 characters."
},
"vehicle_make": {
"type": "string",
"description": "e.g. honda"
},
"vehicle_model": {
"type": "string",
"description": "e.g. accord"
},
"vehicle_year": {
"type": "number",
"description": "e.g. 2018"
},
"api_key": {
"type": "string",
"description": "Optional. Your KnowAPI key for this dataset; leave it out and a free key is created (first 15 calls free within 48 hours)."
}
},
"additionalProperties": false
}🟢drug_shortages(drug, limit, api_key)
Use when the user asks whether a medicine is in shortage or hard to get in the US, or which drugs are short right now. Returns FDA drug shortage records (drug, company, status, availability, last update) with the official source.
输入模式
{
"type": "object",
"properties": {
"drug": {
"type": "string",
"description": "Drug name, generic or brand (optional; leave out for the latest shortages)."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"description": "How many records (default 10, up to 50)."
},
"api_key": {
"type": "string",
"description": "Optional. Your KnowAPI key for this dataset; leave it out and a free key is created (first 15 calls free within 48 hours)."
}
},
"additionalProperties": false
}🟢power_outages(state, utility, min_customers_out, limit, api_key)
Use when the user asks about power outages or blackouts in the US right now: where, how many customers are out, which utility, estimated restoration. Filter by state and/or utility. Live, by county.
输入模式
{
"type": "object",
"properties": {
"state": {
"type": "string",
"description": "2-letter state code, e.g. TX."
},
"utility": {
"type": "string",
"description": "Utility name or part of it."
},
"min_customers_out": {
"type": "number",
"description": "Only counties with at least this many customers out."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"description": "How many records (default 10, up to 50)."
},
"api_key": {
"type": "string",
"description": "Optional. Your KnowAPI key for this dataset; leave it out and a free key is created (first 15 calls free within 48 hours)."
}
},
"additionalProperties": false
}🟢recent_earthquakes(place, min_magnitude, limit, api_key)
Use when the user asks about earthquakes in the past day anywhere in the world or the US: where, magnitude, time, tsunami flag. Filter by place and minimum magnitude.
输入模式
{
"type": "object",
"properties": {
"place": {
"type": "string",
"description": "Place text, e.g. \"California\", \"Japan\", \"Alaska\"."
},
"min_magnitude": {
"type": "number",
"description": "e.g. 4.5"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"description": "How many records (default 10, up to 50)."
},
"api_key": {
"type": "string",
"description": "Optional. Your KnowAPI key for this dataset; leave it out and a free key is created (first 15 calls free within 48 hours)."
}
},
"additionalProperties": false
}🟢weather_alerts(lat, lon, state, api_key)
Use when the user asks about weather warnings, watches or advisories (storms, floods, heat, winter, fire weather) for a US place right now. Give lat + lon for a point, or a 2-letter state code; nothing returns the most severe alerts nationwide. "No active alerts" is not a forecast.
输入模式
{
"type": "object",
"properties": {
"lat": {
"type": "number",
"description": "Latitude, decimal degrees."
},
"lon": {
"type": "number",
"description": "Longitude, decimal degrees."
},
"state": {
"type": "string",
"description": "2-letter state code, e.g. FL."
},
"api_key": {
"type": "string",
"description": "Optional. Your KnowAPI key for this dataset; leave it out and a free key is created (first 15 calls free within 48 hours)."
}
},
"additionalProperties": false
}🟢find_nursing_homes(state, city, name, min_rating, limit, ...)
Use when the user asks about nursing homes or skilled nursing facilities in the US: star ratings, penalties, ownership, location. Filter by state, city, name and minimum overall rating.
输入模式
{
"type": "object",
"properties": {
"state": {
"type": "string",
"description": "2-letter state code."
},
"city": {
"type": "string",
"description": "City."
},
"name": {
"type": "string",
"description": "Facility name or part of it."
},
"min_rating": {
"type": "number",
"description": "Minimum overall star rating, 1 to 5."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"description": "How many records (default 10, up to 50)."
},
"api_key": {
"type": "string",
"description": "Optional. Your KnowAPI key for this dataset; leave it out and a free key is created (first 15 calls free within 48 hours)."
}
},
"additionalProperties": false
}🟢find_hospitals(state, city, name, limit, api_key)
Use when the user asks about US hospitals: CMS star rating, type, ownership, emergency services, address. Filter by state, city and name.
输入模式
{
"type": "object",
"properties": {
"state": {
"type": "string",
"description": "2-letter state code."
},
"city": {
"type": "string",
"description": "City."
},
"name": {
"type": "string",
"description": "Hospital name or part of it."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"description": "How many records (default 10, up to 50)."
},
"api_key": {
"type": "string",
"description": "Optional. Your KnowAPI key for this dataset; leave it out and a free key is created (first 15 calls free within 48 hours)."
}
},
"additionalProperties": false
}🟢drug_acquisition_price(drug, ndc, limit, api_key)
Use when the user asks what a generic or brand drug costs pharmacies in the US (price per unit, e.g. per tablet). CMS National Average Drug Acquisition Cost, by drug name or NDC.
输入模式
{
"type": "object",
"properties": {
"drug": {
"type": "string",
"description": "Drug name, e.g. \"atorvastatin 20 mg\"."
},
"ndc": {
"type": "string",
"description": "11-digit NDC."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"description": "How many records (default 10, up to 50)."
},
"api_key": {
"type": "string",
"description": "Optional. Your KnowAPI key for this dataset; leave it out and a free key is created (first 15 calls free within 48 hours)."
}
},
"additionalProperties": false
}🟢airport_delays(airport, api_key)
Use when the user asks whether a US airport has delays, a ground stop or a closure right now. Live from the FAA. Give the airport code (e.g. SFO) or leave it out for all current delays.
输入模式
{
"type": "object",
"properties": {
"airport": {
"type": "string",
"description": "3-letter airport code, e.g. JFK."
},
"api_key": {
"type": "string",
"description": "Optional. Your KnowAPI key for this dataset; leave it out and a free key is created (first 15 calls free within 48 hours)."
}
},
"additionalProperties": false
}🟢company_8k_filings(company, since, limit, api_key)
Use when the user asks about recent material events at a US public company (8-K filings: executive changes, acquisitions, earnings, bankruptcies, cyber incidents). Filter by company name and date.
输入模式
{
"type": "object",
"properties": {
"company": {
"type": "string",
"description": "Company name or part of it."
},
"since": {
"type": "string",
"description": "Only filings on or after this date (YYYY-MM-DD)."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"description": "How many records (default 10, up to 50)."
},
"api_key": {
"type": "string",
"description": "Optional. Your KnowAPI key for this dataset; leave it out and a free key is created (first 15 calls free within 48 hours)."
}
},
"additionalProperties": false
}🟢exploited_vulnerabilities(vendor, product, since, limit, api_key)
Use when the user asks whether a software product has known exploited vulnerabilities, or for the latest actively exploited CVEs (CISA Known Exploited Vulnerabilities, with ransomware use and required action).
输入模式
{
"type": "object",
"properties": {
"vendor": {
"type": "string",
"description": "Vendor, e.g. Microsoft."
},
"product": {
"type": "string",
"description": "Product, e.g. Exchange."
},
"since": {
"type": "string",
"description": "Added on or after (YYYY-MM-DD)."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"description": "How many records (default 10, up to 50)."
},
"api_key": {
"type": "string",
"description": "Optional. Your KnowAPI key for this dataset; leave it out and a free key is created (first 15 calls free within 48 hours)."
}
},
"additionalProperties": false
}🟢border_wait_times(port, border, limit, api_key)
Use when the user asks how long the wait is at a US land border crossing (Canada or Mexico) for cars, trucks or pedestrians. Filter by port name or border.
输入模式
{
"type": "object",
"properties": {
"port": {
"type": "string",
"description": "Port or crossing name, e.g. \"San Ysidro\"."
},
"border": {
"type": "string",
"enum": [
"Canadian Border",
"Mexican Border"
]
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"description": "How many records (default 10, up to 50)."
},
"api_key": {
"type": "string",
"description": "Optional. Your KnowAPI key for this dataset; leave it out and a free key is created (first 15 calls free within 48 hours)."
}
},
"additionalProperties": false
}🟢gov_contract_opportunities(query, naics_code, state, set_aside, limit, ...)
Use when the user asks about government contracts, bids, RFPs, solicitations or sources-sought notices they could win: new US federal contract opportunities by keyword, NAICS code, state and set-aside (small business, 8(a), WOSB, SDVOSB, HUBZone). Returns title, agency, NAICS, set-aside, place of performance, posted date and response deadline.
输入模式
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Keywords, e.g. janitorial, roofing, software."
},
"naics_code": {
"type": "string",
"description": "6-digit NAICS code."
},
"state": {
"type": "string",
"description": "Place of performance, 2-letter state code."
},
"set_aside": {
"type": "string",
"description": "e.g. SBA, 8A, WOSB, SDVOSBC, HZC."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"description": "How many records (default 10, up to 50)."
},
"api_key": {
"type": "string",
"description": "Optional. Your KnowAPI key for this dataset; leave it out and a free key is created (first 15 calls free within 48 hours)."
}
},
"additionalProperties": false
}🟢disaster_declarations(state, incident_type, since, limit, api_key)
Use when the user asks about federal disaster or emergency declarations in the US (hurricanes, floods, fires, storms) by state, type or date.
输入模式
{
"type": "object",
"properties": {
"state": {
"type": "string",
"description": "2-letter state code."
},
"incident_type": {
"type": "string",
"description": "e.g. Hurricane, Flood, Fire."
},
"since": {
"type": "string",
"description": "Declared on or after (YYYY-MM-DD)."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"description": "How many records (default 10, up to 50)."
},
"api_key": {
"type": "string",
"description": "Optional. Your KnowAPI key for this dataset; leave it out and a free key is created (first 15 calls free within 48 hours)."
}
},
"additionalProperties": false
}🟢treasury_yields(since, limit, api_key)
Use when the user asks for US Treasury yields or rates (1-month to 30-year), today or for recent days.
输入模式
{
"type": "object",
"properties": {
"since": {
"type": "string",
"description": "From this date (YYYY-MM-DD); leave out for the latest days."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"description": "How many records (default 10, up to 50)."
},
"api_key": {
"type": "string",
"description": "Optional. Your KnowAPI key for this dataset; leave it out and a free key is created (first 15 calls free within 48 hours)."
}
},
"additionalProperties": false
}🟢search_apis(query, notify_url)
Find live public-data APIs. Example: search_apis({query:"drug shortage"}) -> api_id, fields, filters and 3 real sample records. Leave query empty to list all (recalls, power outages, earthquakes, weather, FDA, SEC filings, electricity prices, nursing homes, sanctions...). If nothing matches, we offer to build it (free trial).
输入模式
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Optional search text, e.g. \"recall\" or \"drug shortage\"."
},
"notify_url": {
"type": "string",
"description": "Optional public https webhook: if nothing matches we build it and POST a signed api_ready message when it is live."
}
},
"additionalProperties": false
}🟢get_api_key(api_id)
Optional: query_api creates a free key for you. Use this to get one up front. Keys are per API; your first 15 calls are free within 48 hours (shared by all your keys).
输入模式
{
"type": "object",
"properties": {
"api_id": {
"type": "string",
"description": "API id from search_apis."
}
},
"required": [
"api_id"
],
"additionalProperties": false
}🟢query_api(api_id, api_key, params)
Get data from an API. Example: query_api({api_id:"<from search_apis>", params:{state:"CA", limit:10}}). api_key is optional: without one, a free key is created and returned. Up to 50 records per call; every answer has the official source, read time and coverage.
输入模式
{
"type": "object",
"properties": {
"api_id": {
"type": "string"
},
"api_key": {
"type": "string",
"description": "Optional. Key from an earlier call or get_api_key; omit to get a free one."
},
"params": {
"type": "object",
"description": "Query parameters, e.g. {\"q\":\"crib\",\"limit\":\"10\"}.",
"additionalProperties": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"required": [
"api_id"
],
"additionalProperties": false
}🟡request_data(description, notify_url)
Create your own API from any public data. Example: request_data({description:"Daily FDA drug recalls for pet food with brand and reason"}). Describe data you need (10-500 characters). Free: we research public sources, build a trial and test it on real data (5 to 10 minutes). check_request then shows stage trial with a trial api_key: try it free (15 calls, 48 hours) with query_api. Keep it for $3 (returned as usage credit; free with a monthly plan) via authorize_build (poll check_request every couple of minutes). If it takes longer, the status says so and may offer alternatives that can be built right away. The request is listed publicly.
输入模式
{
"type": "object",
"properties": {
"description": {
"type": "string",
"description": "What data, for where, how fresh. E.g. \"Daily list of FDA drug shortages with status and company\"."
},
"notify_url": {
"type": "string",
"description": "Optional public https webhook: we POST a signed api_ready message the moment the API is built, so you do not need to poll."
}
},
"required": [
"description"
],
"additionalProperties": false
}🟢check_request(request_id)
Status of a request from request_data (a new API usually takes 5 to 10 minutes; poll every couple of minutes). stage is researching, building, ready (builds[] has the api_id to query), or in_progress (we are still building it; check back later). in_progress may list alternatives that can be built right away.
输入模式
{
"type": "object",
"properties": {
"request_id": {
"type": "string"
}
},
"required": [
"request_id"
],
"additionalProperties": false
}🟡export_dataset(api_id, api_key)
Download every record of a dataset API (up to 3,000) as JSON in one go. Offered on datasets with more than 50 records; priced like a call returning that many records (see options.full_export), paid from the key's credit. Without enough credit it returns the price and how to pay (x402 at full_export_url, or add credit).
输入模式
{
"type": "object",
"properties": {
"api_id": {
"type": "string"
},
"api_key": {
"type": "string",
"description": "Key from get_api_key."
}
},
"required": [
"api_id",
"api_key"
],
"additionalProperties": false
}🟡create_alert(api_id, api_key, params, webhook_url)
Get told when new records matching your filters appear in a dataset API (e.g. new recalls for a brand, new outages in a county). Checks after every refresh of the source; charged one call price per delivery (up to 50 new records), from the key's free calls or credit. Without webhook_url, deliveries wait in an inbox: read them with check_alerts.
输入模式
{
"type": "object",
"properties": {
"api_id": {
"type": "string"
},
"api_key": {
"type": "string",
"description": "Key from get_api_key for this API."
},
"params": {
"type": "object",
"description": "Filters, same as query parameters, e.g. {\"state\":\"CA\"}.",
"additionalProperties": {
"type": [
"string",
"number",
"boolean"
]
}
},
"webhook_url": {
"type": "string",
"description": "Optional public https URL to receive signed POSTs."
}
},
"required": [
"api_id",
"api_key"
],
"additionalProperties": false
}🟢check_alerts(api_key)
New records delivered by your alerts since the last check (marked as read). Use the same key you created the alerts with.
输入模式
{
"type": "object",
"properties": {
"api_key": {
"type": "string"
}
},
"required": [
"api_key"
],
"additionalProperties": false
}🟢screen_entity(name, kind, country, api_key)
Use when the user asks whether a company or person is sanctioned, blocked, debarred or excluded, or wants a KYC/vendor/export check. Checks a company or person against US sanctions (OFAC SDN and other Treasury lists), Commerce BIS Entity/Denied/Unverified lists, State Department ITAR and nonproliferation lists, and the HHS OIG healthcare exclusion list. Returns strong/possible matches with the official source of each, and which lists were checked when. Needs a key for the screening API (get_api_key with its api_id from search_apis "compliance"); $0.10 per check after free checks, or included in a monthly plan.
输入模式
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Company or person name."
},
"kind": {
"type": "string",
"enum": [
"person",
"entity"
]
},
"country": {
"type": "string",
"description": "Optional ISO-2 country code."
},
"api_key": {
"type": "string",
"description": "Optional; leave it out and a free key is created (first 15 checks free within 48 hours)."
}
},
"required": [
"name"
],
"additionalProperties": false
}🟡authorize_build(request_id, api_key)
When check_request shows stage trial (or trial_ended), keeping the API costs $3 and comes back as $3 of usage credit on it; it becomes permanent and public, and your trial key keeps working. Free with a monthly plan build. With a key this pays from its credit (or uses a plan build). Without a key, POST the authorize_url from check_request and pay the 402 with an x402 client (held up to 30 minutes, settled only if built).
输入模式
{
"type": "object",
"properties": {
"request_id": {
"type": "string"
},
"api_key": {
"type": "string",
"description": "Any of your keys (its credit or your account balance pays; plan builds are used first)."
}
},
"required": [
"request_id",
"api_key"
],
"additionalProperties": false
}🟢get_plans(api_id)
Pricing for a directory API: the price per call after the free calls (shared across all your keys), and the add-ons available for this feed with their prices (per call when used, or per export). No subscription: pay per call from prepaid credit on your key, or with x402 when a call returns 402. Monthly plans (compliance checks + data calls + monitored names): GET /v1/plans, buy with POST /v1/plans/buy?plan=starter|pro|business and your key. Cheapest for agents: top up a key once with x402 (POST /v1/credits/topup?usd=1, 5 or 20 with the key) and calls draw from that credit.
输入模式
{
"type": "object",
"properties": {
"api_id": {
"type": "string"
}
},
"required": [
"api_id"
],
"additionalProperties": false
}社区
证据