This MCP server provides a standardized interface to access Financial Modeling Prep (FMP) API data, allowing AI assistants like Claude to programmatically retrieve financial information, including company profiles, financial statements, metrics, analyst data, SEC filings, and market data.
Clone the 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
# 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
"fmp_mcp_server": {
"command": "uv",
"args": [
"--directory",
"REPLACE ME WITH ABSOLUTE DIRECTORY TO REPO",
"run",
"fmp_mcp_server.py"
]
}
Once connected, you can ask Claude financial questions that utilize the FMP data. Here are some example queries:
The server provides access to:
The server supports these 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 includes a caching system to improve performance:
Cache files are stored in the DataCache
directory.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.