Skip to main content
Glama
ccdatatraits

FMP MCP Server

by ccdatatraits

FMP MCP Server

A Model Context Protocol (MCP) server that provides tools, resources, and prompts for financial analysis using the Financial Modelling Prep API.

Features

Tools

  • get_company_profile: Get comprehensive company information

  • get_stock_quote: Real-time stock quotes and market data

  • get_financial_statements: Income statement, balance sheet, and cash flow data

  • get_key_metrics: Key financial metrics and KPIs

  • get_financial_ratios: Comprehensive financial ratios for analysis

  • get_dcf_valuation: Discounted cash flow valuation

  • search_companies: Search for companies by name or symbol

  • get_sector_performance: Market sector performance overview

Resources

  • Market Sectors: Real-time sector performance data

  • Company Profiles: Detailed company information

  • Financial Statements: Complete financial statement data

Prompts

  • financial_analysis: Comprehensive financial analysis workflow

  • investment_research: Detailed investment research report

  • sector_analysis: Sector performance and comparison analysis

Related MCP server: FMP MCP Server

Setup

  1. Install dependencies:

    uv sync
  2. Configure API access:

    cp .env.example .env
    # Edit .env and add your Financial Modelling Prep API key
  3. Get API Key:

Usage

With Claude Code

Add to your Claude Code MCP configuration:

{
  "mcpServers": {
    "fmp": {
      "command": "uv",
      "args": ["run", "python", "-m", "fmp_mcp_server.server"],
      "env": {
        "FMP_API_KEY": "your_api_key_here"
      }
    }
  }
}

Direct Usage

# Run the server
uv run python -m fmp_mcp_server.server

# Or use the installed script
uv run fmp-mcp-server

Docker Usage

Build and run with Docker

# Build the image
docker build -t fmp-mcp-server .

# Run with environment file
docker run --env-file .env fmp-mcp-server

Using Docker Compose

# Start the service
docker-compose up -d

# View logs
docker-compose logs -f

# Stop the service
docker-compose down

Using pre-built image from GitHub Container Registry

docker run --env-file .env ghcr.io/ccdatatraits/fmp-mcp-server:latest

Development

  1. Install with development dependencies:

    uv sync --dev
  2. Run tests:

    uv run pytest
  3. Format code:

    uv run black src/
    uv run ruff check src/
  4. Type checking:

    uv run mypy src/

API Rate Limits

The Financial Modelling Prep API has rate limits depending on your subscription:

  • Free: 250 requests/day

  • Starter: 300 requests/minute

  • Professional: 2000 requests/minute

Configure rate limiting in your .env file if needed.

License

MIT License

Related MCP Connectors

  • The Octagon MCP server provides specialized AI-powered financial research and analysis by integrating with the Octagon Market Intelligence API. It enables users to analyze public market data (SEC filings, earnings transcripts, financial metrics, and stock data for 8000+ companies), private market data (3M+ companies, 500k+ funding rounds, 2M+ M&A/IPO transactions), and conduct deep research including web scraping capabilities. The server also features autonomous research agents that search hundreds of sources and return fully cited reports in approximately one minute.

  • Unlock the power of real-time financial data with our Finance MCP. Easily retrieve the latest

  • Financial data MCP server for Claude, ChatGPT, Cursor and Codex. Real-time stock quotes, financial statements, options flow, SEC filings, insider trades, 13F holdings, macro data and market news from gloom.sh, the open-source Bloomberg Terminal alternative.

  • Production MCP server for US equity and options intelligence: real-time IV radar, Monte Carlo simulation, options pressure, strategy backtesting, AI prediction, pre-trade risk analysis, and automated stock research reports.

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    An MCP server that provides real-time financial data integration with Alpha Vantage's API, enabling access to stock market data, cryptocurrency prices, forex rates, and technical indicators.
    7
    15 npm
    4
    MIT
  • A
    license
    Not graded
    quality
    Not graded
    maintenance
    An MCP server that provides tools for financial analysis and investment research using the Financial Modelling Prep API. It enables users to access real-time stock quotes, financial statements, key metrics, and market sector performance data.
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    A specialized MCP server that provides institutional-grade financial data and market research via the Finnhub API. It enables AI agents to function as equity researchers, generating professional market reports and high-fidelity analysis for stock tickers.
    -
  • A
    license
    B
    quality
    C
    maintenance
    An MCP server that provides comprehensive access to real-time stock quotes, financial statements, analyst estimates, and technical indicators via the Financial Modeling Prep API. It enables users to conduct in-depth financial analysis and track market performance through specialized tools, resources, and prompt templates.
    26
    62 npm
    1
    MIT