FMP MCP Server

FMP MCP Server

An MCP server that provides tools for financial analysis using the Financial Modelling Prep API. It enables users to retrieve real-time stock quotes, financial statements, valuation metrics, and sector performance data for investment research.

Category
Visit Server

README

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

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

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured