Documentation
Everything you need to integrate macroeconomic data into your applications and AI agents.
Quickstart
Get macroeconomic data in your AI agent or app in 5 minutes.
1Get an API Key
Sign up for free at meridianapi.io to get your API key instantly.
2Connect via MCP (Claude Desktop)
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"meridian": {
"url": "https://api.meridianapi.io/sse"
}
}
}Restart Claude Desktop. You'll see Meridian in your available tools.
3Try It
Ask Claude:
- "How's the US economy doing right now?"
- "What happened to inflation in the last 3 months?"
- "Compare current conditions to 2008"
4Or Use the REST API
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.meridianapi.io/v1/snapshotInterfaces
Four ways to access Meridian data — pick whatever fits your stack.
MCP Tools
For AI agents — Claude Desktop, Cursor, Windsurf, and any MCP-compatible client.
REST API
Standard HTTP endpoints for any language or framework. JSON responses.
Python SDK
pip install meridian-data — Pythonic wrapper with pandas support.
TypeScript SDK
npm install @meridian/sdk — Fully typed, tree-shakeable.
MCP Tools Reference
get_macro_snapshot
Returns current values of key macro indicators with historical context.
| Parameter | Type | Default | Description |
|---|---|---|---|
| indicators | string[] | Core 6 | FRED series IDs |
| as_of_date | string | today | Point-in-time date |
| include_history | boolean | false | Include trailing data |
| history_periods | number | 12 | Periods of history |
Example response:
{
"snapshot_date": "2026-03-09",
"regime": {
"label": "expansion",
"confidence": 0.7,
"signals": ["Strong growth", "Normal yield curve"]
},
"indicators": [
{
"id": "UNRATE",
"title": "Unemployment Rate",
"latest": { "date": "2026-02-01", "value": 4.4, "units": "Percent" },
"changes": { "yoy": 4.76 },
"context": {
"percentile_10y": 66.4,
"z_score_10y": -0.1,
"direction": "rising"
}
}
]
}explain_macro_change
Analyzes what changed in a specific indicator.
| Parameter | Type | Default | Description |
|---|---|---|---|
| indicator | string | required | FRED series ID |
| period | string | "1m" | 1m, 3m, 6m, 1y, ytd |
compare_macro_regimes
Compares current conditions to historical periods.
| Parameter | Type | Default | Description |
|---|---|---|---|
| compare_to | string[] | auto | Dates or named regimes |
| indicators | string[] | Core 5 | Indicators to compare |
Named regimes: 2008_crisis, 2020_covid, 1970s_stagflation, 2001_dotcom, 1990s_expansion, volcker_era
REST API Reference
Base URL: https://api.meridianapi.io
/v1/snapshotGet current macro indicator values with historical context. Same data as the get_macro_snapshot MCP tool.
🔐 Bearer token required
Parameters
indicators·string—Comma-separated series IDs (e.g. UNRATE,CPIAUCSL)as_of_date·string—Point-in-time date (YYYY-MM-DD)include_history·boolean—Include trailing historical datacurl -H "Authorization: Bearer mrd_xxx" \
"https://api.meridianapi.io/v1/snapshot?indicators=UNRATE,CPIAUCSL"/v1/explainAnalyze what changed in a specific indicator over a period. Same data as the explain_macro_change MCP tool.
🔐 Bearer token required
Parameters
indicator·string—Series ID (required)period·string—1m, 3m, 6m, 1y, or ytd/v1/compareCompare current conditions to historical periods. Same data as the compare_macro_regimes MCP tool.
🔐 Bearer token required
Parameters
compare_to·string—Comma-separated dates or named regimesindicators·string—Comma-separated series IDs/v1/seriesList all available data series with metadata.
🔐 Bearer token required
/v1/series/:idGet details and recent observations for a specific series.
🔐 Bearer token required
Parameters
:id·path—Series ID (e.g. UNRATE, GDP, BTC-USD)/v1/dashboardPublicFull economy dashboard — regime classification, 8 categories, 33 key indicators with values, percentiles, and direction.
/v1/queryPublicNatural language query — ask a question about the economy in plain English.
Parameters
question·string—Your question (in request body as JSON)curl -X POST https://api.meridianapi.io/v1/query \
-H "Content-Type: application/json" \
-d '{"question": "How is inflation trending?"}'/v1/health/dataPublicData quality health check — stale series, out-of-range values, reconciliation status.
Data Coverage
270+ series across 4 sources. ~380,000 observations. Updated daily.
🇺🇸 U.S. Macro (FRED) — 53 series
GDP & Growth
GDPGDPC1A191RL1Q225SBEAInflation
CPIAUCSLCPILFESLPCEPIPCEPILFEPPIFISMICHEmployment
UNRATEPAYEMSICSACCSAJTSJOLAWHAETPCES0500000003Interest Rates
FEDFUNDSDFFDPRIMEYield Curves
DGS1MODGS3MODGS6MODGS1DGS2DGS5DGS10DGS20DGS30T10Y2YT10Y3MT10YIET5YIEHousing
MORTGAGE30USHOUSTPERMITCSUSHPINSAMSPUSMarkets
SP500DEXUSEUDTWEXBGSVIXCLSCommodities
DCOILWTICOGOLDAMGBD228NLBMMoney Supply
M2SLWALCLTrade & Fiscal
BOPGSTBFYFSDGFDEBTNConsumer & Production
UMCSENTRSAFSINDPROTCUDGORDERCredit
DRTSCILMTOTCI🇪🇺 European Macro (ECB) — 11 series
Inflation
HICPCore HICPInterest Rates
MRO RateDeposit FacilityMoney & Growth
M3GDP GrowthUnemploymentFX & Bonds
EUR/USDEUR/GBPEUR/JPYDE 10Y Yield🌍 Global Development (World Bank) — 161 series
Development
GDP per capitaLife expectancyPopulation growthCO2 emissions...Trade & Finance
Trade % GDPFDIRemittancesExternal debt...📈 Markets (Yahoo Finance) — 46 assets
Stocks (20)
AAPLMSFTGOOGAMZNNVDAMETATSLABRK-BJPMVUNHHDPGMAJNJXOMAVGOCOSTLLYWMTCrypto (10)
BTC-USDETH-USDSOL-USDBNB-USDXRP-USDADA-USDDOGE-USDDOT-USDAVAX-USDMATIC-USDETFs (10)
SPYQQQIWMGLDTLTEFAVWOHYGXLFXLEIndices (6)
^GSPC^DJI^IXIC^RUT^VIX^TNXTotal: 270+ series · ~380,000 observations · Updated daily from FRED, ECB, World Bank, and Yahoo Finance.
SDKs
🐍 Python
pip install meridian-datafrom meridian import Meridian
client = Meridian(api_key="mrd_xxx")
# Get current snapshot
snapshot = client.snapshot(
indicators=["UNRATE", "CPIAUCSL", "GDP"]
)
print(snapshot.regime)
# Explain a change
explanation = client.explain("CPIAUCSL", period="3m")
print(explanation.summary)
# Natural language query
answer = client.query("How is the labor market?")
print(answer.text)📦 TypeScript
npm install @meridian/sdkimport { Meridian } from "@meridian/sdk";
const client = new Meridian({ apiKey: "mrd_xxx" });
// Get current snapshot
const snapshot = await client.snapshot({
indicators: ["UNRATE", "CPIAUCSL", "GDP"],
});
console.log(snapshot.regime);
// Explain a change
const explanation = await client.explain("CPIAUCSL", {
period: "3m",
});
console.log(explanation.summary);
// Natural language query
const answer = await client.query("How is the labor market?");
console.log(answer.text);Authentication
API keys start with mrd_ and are passed as Bearer tokens:
Authorization: Bearer mrd_your_api_key_hereAuthenticated endpoints
/v1/snapshot, /v1/explain, /v1/compare, /v1/series — require Bearer token
Public endpoints
/v1/dashboard, /v1/query, /v1/health/data — no authentication required
Get your API key at /signup. Keys are scoped per project and can be rotated from your dashboard.
Rate Limits
| Plan | Requests / month | Price |
|---|---|---|
| Free | 1,000 | $0 |
| Pro | 50,000 | $49/mo |
| Enterprise | Unlimited | $299/mo |
Rate limit headers are included in every response. If you hit the limit, you'll receive a 429 status with a Retry-After header.