Skip to main content
Glama
publicfinance

publicfinance

by Leviai-ai

@leviai/publicfinance-mcp

Public Finance MCP Server — SEC EDGAR filings, US Treasury rates, BLS labor statistics, and economic indicators in one MCP server. Zero API keys required.

npm version License: MIT

Why This Exists

Existing SEC EDGAR MCP servers only cover filings. Existing FRED servers require API keys. No MCP server combines SEC EDGAR + US Treasury rates + BLS labor stats into one unified interface with zero configuration.

PublicFinance MCP gives AI agents access to the entire US public financial data landscape — company filings, yield curves, unemployment data, CPI, and more — all from free government APIs.

Related MCP server: Thesma MCP Server

Tools (6)

Tool

Description

company_filings

Search SEC EDGAR for company filings (10-K, 10-Q, 8-K, S-1, etc.) by ticker or CIK

company_facts

Get XBRL financial data — Revenue, NetIncome, Assets, and 1000+ standardized concepts

treasury_rates

US Treasury yield curve, bill rates, long-term rates, real yields

labor_statistics

BLS data: unemployment rate, CPI, nonfarm payrolls, participation rate, PPI, and custom series

ticker_lookup

Resolve ticker symbols ↔ company names ↔ CIK numbers

economic_overview

One-call snapshot of key US economic indicators (yield curve + unemployment + CPI + payrolls)

Quick Start

Install

npm install -g @leviai/publicfinance-mcp

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "publicfinance": {
      "command": "npx",
      "args": ["-y", "@leviai/publicfinance-mcp"]
    }
  }
}

Cursor / Windsurf / VS Code

Add to your MCP settings:

{
  "publicfinance": {
    "command": "npx",
    "args": ["-y", "@leviai/publicfinance-mcp"]
  }
}

Usage Examples

"Show me Apple's recent 10-K filings"

→ company_filings(company: "AAPL", form_type: "10-K")

"What's Apple's revenue over the past 5 years?"

→ company_facts(company: "AAPL", concept: "RevenueFromContractWithCustomerExcludingAssessedTax")

"Get the current Treasury yield curve"

→ treasury_rates(rate_type: "yield_curve")

"What's the unemployment rate?"

→ labor_statistics(preset: "unemployment")

"Give me an economic overview"

→ economic_overview()

"Look up Tesla's CIK number"

→ ticker_lookup(query: "TSLA")

Data Sources

All data comes from free, public US government APIs with no authentication required:

Source

Data

API

SEC EDGAR

Company filings, XBRL financials

data.sec.gov

US Treasury

Yield curves, bill rates, long-term rates

home.treasury.gov

Bureau of Labor Statistics

Unemployment, CPI, payrolls, PPI

api.bls.gov (v1, no key)

BLS Preset Series

Preset

Description

Series ID

unemployment

Unemployment Rate (SA)

LNS14000000

cpi

CPI All Urban Consumers

CUUR0000SA0

nonfarm_payrolls

Total Nonfarm Employment

CES0000000001

participation

Labor Force Participation Rate

LNS11300000

core_cpi

CPI Less Food & Energy

CUUR0000SA0L1E

avg_hourly_earnings

Average Hourly Earnings (Private)

CES0500000003

manufacturing

Manufacturing Employment

CES3000000001

ppi

Producer Price Index

PCU327320327320

You can also pass any custom BLS series ID via series_id.

Requirements

  • Node.js >= 18.0.0

  • No API keys needed

  • Internet access to US government APIs

Rate Limits

  • SEC EDGAR: Max 10 requests/second. The server uses a compliant User-Agent header.

  • BLS API v1: 25 series per query, 25 queries per day (no registration). For higher limits, register at bls.gov.

  • US Treasury: No documented rate limits.

License

MIT — Built by Levi Labs

Available Tools

6 tools
company_factsA

Get XBRL financial data for a company from SEC EDGAR. Returns standardized financial facts like Revenue, NetIncome, Assets, etc.

Inputs: company (required), concept.

company_filingsA

Search SEC EDGAR for company filings (10-K, 10-Q, 8-K, etc.). Accepts ticker symbol or CIK number.

Inputs: company (required), count, form_type.

economic_overviewA

Get a snapshot of key US economic indicators: Treasury yield curve, unemployment rate, CPI, and nonfarm payrolls. Multi-source overview in one call.

Inputs: no named parameters.

labor_statisticsA

Get US labor market and economic statistics from the Bureau of Labor Statistics (BLS). Includes unemployment rate, CPI, payrolls, and more. No API key required (v1 API).

Inputs: preset, end_year, series_id, start_year.

ticker_lookupA

Look up company ticker symbols, names, and CIK numbers. Search by ticker or company name.

Inputs: query (required).

treasury_ratesB

Get US Treasury interest rates including yield curve, bill rates, and long-term rates. No API key required.

Inputs: year, month, rate_type.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 6 tools

    Disambiguation4/5

    Tools are mostly distinct, but economic_overview and labor_statistics have overlapping indicators (unemployment, CPI, payrolls), which could confuse an agent needing specific BLS data versus an overview.

    Naming Consistency3/5

    All names are in snake_case but follow no consistent verb_noun pattern: some are noun-based (company_facts), others adjective_noun (economic_overview), and ticker_lookup reverses the pattern (noun_verb).

    Tool Count4/5

    6 tools is a reasonable number for the public finance domain, covering companies, filings, economics, labor, and treasury without being overwhelming.

    Completeness3/5

    Covers core financial data (SEC filings, economic indicators, treasury rates) but lacks tools for stock market data, government budgets, or cross-company comparisons, leaving notable gaps for a comprehensive public finance toolset.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Provides access to SEC EDGAR financial data, enabling AI agents to fetch company filings, financial metrics, and narrative sections. It supports natural-language metric searching and extracts structured data from 10-K, 10-Q, and 8-K reports.
      6
      40 PyPI
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to research US public company filings, financials, and insider transactions using SEC EDGAR data, with no API keys required. Provides tools for company lookup, recent filings, full-text search, financial facts, and insider activity.
      5
      1
      MIT