Connect through MCP
Use the same Narwhal key and public API schemas from an MCP client.
Narwhal exposes one stateless Streamable HTTP MCP endpoint. It uses the same enabled data APIs, response schemas, authentication, and credit as REST.
Connect
Add the remote server https:/ to your MCP client. Choose Connect, sign in with your Narwhal account, and choose Allow on the Narwhal consent screen.
If your client cannot sign in, use your API key instead.
Add the remote server URL and Bearer header to an MCP client that supports authenticated Streamable HTTP.
{
"url": "https://api.narwhalapi.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_NARWHAL_API_KEY"
}
}This is a field map, not a copy-paste file. Replace YOUR_ through your client's secure secret setting. JSON does not expand shell variables by itself, and MCP clients use different environment-variable syntax.
Do not paste a real key into a shared configuration file.
Available tools
tools/ returns the public tools enabled for this release profile. The data tools are read-only; the monitor tools and report_missing_data change state. The catalogue below is the public tool set, not a promise that every source has a value for every input.
economics_ get_ cpieconomics_ get_ inflationeconomics_ get_ unemploymenteconomics_ get_ labour_ force_ participationeconomics_ get_ gdpeconomics_ get_ gdp_ growtheconomics_ get_ tradeeconomics_ get_ cpi_ historyeconomics_ get_ inflation_ historyeconomics_ get_ unemployment_ historyeconomics_ get_ labour_ force_ participation_ historyeconomics_ get_ gdp_ historyeconomics_ get_ gdp_ growth_ historyeconomics_ get_ trade_ historyfx_ get_ ratesfx_ get_ rate_ historyfx_ convert_ currencycommodities_ list_ palmoil_ physical_ seriescommodities_ get_ palmoil_ physical_ pricecommodities_ get_ palmoil_ physical_ observationscalendars_ list_ holidayscalendars_ get_ holidays_ on_ datecalendars_ get_ next_ holidayeconomics_ get_ yield_ curveeconomics_ get_ yield_ curve_ historyeconomics_ list_ releaseseconomics_ get_ releasecommodities_ get_ spot_ priceeconomics_ read_ series_ observationspredictions_ list_ topicspredictions_ get_ topicpredictions_ list_ eventspredictions_ get_ scalarpredictions_ get_ scalar_ historypredictions_ get_ extremepredictions_ get_ extreme_ historypredictions_ get_ timingpredictions_ get_ timing_ historypredictions_ get_ binarypredictions_ get_ binary_ historypredictions_ get_ policy_ pathpredictions_ get_ policy_ path_ historyeconomics_ get_ policy_ rateeconomics_ get_ policy_ rate_ historyeconomics_ get_ central_ bank_ reserveseconomics_ get_ central_ bank_ balance_ sheetcalendars_ get_ exchange_ closurescalendars_ get_ exchange_ statuscalendars_ list_ exchangescalendars_ get_ business_ dayseconomics_ get_ population_ historyeconomics_ get_ regional_ cpieconomics_ get_ regional_ gdpcalendars_ convert_ datescalendars_ find_ datescalendars_ get_ hijri_ yeareconomics_ get_ equity_ risk_ premiumeconomics_ get_ equity_ risk_ premium_ historyeconomics_ list_ equity_ risk_ premiumeconomics_ get_ rate_ decisionseconomics_ get_ industrial_ productioneconomics_ get_ industrial_ production_ historyeconomics_ get_ retail_ saleseconomics_ get_ retail_ sales_ historyeconomics_ get_ producer_ priceseconomics_ get_ producer_ prices_ historyeconomics_ get_ average_ wageseconomics_ get_ average_ wages_ historyeconomics_ get_ real_ gdpeconomics_ get_ real_ gdp_ historyeconomics_ get_ gdp_ deflatoreconomics_ get_ gdp_ deflator_ historyeconomics_ get_ household_ consumptioneconomics_ get_ household_ consumption_ historyeconomics_ get_ government_ consumptioneconomics_ get_ government_ consumption_ historyeconomics_ get_ gross_ fixed_ capital_ formationeconomics_ get_ gross_ fixed_ capital_ formation_ historyeconomics_ get_ harmonised_ inflationeconomics_ get_ harmonised_ inflation_ historyeconomics_ list_ serieseconomics_ get_ current_ accounteconomics_ get_ current_ account_ historyeconomics_ get_ money_ supplyeconomics_ get_ money_ supply_ historyequitieseconomics_ get_ credit_ ratingeconomics_ list_ credit_ ratingseconomics_ get_ inflation_ calculatoreconomics_ get_ country_ profilefx_ list_ currencieseconomics_ get_ reference_ ratespredictions_ list_ accuracypredictions_ get_ accuracyeconomics_ get_ forecaststrade_ list_ hs_ codestrade_ get_ hs_ codetrade_ get_ coveragetrade_ get_ partnerstrade_ get_ productstrade_ get_ producttrade_ get_ flowsfilings_ search_ companiesfilings_ get_ companyfilings_ get_ financialsfilings_ list_ company_ filingsfilings_ get_ filingfilings_ list_ latest_ filingsfilings_ list_ holdersfilings_ get_ as_ reportedfilings_ screen_ companiesfilings_ get_ screen_ filtersfilings_ search_ line_ itemsfilings_ get_ sectionsfilings_ get_ company_ sectionsfilings_ list_ section_ itemsfilings_ list_ institutional_ holdersfilings_ list_ investor_ holdingsfilings_ search_ investorsfilings_ list_ investor_ filingsfilings_ list_ fund_ holdingsfilings_ list_ company_ fundscalendars_ list_ registrationsfilings_ list_ beneficial_ ownersfilings_ list_ investor_ beneficial_ ownershipfilings_ search_ beneficial_ ownership_ filersfilings_ search_ beneficial_ ownership_ companiesfilings_ list_ congress_ feedfilings_ list_ congress_ tradesfilings_ list_ congress_ membersfilings_ list_ congress_ member_ tradesfilings_ list_ insider_ tradesfilings_ list_ insider_ ownershipfilings_ list_ insider_ feedfilings_ list_ insider_ person_ tradesfilings_ list_ company_ insidersfilings_ get_ insider_ activityfilings_ list_ insider_ transaction_ codesfilings_ list_ insider_ statementsfundscryptocompany_ calendarseconomics_ search_ catalogueeconomics_ read_ catalogue_ serieseconomics_ read_ catalogue_ observationseconomics_ read_ catalogue_ latest_ batchcommodities_ get_ price_ historyfx_ get_ rate_ barscommodities_ list_ physical_ seriescommodities_ get_ physical_ seriescommodities_ get_ physical_ latestcommodities_ get_ physical_ observationsevents_ listevents_ getMonitors
A monitor sends a signed JSON event to an HTTPS URL when a new figure arrives. These seven tools create and manage monitors with the same inputs, results and errors as the / routes. They are not read-only, and they take no credit. A monitor needs a public HTTPS URL that your agent or its backend controls. An agent with no endpoint should poll events_ instead.
| Tool | What it does |
|---|---|
monitors_ | Create a monitor from a URL, countries and families. Returns the signing secret once. |
monitors_ | List the account's monitors and how many it may enable. |
monitors_ | Pause or resume a monitor, or change its URL, countries or families. What you leave out stays as it is. |
monitors_ | Delete a monitor. |
monitors_ | Send a signed test event to the monitor's URL. |
monitors_ | List what was sent to the URL, with the status of each attempt. |
monitors_ | Send an earlier delivery again. Its event id stays the same. |
The signing secret is shown only in the result of monitors_. The agent must hand it to the user's backend to store. Each event carries x-narwhal-timestamp and x-narwhal-signature; the backend recomputes the HMAC-SHA256 of the timestamp, a dot and the raw body with the secret and compares it with the signature before it trusts the body. The steps are in the webhooks reference. An account can keep 25 monitors, and all of them can be enabled. A country that no event of the chosen families can reach is refused, and the error names it. The dashboard lists the countries each release type can fire for. An account created by agent sign-up gets account_pending until the user has verified it.
An app sign-in, such as a Claude or ChatGPT connector, cannot manage monitors. The monitor tools are left out of its tool list, and a call answers status 403 with api_key_required. A connection with an API key can manage monitors.
A monitor sends a delivery only when a new figure arrives. A figure changed later, a date change and a cancelled release are not sent and not charged. The families are `gdp`, `prices`, `labour`, `trade`, `policy_rate`, `yield_curve`, `predictions` and `filings`, and any other is refused. A monitor fires only for releases Narwhal has for that country.
A release day can produce a calendar event and a data event for one publication. A monitor that matches both gets one delivery: release.updated carries the release and, when the values can be read, the data, and the linked dataset.published event is not sent to the same monitor when that release carries the figure. Every event type, field and example body is in the receive webhooks guide.
Report missing data
Tell Narwhal about data you looked for and did not find. Say what was wanted in one sentence: the figure, the country or market, and the period. Free, 20 a day.
The tool is report_. It takes no credit and returns no data. Narwhal reads the reports to decide what data to add.
{ "name": "report_missing_data",
"arguments": {
"wanted": "Monthly palm oil stocks in Sabah for 2025" } }The result is { "status": "recorded" }. The status is already_ when this account sent the same report earlier today.
| Field | What it holds |
|---|---|
wanted | Required. What was wanted, in one plain sentence. At most 300 characters. |
area | The area the data belongs to. One of calendars, commodities, company_, crypto, economics, equities, events, filings, funds, futures, fx, indices, predictions, trade, other. |
country | ISO 3166 three-letter country code, when the data is about one country. |
tried | The tool you called that did not have it. |
source_ | A public page that publishes the data. |
An app sign-in, such as a Claude or ChatGPT connector, cannot report missing data. The tool is left out of its tool list, and a call answers status 403 with api_key_required. A connection with an API key can report.
When a tool answers not_covered or a not-found code to a connection with an API key, its result carries one more line of text: If you expected Narwhal to have this data, call report_ and say what was wanted.
| Refusal | Detail |
|---|---|
429 limit_ | This account has sent 20 reports today. Send more tomorrow. |
403 api_ | Missing data cannot be reported through an app sign-in. Connect to this MCP server with a Narwhal API key as a Bearer token. |
400 invalid_ | A field is missing or not well formed. The detail names the field. |
Arguments and results
Latest-release tools accept country, optional period and optional version_. History tools accept country, optional start and end, plus limit and cursor for pagination.
{
"country": "USA",
"period": "2026-07"
}| Tool | Period | Other arguments |
|---|---|---|
economics_ | YYYY-MM | version_ |
economics_ | YYYY-MM or YYYY-QN | version_ |
economics_ | YYYY, YYYY-MM, or YYYY-QN | version_ |
economics_ | YYYY, YYYY-MM, or YYYY-QN | version_ |
economics_ | YYYY-QN | version_ |
economics_ | YYYY-QN | version_ |
economics_ | YYYY or YYYY-MM | version_ |
economics_ | YYYY-QN | version_ |
economics_ | YYYY-MM | version_ |
economics_ | YYYY-MM | version_ |
economics_ | YYYY-MM | version_ |
economics_ | YYYY-MM | version_ |
economics_ | YYYY-MM | start, end, limit, and cursor |
economics_ | YYYY-MM or YYYY-QN | start, end, limit, and cursor |
economics_ | YYYY-MM or YYYY-QN | start, end, limit, and cursor |
economics_ | YYYY-MM or YYYY-QN | start, end, limit, and cursor |
economics_ | YYYY-QN | start, end, limit, and cursor |
economics_ | YYYY-QN | start, end, limit, and cursor |
economics_ | YYYY-MM | start, end, limit, and cursor |
economics_ | YYYY | start, end, limit, and cursor |
economics_ | YYYY-QN | start, end, limit, and cursor |
economics_ | YYYY-MM | start, end, limit, and cursor |
economics_ | YYYY-MM | start, end, limit, and cursor |
economics_ | YYYY-MM | start, end, limit, and cursor |
economics_ | YYYY-MM | start, end, limit, and cursor |
Successful tool calls return schema-valid structuredContent plus the same JSON serialized as text for client compatibility. MCP problems use the same public status and code vocabulary as REST.
Credit behavior
Initialization and tool discovery cost nothing. Each successful tools/ takes the same credit as the matching REST call, at the price of its API. A tool that takes several ids costs one call for each id.
{
"method": "tools/call",
"params": {
"name": "fx_get_rates",
"arguments": { "base": "USD", "currencies": ["EUR", "JPY"] }
}
}Every account gets $10 free every month. The limit is 50 requests a minute on free credit and 500 once the account holds paid credit. X-Narwhal-Cost and X-Narwhal-Balance show what a call cost and what is left. The X-RateLimit-* headers describe your request bucket: Limit is its size (the burst), Remaining is what is left and Reset is when it is full again. It refills at the per-minute rate. Too many requests too fast return 429 rate_; a balance that cannot pay for the call returns 402 insufficient_.
Troubleshooting
| Symptom | Check |
|---|---|
401 invalid_ | Confirm the exact Bearer header and that the key is still active. |
| Connection follows a redirect | Use exactly https:/ without a trailing slash. |
| Tool is missing | Only the public tools listed above are available. |
| Tool returns a problem | Read its structured status, code, detail, and request ID. See Errors and credits. |
Was this page helpful?