fmp-mcp
Enables AI agents to analyze stocks, screen markets, compare peers, read earnings calls, and track sector rotations using live financial data from Financial Modeling Prep.
README
fmp-mcp
Financial intelligence for your AI agent — powered by live market data.
Give Claude (or any MCP-compatible AI) the ability to analyze stocks, screen markets, compare peers, read earnings calls, and track sector rotations — all grounded in real financial data from Financial Modeling Prep.
This isn't a raw API wrapper. Each tool is purpose-built for a specific analytical task, composing multiple data sources into structured, analysis-ready outputs designed for AI consumption.
Tool surface below was verified against fmp/server.py on 2026-03-19. The repo build exposes 19 MCP tools; the two estimate-revision tools require the estimates extra plus database access for useful live results.
What your AI can do
Market Intelligence
get_market_context— One-call market snapshot: indices, sectors, gainers/losers, economic eventsget_sector_overview— Sector and industry performance with P/E valuationsget_news— Stock-specific or broad market newsget_events_calendar— Earnings, dividends, splits, and IPO calendarsget_economic_data— Economic indicators and high-impact event tracking
Fundamental Analysis
fmp_fetch— Direct access to 60+ financial data endpoints (income statements, balance sheets, cash flows, key metrics, and more)compare_peers— Side-by-side peer comparison across 12 financial ratiosget_earnings_transcript— Parsed earnings calls with speaker attribution and Q&A sections
Stock Screening & Discovery
screen_stocks— Screen by sector, market cap, beta, dividend, volume, and moreget_institutional_ownership— Institutional holder analytics and ownership trendsget_insider_trades— Insider transaction flow and statisticsget_etf_holdings— ETF/fund holdings, sector and country allocation
Technical Analysis
get_technical_analysis— Composite signals from 7 indicators (SMA, EMA, RSI, MACD, Bollinger, ADX, Williams %R) with buy/sell scoring
Analyst Sentiment
get_estimate_revisions— Historical EPS/revenue estimate revision trendsscreen_estimate_revisions— Screen for estimate momentum across a universe of stocks
Data Discovery
fmp_list_endpoints— Browse all 60+ available data endpoints by categoryfmp_describe— Get parameter documentation for any endpointfmp_search— Search for companies by name or tickerfmp_profile— Company profile with sector, industry, and key stats
Install
pip install fmp-mcp
Optional estimate-revision tools (requires PostgreSQL):
pip install "fmp-mcp[estimates]"
Configuration
Set your API key:
export FMP_API_KEY="your_key"
Optional settings:
FMP_CACHE_DIR— Custom cache directory (default:~/.cache/fmp-mcp/)FMP_CACHE_MAXSIZE— Max in-memory cache entries (default: 200)
Run
fmp-mcp
Or register it with Claude Code from the repo root:
claude mcp add fmp-mcp --scope user \
-- python3 -m fmp.server
You can also use a generic MCP config:
{
"mcpServers": {
"fmp-mcp": {
"type": "stdio",
"command": "uvx",
"args": ["fmp-mcp"],
"env": { "FMP_API_KEY": "your_key" }
}
}
}
How it's different
| Raw API wrapper | fmp-mcp | |
|---|---|---|
| Approach | Expose every endpoint 1:1 | Purpose-built analytical tools |
| Output | Raw JSON, dozens of fields | Structured, summarized, analysis-ready |
| Composition | One API call per tool | Multiple sources stitched together |
| AI-optimized | Generic descriptions | Tool descriptions and schemas designed for LLM tool selection |
| Caching | None | Per-endpoint disk caching with configurable refresh strategies |
Requirements
- Python 3.11+
- FMP API key (get one here)
Related Docs
docs/reference/FMP_ENDPOINTS.md— registered endpoint catalogdocs/reference/MCP_SERVERS.md— server registration and troubleshooting
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.