This MCP server provides access to financial data from Financial Datasets, enabling AI assistants to retrieve stock market information including financial statements, stock prices, and market news through the Model Context Protocol interface.
The Financial Datasets MCP server offers several tools for accessing financial data:
Clone the repository:
git clone https://github.com/financial-datasets/mcp-server
cd mcp-server
Install uv if you don't have it already:
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows
curl -LsSf https://astral.sh/uv/install.ps1 | powershell
Set up the environment and install dependencies:
# Create and activate virtual environment
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install dependencies
uv add "mcp[cli]" httpx # On Windows: uv add mcp[cli] httpx
Configure your API key:
# Create .env file from example
cp .env.example .env
Then edit the .env
file to include your API key:
FINANCIAL_DATASETS_API_KEY=your-financial-datasets-api-key
Run the server:
uv run server.py
Create or edit the Claude Desktop configuration file:
# macOS
mkdir -p ~/Library/Application\ Support/Claude/
nano ~/Library/Application\ Support/Claude/claude_desktop_config.json
Add the following configuration to the file:
{
"mcpServers": {
"financial-datasets": {
"command": "/path/to/uv",
"args": [
"--directory",
"/absolute/path/to/financial-datasets-mcp",
"run",
"server.py"
]
}
}
}
Be sure to replace:
/path/to/uv
with the actual path to uv (find with which uv
)/absolute/path/to/financial-datasets-mcp
with the absolute path to the cloned repositoryRestart Claude Desktop
Once connected, you'll see the financial tools available in Claude Desktop's tools menu (hammer icon). Here are some example queries you can try:
The MCP server will fetch the requested financial data and provide it to Claude for analysis and presentation.
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.