Skip to main content
Glama
fred-economic-intelligence-mcp

fred-economic-intelligence-mcp

by prithvi1029

FRED Agentic Economic Intelligence MCP

An open-source, MCP-native economic intelligence server built on the Federal Reserve Economic Data API. The project combines deterministic FRED tools with a curated economic knowledge graph, graph-enhanced retrieval, explainability, an Economic Digital Twin, scenario simulation, and a LangGraph-compatible multi-agent workflow.

Capabilities

  • FRED series search, metadata, observations, comparison, snapshots, and calendar-aware growth calculations

  • MCP tools for economic graph queries and evidence retrieval

  • Curated macroeconomic knowledge graph with transparent edges and confidence metadata

  • Lightweight GraphRAG using graph traversal plus local evidence retrieval

  • Economic Digital Twin with growth, inflation, labor, policy, housing, and financial-condition states

  • Directional scenario simulation with propagation traces and explicit limitations

  • Explainability through data provenance, domain attribution, graph paths, and citations

  • Supervisor-led multi-agent workflow compatible with LangGraph

  • Deterministic fallback mode that does not require an LLM API key

Related MCP server: mcp-fred

Important scope statement

This is a research-grade decision-support project. The digital twin and scenario engine are transparent directional models, not validated causal macroeconomic forecasts or investment advice.

Install

uv sync

Create a .env file locally:

FRED_API_KEY=your_fred_api_key

Never commit the .env file.

Run

uv run python -m fred_economic_intelligence_mcp.server

Or:

uv run fred-economic-intelligence-mcp

Main MCP tools

FRED data

  • health_check

  • search_series

  • get_series_metadata

  • get_series_observations

  • compare_series

  • latest_snapshot

  • calculate_growth_rate

Agentic intelligence

  • query_economic_graph

  • retrieve_economic_evidence

  • build_economic_digital_twin

  • simulate_economic_scenario

  • explain_economic_signal

  • run_agent_workflow

Normalized signal convention

Digital-twin inputs use values from -1.0 to 1.0:

  • positive: indicator increased or strengthened

  • negative: indicator decreased or weakened

  • zero: neutral or unavailable

The twin applies indicator-specific interpretation. For example, increases in unemployment or initial claims contribute negatively to labor-market strength.

Example:

{
  "CPIAUCSL": 0.25,
  "UNRATE": 0.40,
  "PAYEMS": -0.10,
  "HOUST": -0.30,
  "T10Y2Y": -0.50
}

Scenario shocks

Supported MVP shocks:

  • policy_rate_change

  • unemployment_change

  • inflation_change

Example:

{
  "policy_rate_change": -0.5
}

Test

uv run pytest -v --cov=fred_economic_intelligence_mcp --cov-report=term-missing

Open-source release

Before publishing, ensure .env, .venv, .coverage, caches, and Git internals are excluded from the archive and repository.

Available Tools

12 tools
build_economic_digital_twinB

Build an explainable economic-state digital twin from normalized signals.

Inputs: signals (required), as_of_date. Returns: object

calculate_growth_rateA
Calculate absolute and percentage change for a FRED series.

The comparison observation is selected by calendar date rather
than only by list position, which avoids off-by-one errors when
observations contain missing values.

Examples:
CPIAUCSL with periods=12 for year-over-year change.
GDP with periods=1 for quarter-over-quarter change.
UNRATE with periods=1 for month-over-month change.

Inputs: series_id (required), periods. Returns: object

compare_seriesA
Retrieve and compare multiple FRED economic series.

This tool fetches metadata and observations for each requested
series concurrently.

Example series IDs:
["GDP", "UNRATE", "CPIAUCSL", "FEDFUNDS"]

Inputs: series_ids (required), limit, observation_end, observation_start. Returns: object

explain_economic_signalC

Explain domain scores, series contributions, uncertainty, and methodology.

Inputs: signals (required). Returns: object

get_series_metadataA
Retrieve metadata for a FRED economic series.

Examples of series IDs:
GDP, CPIAUCSL, UNRATE, FEDFUNDS.

Inputs: series_id (required). Returns: object

get_series_observationsC
Retrieve observations for a FRED economic series.

Examples of series IDs:
GDP, CPIAUCSL, UNRATE, FEDFUNDS.

Inputs: series_id (required), limit, observation_end, observation_start. Returns: object

health_checkA

Check whether the FRED MCP server is running.

Inputs: no named parameters. Returns: object

latest_snapshotC

Return the latest valid observation for multiple FRED series.

Inputs: series_ids (required). Returns: object

query_economic_graphC

Query the curated macroeconomic knowledge graph.

Inputs: query (required), max_depth. Returns: object

run_agent_workflowC

Run the supervisor-led multi-agent economic intelligence workflow.

Inputs: question (required), shocks, signals. Returns: object

search_seriesC
Search FRED for economic data series using keywords.

Examples:
unemployment rate, inflation, consumer price index,
mortgage rates, housing starts, retail sales.

Inputs: search_text (required), limit. Returns: object

simulate_economic_scenarioC

Propagate transparent directional shocks through the economic digital twin.

Inputs: shocks (required), signals (required). Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 12 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes, but there is slight potential for confusion between advanced tools like 'simulate_economic_scenario' and 'build_economic_digital_twin' or 'explain_economic_signal' and 'query_economic_graph'. Overall, an agent can differentiate them with careful description reading.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern in snake_case, e.g., 'search_series', 'get_series_observations', 'simulate_economic_scenario'. This makes the set predictable and easy to navigate.

    Tool Count5/5

    With 12 tools, the server is well-scoped. It covers data retrieval, analysis, and advanced simulation without being overwhelming. Each tool contributes meaningfully to the economic intelligence domain.

    Completeness5/5

    The tool set is comprehensive for a FRED-based economic intelligence server. It includes search, metadata, observations, multiple series operations, growth rates, and advanced features like digital twin, scenario simulation, and agent workflows. No obvious gaps are present.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that provides access to Federal Reserve Economic Data (FRED), enabling users to retrieve, analyze, and compare economic indicators and time series data through natural language.
      2
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      An MCP server that wraps the Federal Reserve Economic Data (FRED) API, providing access to over 800,000 economic time series like GDP and unemployment. It enables AI agents to search for data, retrieve metadata, and fetch historical observations directly from the St. Louis Fed.
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Economic data MCP server that connects FRED, BLS, BEA, IMF, World Bank, and ECB to any MCP-compatible client, with built-in methodology rules to guide LLMs in selecting appropriate economic indicators.
      MIT