
Financial Modeling Prep
STDIOMCP server providing Financial Modeling Prep API access for comprehensive financial data
MCP server providing Financial Modeling Prep API access for comprehensive financial data
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.
Clone this repository
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 [email protected]
Install dependencies using UV (recommended):
uv venv uv pip install -r requirements.txt
Or using pip:
pip install -r requirements.txt
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.
# 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
Claude Desktop can connect to MCP servers to access financial data. Here's how to set it up:
Now Claude can use the FMP data through the MCP interface. You can ask Claude to:
Once connected, you can ask Claude questions like:
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)The server implements a caching system to reduce API calls and improve performance:
Cache files are stored in the DataCache
directory.
Logs are written to the logs
directory with rotation enabled: