NS Pros Data API 以單一 MCP server 整合多類公共數據
Giving your AI agent access to public data: one MCP server for weather, earthquakes, finance, and government open data
NS Pros Data API 將經授權核查的公共數據來源整合為一個 MCP server 和共用同一金鑰的 REST API,讓 AI 智能體透過三個工具搜尋來源、查詢數據及查看用量。來源涵蓋日本氣象廳、世界銀行、美國國家氣象局等,查詢結果會標準化,並附上來源授權與署名資訊;只提供確認可商業再分發的來源。免費方案每月提供 1,000 次請求,按量付費為每 1,000 次 $1.99。
Public data is some of the most useful data an agent can have — weather forecasts, earthquake reports, economic indicators, public holidays, drug references — but it's scattered across government portals that each speak a different API dialect and carry different license terms.
The NS Pros Data API wraps license-cleared public data sources into one MCP server (and a REST API sharing the same key), so an agent can discover and query them through three tools.
Connect it
Get a free key at data.nspros.ca/signup (issued immediately, no card), then add the server to your MCP client:
{
"mcpServers": {
"nspros-data": {
"url": "https://api.nspros.ca/mcp",
"headers": {
"Authorization": "Bearer <key>"
}
}
}
}
(VS Code uses a servers block with "type": "http" — ready-to-copy files for both are in the GitHub repo.)
The tools
-
search_sources— find sources by keyword, category (weather_env,finance,health,business,science, …), or country. -
query_source— query one source, e.g. Japan Meteorological Agency earthquake reports or World Bank indicators. Results come back as normalized records, whatever the upstream format was. -
get_usage— plan and monthly usage for your key.
Sources include the Japan Meteorological Agency, the World Bank, the US National Weather Service, US Treasury Fiscal Data, Government of Canada open data, and UK data.gov.uk — and new sources are added daily.
Why license-checking is the point
"Public" doesn't always mean "you may redistribute this commercially." Each source in this catalog was reviewed against its license terms, and only sources that confirm commercial redistribution are offered. Every response includes the source's license and attribution, so the terms travel with the data.
Prefer REST?
The catalog is public — no key needed:
curl "https://api.nspros.ca/v1/sources?category=finance&country=US"
Queries use the same key:
curl -H "Authorization: Bearer <key>" \
"https://api.nspros.ca/v1/query/uk_bank_holidays?q=2026"
There's an OpenAPI spec and Python/Node quickstarts in the repo.
Pricing
Free tier: 1,000 requests/month, no card. Pay as you go: $1.99 per 1,000 requests.
Disclosure: I build and run NS Pros Data API. I'd love feedback — which public datasets would you want your agent to reach first?
來源:DEV Community · dev.to