Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@FMP MCP ServerGive me a detailed stock brief for NVDA including valuation and analyst ratings"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
FMP MCP Server
A Model Context Protocol server that provides financial data from Financial Modeling Prep for AI-assisted investment research.
Built with FastMCP 2.0 and Python.
Tools
Workflow Tools (start here)
High-level tools that orchestrate multiple API calls into single research-ready responses:
Tool | Description |
| Quick comprehensive snapshot: profile, price action, valuation, analyst consensus, insider signals, headlines |
| Full market environment: rates, yield curve, sector rotation, breadth, movers, economic calendar |
| Pre-earnings positioning: consensus estimates, beat/miss history, analyst momentum, price drift, insider signals |
| Multi-method valuation: DCF, earnings-based, peer multiples, analyst targets, blended estimate |
| Post-earnings synthesis: beat/miss, trend comparison, analyst reaction, market response, guidance tone |
Atomic Tools (deeper dives)
Tool | Description |
| Company profile, quote, key metrics, and analyst ratings |
| Income statement, balance sheet, cash flow (annual/quarterly) |
| Analyst grades, price targets, and forward estimates |
| Historical and upcoming earnings with beat/miss tracking |
| Historical daily prices with technical context |
| Search for stocks by name or ticker |
| Insider trading activity and transaction statistics |
| Top institutional holders and position changes |
| Recent news and press releases |
| Current Treasury yields and yield curve |
| Upcoming economic events and releases |
| Sector performance, gainers, losers, most active |
| Earnings call transcripts with pagination support |
| Revenue breakdown by product and geography |
| Peer group valuation and performance comparison |
| Dividend history, yield, growth, and payout analysis |
Setup
Prerequisites
Python 3.11+
uv (recommended) or pip
An FMP API key
Install
Configure
Set your API key as an environment variable:
Or create a .env file:
Run
Claude Desktop / Claude Code
Add to your MCP config:
Testing
All tools are tested with mocked API responses using respx.
Architecture
Key design decisions:
Module pattern: Each tool file exports
register(mcp, client)to keep tools organizedParallel fetches: Workflow tools use
asyncio.gather()to call multiple endpoints concurrentlyGraceful degradation:
FMPClient.get_safe()returns defaults on error so composite tools return partial data instead of failing entirelyIn-memory TTL cache: Avoids redundant API calls with configurable TTLs per data type (60s for quotes, 24h for profiles)
License
MIT