Financial Modeling Prep MCP Server

Financial Modeling Prep MCP Server

A Model Context Protocol server that enables AI assistants like Claude to programmatically access financial data from Financial Modeling Prep API, including company profiles, financial statements, metrics, SEC filings, and market data.

Category
Visit Server

README

Financial Modeling Prep (FMP) MCP Server

A Model Context Protocol (MCP) server that provides access to Financial Modeling Prep (FMP) API data through a standardized interface. This server allows AI assistants like Claude to access financial data programmatically.

Features

  • Company Profiles: Access company information, descriptions, market caps, employee counts, and industry data
  • Financial Statements: Retrieve income statements, balance sheets, and cash flow statements
  • Financial Metrics: Get key metrics, ratios, and growth data
  • Analyst Data: Access analyst estimates and recommendations
  • SEC Filings: Find and retrieve SEC filing content
  • Earnings Transcripts: Get earnings call transcripts
  • Market Data: Access current stock prices and treasury yields
  • Competitor Analysis: Find competitor companies

Installation

Prerequisites

  • Python 3.8 or higher
  • UV package manager (recommended) or pip
  • Financial Modeling Prep API key

Setup

  1. Clone this repository

  2. Create a .env file in the project root with your API key:

    # Financial Modeling Prep API Configuration
    FMP_KEY=your_api_key_here
    
    # Optional: SEC API Configuration
    SEC_ACCESS=YourCompanyName YourEmail@example.com
    
  3. Install dependencies using UV (recommended):

    uv venv
    uv pip install -r requirements.txt
    

    Or using pip:

    pip install -r requirements.txt
    

Running the Server

Using UV (Recommended)

UV provides faster dependency resolution and installation. To run the server with UV:

# Activate the virtual environment
uv venv activate

# Run the server
python fmp_mcp_server.py

The server will start and listen for connections on the default MCP port.

Using pip

# Create and activate a virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Run the server
python fmp_mcp_server.py

Connecting with Claude Desktop

Claude Desktop can connect to MCP servers to access financial data. Here's how to set it up:

  1. Download Claude Desktop
  2. Edit claude_desktop_config.json: "fmp_mcp_server": { "command": "uv", "args": [ "--directory", "REPLACE ME WITH ABSOLUTE DIRECTORY TO REPO", "run", "fmp_mcp_server.py" ]

Now Claude can use the FMP data through the MCP interface. You can ask Claude to:

  • Get company profiles
  • Retrieve financial statements
  • Find SEC filings
  • Access market data
  • And more!

Example Queries for Claude

Once connected, you can ask Claude questions like:

  • "I am considering a 3 year horizon investment, is Apple a good investment?"
  • "Show me Tesla's latest quarterly income statement"
  • "Find the latest 10-K filing for Microsoft"
  • "What are Amazon's main competitors?"
  • "Get the latest earnings transcript for Meta"

Configuration Options

The server supports the following environment variables:

  • FMP_KEY: Your Financial Modeling Prep API key (required)
  • SEC_ACCESS: Your company name and email for SEC API access (optional)

Caching

The server implements a caching system to reduce API calls and improve performance:

  • Financial data is cached by quarter/year
  • Profile data is cached monthly
  • Daily price data is cached for the current day

Cache files are stored in the DataCache directory.

Logging

Logs are written to the logs directory with rotation enabled:

  • Maximum log file size: 10MB
  • Number of backup files: 5

License

MIT License

Acknowledgements

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
E2B

E2B

Using MCP to run code via e2b.

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
Qdrant Server

Qdrant Server

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

Official
Featured