Financial Modeling Prep MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
git clone https://github.com/jackdark425/aigroup-fmp-mcp.git
cd aigroup-fmp-mcp
npm install
npm run build
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "FMP_API_KEY=${FMP_API_KEY}" fmp-mcp -- node "<FULL_PATH_TO_AIGROUP_FMP_MCP>/dist/index.js"

Replace <FULL_PATH_TO_AIGROUP_FMP_MCP>/dist/index.js with the actual folder you prepared in step 1.

Required:FMP_API_KEY
README.md

MCP server for Financial Modeling Prep (FMP) market data

Financial Modeling Prep MCP Server

MCP server for Financial Modeling Prep (FMP) market data, built with the modern MCP SDK tool/resource/prompt model.

Overview

aigroup-fmp-mcp provides a structured MCP interface over the Financial Modeling Prep API for:

  • real-time quotes and symbol lookup
  • company profiles and financial statements
  • analyst estimates and ratings
  • technical indicators and historical charts
  • earnings / economic calendar workflows
  • reusable MCP resources and prompts for analysis tasks

Highlights

  • 25 MCP tools covering market data, financials, analyst workflows, technical indicators, and calendar data
  • Resources support for direct URI-based access patterns
  • Prompt templates for stock analysis, portfolio review, and earnings preview
  • Dual transport support for stdio and HTTP usage
  • Zod validation for safer input handling
  • Built on MCP SDK 1.27.1 with modern McpServer APIs

Quick Start

Requirements

  • Node.js >= 18
  • npm
  • A valid FMP API key

Run with local source

git clone https://github.com/jackdark425/aigroup-fmp-mcp.git
cd aigroup-fmp-mcp
npm install
npm run build
export FMP_API_KEY="your-api-key"
npm start

HTTP mode

export FMP_API_KEY="your-api-key"
npm run start:http

By default, the HTTP server exposes:

  • POST /mcp — MCP endpoint
  • GET /health — health check
  • GET / — server info

Configuration

Set your API key before starting the server:

export FMP_API_KEY="your-api-key"

Get your key from Financial Modeling Prep.

MCP Client Configuration

Claude Desktop / compatible MCP clients

{
  "mcpServers": {
    "fmp": {
      "command": "node",
      "args": ["/path/to/aigroup-fmp-mcp/build/index.js"],
      "env": {
        "FMP_API_KEY": "your-api-key"
      }
    }
  }
}

Tools

Market Data

  • get_quote
  • search_symbol
  • get_market_gainers
  • get_market_losers
  • get_most_active
  • get_sector_performance
  • get_sp500_constituents

Financial Statements

  • get_company_profile
  • get_income_statement
  • get_balance_sheet
  • get_cash_flow
  • get_stock_news
  • get_key_metrics
  • get_financial_ratios

Analyst Data

  • get_analyst_estimates
  • get_price_target
  • get_analyst_ratings
  • get_insider_trading
  • get_institutional_holders

Technical Indicators

  • get_technical_indicator_rsi
  • get_technical_indicator_sma
  • get_technical_indicator_ema
  • get_historical_chart

Calendar Data

  • get_earnings_calendar
  • get_economic_calendar
  • get_economic_indicator

Resources

  • fmp://company/{symbol}/profile
  • fmp://company/{symbol}/quote
  • fmp://company/{symbol}/financials/{statement}/{period}
  • fmp://market/overview
  • fmp://market/sectors/{date}

Prompts

  • stock_analysis
  • portfolio_evaluation
  • earnings_preview

Project Structure

aigroup-fmp-mcp/
├── src/
│   ├── index.ts
│   ├── server.ts
│   ├── tools/
│   ├── resources/
│   ├── prompts/
│   ├── types/
│   └── utils/
├── package.json
├── tsconfig.json
└── README.md

Development

npm install
npm run build
npm run dev

API Reference

All tools map to FMP endpoints. See the official docs:

Acknowledgments

Reference Project

Thanks to houtini-ai for the prior open-source work that helped inform this implementation.

License & Usage

This project is released under the MIT License.

You may use, copy, modify, merge, publish, distribute, sublicense, and sell copies of this software, including in commercial contexts, provided that the original copyright notice and license text are retained.

Please note:

  • the software is provided "AS IS", without warranty of any kind
  • you must preserve the relevant copyright and permission notice in copies or substantial portions of the software
  • use of the FMP API remains subject to Financial Modeling Prep's own terms of service, quotas, billing rules, and data usage restrictions

See the full text in LICENSE.

Support

Tools (7)

get_quoteRetrieves real-time stock quotes for a given symbol.
search_symbolSearches for stock symbols based on a query.
get_company_profileFetches the company profile including sector, industry, and description.
get_income_statementRetrieves the income statement for a specific company.
get_analyst_estimatesGets analyst estimates for a specific stock.
get_technical_indicator_rsiCalculates the Relative Strength Index for a symbol.
get_earnings_calendarRetrieves the upcoming earnings calendar.

Environment Variables

FMP_API_KEYrequiredAPI key obtained from Financial Modeling Prep

Configuration

claude_desktop_config.json
{"mcpServers": {"fmp": {"command": "node", "args": ["/path/to/aigroup-fmp-mcp/build/index.js"], "env": {"FMP_API_KEY": "your-api-key"}}}}

Try it

Analyze the current financial health of Apple (AAPL) using its latest income statement and key metrics.
What are the current analyst ratings and price targets for NVIDIA?
Find the top market gainers for today and provide a brief summary of their sector performance.
Calculate the RSI for Tesla (TSLA) to determine if it is currently overbought or oversold.
List the upcoming earnings releases for the next week.

Frequently Asked Questions

What are the key features of Financial Modeling Prep?

Access to real-time stock quotes and market data. Comprehensive financial statement retrieval (Income, Balance Sheet, Cash Flow). Analyst data including ratings, price targets, and estimates. Technical analysis tools including RSI, SMA, and EMA indicators. Calendar integration for earnings and economic events.

What can I use Financial Modeling Prep for?

Automated stock research and fundamental analysis for investors. Tracking market performance and sector trends in real-time. Preparing for earnings season by monitoring upcoming reports. Integrating technical indicators into automated trading research workflows.

How do I install Financial Modeling Prep?

Install Financial Modeling Prep by running: git clone https://github.com/jackdark425/aigroup-fmp-mcp.git && cd aigroup-fmp-mcp && npm install && npm run build

What MCP clients work with Financial Modeling Prep?

Financial Modeling Prep works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Financial Modeling Prep docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare