Skip to main content

MCP server for AI-powered stock market intelligence

Project description

financial-mcp-server

PyPI Downloads

Give your AI agent real stock-market data. This is an MCP server with 33 tools for prices, fundamentals, SEC filings, macro data, futures positioning, market-regime detection, and paper trading — usable by any MCP-compatible LLM or agent (Claude, Cursor, and more).

No API keys required to get started. Data comes from yfinance, SEC EDGAR, CFTC, Treasury.gov, and Google Trends.


Quick start (2 minutes)

You connect this server to your AI app once, then just talk to your agent normally — it calls the tools for you. There's nothing to run yourself.

Step 1 — Install a launcher

You need one of these on your machine:

  • uv (recommended — runs the server without installing it):
    # macOS / Linux
    curl -LsSf https://astral.sh/uv/install.sh | sh
    # Windows (PowerShell)
    powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
    
  • or pip (Python 3.10+ already installed):
    pip install financial-mcp-server
    

Step 2 — Add it to your AI app

Pick your app below, paste the config, and restart the app. That's it.

Claude Desktop

Open your config file (create it if it doesn't exist):

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add this, then fully quit and reopen Claude Desktop:

{
  "mcpServers": {
    "financial-mcp": {
      "command": "uvx",
      "args": ["financial-mcp-server"]
    }
  }
}
Claude Code

One command:

claude mcp add financial-mcp -- uvx financial-mcp-server
Cursor

Create .cursor/mcp.json in your project (or ~/.cursor/mcp.json for all projects):

{
  "mcpServers": {
    "financial-mcp": {
      "command": "uvx",
      "args": ["financial-mcp-server"]
    }
  }
}

Then enable it in Settings → MCP.

Any other MCP client (Windsurf, custom agents, SDKs…)

Configure an MCP server that launches this command over stdio:

command: uvx
args:    ["financial-mcp-server"]

If you installed with pip instead of uv, the command is just financial-mcp (no args). Most clients use the same mcpServers JSON shape shown above.

Using pip instead of uv? Replace "command": "uvx", "args": ["financial-mcp-server"] with "command": "financial-mcp" everywhere above.

Step 3 — Verify it's working

In your agent, ask:

"What's the current price of AAPL?"

If it answers with a live price, you're connected. Other things to try:

  • "Analyze NVDA — fundamentals, momentum, and a score."
  • "What market regime are we in right now?"
  • "Show me recent SEC 10-K filings for Microsoft."
  • "Scan AAPL, MSFT, GOOGL, AMZN and rank them."

What you can ask for (all 33 tools)

You don't call these directly — your agent picks the right one from your question. This is just a reference for what's available.

Analysis & Scoring

Tool What it does
analyze_ticker Full analysis: fundamentals, momentum, composite score
scan_universe Rank tickers by composite score
score_ticker Composite score (0-100) with breakdown
get_fundamentals PE, EV/EBITDA, P/B, dividend yield, market cap
get_momentum 30d/90d momentum, volatility, relative strength
get_price Current price

SEC EDGAR

Tool What it does
get_sec_filings 10-K, 10-Q, 8-K filings for any public company
get_insider_trades Insider buys/sells (Forms 3/4/5)
search_sec_filings Full-text search across all SEC filings

Macro & Economic

Tool What it does
get_economic_indicator Any FRED series (GDP, CPI, unemployment, etc.)
get_yield_curve Treasury yield curve with inversion detection
get_economic_snapshot Key indicators at a glance
get_treasury_rates Average Treasury interest rates
get_treasury_yield_curve Daily yield curve data (1mo-30yr)
get_treasury_auctions Recent auction results

Futures & Positioning

Tool What it does
get_futures_positioning CFTC COT data for any commodity/index
get_smart_money_signal Bullish/bearish signal from commercial hedgers

Sentiment & Trends

Tool What it does
get_search_trends Google Trends interest over time
get_trending_searches Currently trending searches

Market Intelligence

Tool What it does
detect_market_regime BULL / BEAR / SIDEWAYS / HIGH_VOLATILITY / CRASH
get_regime_history Monthly regime classification
get_vix_analysis VIX level, percentile, fear signal
scan_anomalies Volume spikes, gaps, 52w extremes, divergences
scan_volume_leaders Unusual volume detection
scan_gap_movers Significant gap ups/downs at open

Portfolio & Paper Trading

Tool What it does
create_portfolio Start a paper portfolio (capital, risk profile, horizon)
analyze_portfolio Holdings, allocations, performance, and risk summary
get_holdings Current positions with values
get_trades Trade history (filter by status)
execute_buy Buy shares at the current price
execute_sell Sell shares at the current price
run_rebalance Score a universe and execute buy/sell signals
check_risk Stress score, scenario drawdowns, concentration

Paper trades are saved to a local SQLite file (see FINANCIAL_MCP_DB_PATH below).


Optional settings

Everything works out of the box. These are only if you want to customize:

Environment variable What it does Default
FRED_API_KEY Unlocks the FRED macro tools — grab a free key unset (FRED tools limited)
FINANCIAL_MCP_DB_PATH Where paper-trading data is stored ~/.financial-mcp/financial_mcp.db
FINANCIAL_MCP_TRANSPORT stdio (for AI apps) or sse (network server) stdio
FINANCIAL_MCP_CONFIG Path to a custom config.yaml built-in defaults

To set an env var in Claude Desktop / Cursor, add an "env" block to the config:

{
  "mcpServers": {
    "financial-mcp": {
      "command": "uvx",
      "args": ["financial-mcp-server"],
      "env": { "FRED_API_KEY": "your-key-here" }
    }
  }
}

Running as a standalone network server? financial-mcp --transport sse.


Troubleshooting

  • Agent doesn't see the tools → fully restart the app after editing the config (Claude Desktop must be quit, not just closed).
  • uvx: command not found → install uv (Step 1), or switch to the pip method (pip install financial-mcp-server, then use "command": "financial-mcp").
  • Want to confirm the package runs at all?uvx financial-mcp-server --help.

Changelog

See CHANGELOG.md for what changed in each release.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

financial_mcp_server-0.1.11.tar.gz (63.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

financial_mcp_server-0.1.11-py3-none-any.whl (54.7 kB view details)

Uploaded Python 3

File details

Details for the file financial_mcp_server-0.1.11.tar.gz.

File metadata

  • Download URL: financial_mcp_server-0.1.11.tar.gz
  • Upload date:
  • Size: 63.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for financial_mcp_server-0.1.11.tar.gz
Algorithm Hash digest
SHA256 aacb8bcec6f6600befeab516a41b9d0032d58122f1e6debef1f2d1b9e04fce1d
MD5 29f12471618e72d25283edb823a79c87
BLAKE2b-256 d025ec392166956e1e74750e5a6455de7d06bfa08ea8a9e1eaae877e3e2a5e40

See more details on using hashes here.

Provenance

The following attestation bundles were made for financial_mcp_server-0.1.11.tar.gz:

Publisher: publish.yml on arnavbhatia1/FinancialMCP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file financial_mcp_server-0.1.11-py3-none-any.whl.

File metadata

File hashes

Hashes for financial_mcp_server-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 b0e3a3e3e42ca82883178aa58dea8244ff340a69cdeccb0688bca68b975d3516
MD5 e9a87f147fb4ea70e4da0f71992862d0
BLAKE2b-256 689d7871059a89d8393fd17da4f3507aab12adecbaf0b901c80798bb31168c59

See more details on using hashes here.

Provenance

The following attestation bundles were made for financial_mcp_server-0.1.11-py3-none-any.whl:

Publisher: publish.yml on arnavbhatia1/FinancialMCP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page