A Model Context Protocol (MCP) server that exposes FinBrain datasets to AI clients (Claude Desktop, VS Code MCP extensions, etc.) via simple tools. Backed by the official finbrain-python SDK. - Package name: finbrain-mcp - CLI entrypoint: finbrain-mcp - Documentation: finbrain.tech/integrations/mcp Access FinBrain's machine learning price forecasts with daily (10-day) and monthly (12-month) horizo
Add this skill
npx mdskills install ahmetsbilgin/finbrain-mcpWell-documented MCP server providing comprehensive financial data tools with clear setup instructions
Requires Python 3.10+
A Model Context Protocol (MCP) server that exposes FinBrain datasets to AI clients (Claude Desktop, VS Code MCP extensions, etc.) via simple tools.
Backed by the official finbrain-python SDK.
Package name: finbrain-mcp
CLI entrypoint: finbrain-mcp
Documentation: finbrain.tech/integrations/mcp
Access FinBrain's machine learning price forecasts with daily (10-day) and monthly (12-month) horizons. Includes mean predictions with 95% confidence intervals.
Track aggregated sentiment scores derived from financial news coverage. Monitor how market sentiment shifts over time for any ticker.
⚡️ Local MCP server (no proxying) using your own FinBrain API key
🧰 Tools (JSON by default, CSV optional) with paging
health
available_markets, available_tickers
predictions_by_market, predictions_by_ticker
news_sentiment_by_ticker
app_ratings_by_ticker
analyst_ratings_by_ticker
house_trades_by_ticker, senate_trades_by_ticker
insider_transactions_by_ticker
linkedin_metrics_by_ticker
options_put_call
🧹 Consistent, model-friendly shapes (we normalize raw API responses)
🔑 Multiple ways to provide your API key: env var, file
# macOS / Linux / Windows
pip install --upgrade finbrain-mcp
# from repo root
python -m venv .venv
source .venv/bin/activate # Windows: .\.venv\Scripts\activate
pip install -e ".[dev]"
Keep pip (prod) and your venv (dev) separate to avoid path mix-ups.
# Build the image
docker build -t finbrain-mcp:latest .
# Run with your API key
docker run --rm -e FINBRAIN_API_KEY="YOUR_KEY" finbrain-mcp:latest
See DOCKER.md for detailed Docker usage instructions.
Put the key directly in the MCP server entry your client uses (Claude Desktop or a VS Code MCP extension). This guarantees the launched server sees it, even if system env vars aren’t picked up.
{
"mcpServers": {
"finbrain": {
"command": "finbrain-mcp",
"env": { "FINBRAIN_API_KEY": "YOUR_KEY" }
}
}
}
This works too, but note you must restart the client after setting it so the new value is inherited.
# macOS/Linux
export FINBRAIN_API_KEY="YOUR_KEY"
# Windows (PowerShell, current session)
$env:FINBRAIN_API_KEY="YOUR_KEY"
# Windows (persistent for new processes)
setx FINBRAIN_API_KEY "YOUR_KEY"
# then fully quit and reopen your MCP client (e.g., Claude Desktop)
Tip: If the env var route doesn’t seem to work (common on Windows if the client was already running), use the config JSON
envmethod above—it’s more deterministic.
Note: You typically don’t need to run the server manually—your MCP client (Claude/VS Code) starts it automatically. Use the commands below only for manual checks or debugging.
If installed (pip):
finbrain-mcp
From a dev venv:
python -m finbrain_mcp.server
Quick health check without an MCP client:
python - **No manual start needed:** Claude Desktop and VS Code will **launch the MCP server for you** based on your config. You only need to run `finbrain-mcp` yourself for quick sanity checks or debugging.
### Claude Desktop
Edit your config:
- Windows: `%APPDATA%\Claude\claude_desktop_config.json`
- macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
- Linux: `~/.config/Claude/claude_desktop_config.json`
**Pip install (published package):**
```json
{
"mcpServers": {
"finbrain": {
"command": "finbrain-mcp",
"env": { "FINBRAIN_API_KEY": "YOUR_KEY" }
}
}
}
macOS tip (full path):
If "command": "finbrain-mcp" doesn’t work, find the absolute path and use that instead.
which finbrain-mcp # macOS/Linux
# (Windows: where finbrain-mcp)
Claude config with full path (macOS example):
{
"mcpServers": {
"finbrain": {
"command": "/full/path/to/finbrain-mcp",
"env": { "FINBRAIN_API_KEY": "YOUR_KEY" }
}
}
}
Dev venv (run the module explicitly):
{
"mcpServers": {
"finbrain-dev": {
"command": "C:\\Users\\you\\path\\to\\repo\\.venv\\Scripts\\python.exe",
"args": ["-m", "finbrain_mcp.server"],
"env": { "FINBRAIN_API_KEY": "YOUR_KEY" }
}
}
}
Docker:
{
"mcpServers": {
"finbrain": {
"command": "docker",
"args": ["run", "-i", "--rm", "finbrain-mcp:latest"],
"env": { "FINBRAIN_API_KEY": "YOUR_KEY" }
}
}
}
After editing, quit & reopen Claude.
Open the Command Palette → “MCP: Open User Configuration”.
This opens your mcp.json (user profile).
Add the server under the servers key:
{
"servers": {
"finbrain": {
"command": "finbrain-mcp",
"env": { "FINBRAIN_API_KEY": "YOUR_KEY" }
}
}
}
In Copilot Chat, enable Agent Mode to use MCP tools.
You don’t need to know tool names—just ask in plain English. Examples:
Predictions
News sentiment
App ratings
Analyst ratings
Congressional trades
Insider transactions
LinkedIn metrics
Options (put/call)
Availability
Notes
- Date format:
YYYY-MM-DD.- Time-series endpoints return the most recent N points by default—say “limit 200” to get more.
- Predictions horizon: daily (10-day) or monthly (12-month).
- Say “as CSV” to receive CSV instead of JSON.
# setup
python -m venv .venv
source .venv/bin/activate # Windows: .\.venv\Scripts\activate
pip install -e ".[dev]" # run tests pytest -q
finbrain-mcp
├─ README.md
├─ pyproject.toml
├─ LICENSE
├─ .github/
├─ examples/
├─ src/
│ └─ finbrain_mcp/
│ ├─ __init__.py
│ ├─ server.py # MCP server entrypoint
│ ├─ registry.py # FastMCP instance
│ ├─ client_adapter.py # wraps finbrain-python; calls normalizers
│ ├─ auth.py # resolves API key (env var)
│ ├─ settings.py # tweakable defaults (e.g., series limits)
│ ├─ utils.py # helpers (latest_slice, CSV, DF->records)
│ ├─ normalizers/ # endpoint-specific shapers
│ └─ tools/ # MCP tool functions (registered & testable)
└─ tests/ # pytest suite with a fake SDK
ENOENT (can’t start server)
Wrong path in client config. Use the venv’s exact path:
…\.venv\Scripts\python.exe + ["-m","finbrain_mcp.server"], or
…\.venv\Scripts\finbrain-mcp.exe
FinBrain API key not configured
Put FINBRAIN_API_KEY in the client’s env block or
setx FINBRAIN_API_KEY "YOUR_KEY" and fully restart the client.
Mixing dev & prod installs
Keep pip (prod) and venv (dev) separate.
In configs, point to one or the other—not both.
MIT (see LICENSE).
Built on Model Context Protocol and FastMCP.
Uses the official finbrain-python SDK.
© 2026 FinBrain Technologies — Built with ❤️ for the quant community.
Install via CLI
npx mdskills install ahmetsbilgin/finbrain-mcpFinBrain MCP <!-- omit in toc --> is a free, open-source AI agent skill. A Model Context Protocol (MCP) server that exposes FinBrain datasets to AI clients (Claude Desktop, VS Code MCP extensions, etc.) via simple tools. Backed by the official finbrain-python SDK. - Package name: finbrain-mcp - CLI entrypoint: finbrain-mcp - Documentation: finbrain.tech/integrations/mcp Access FinBrain's machine learning price forecasts with daily (10-day) and monthly (12-month) horizo
Install FinBrain MCP <!-- omit in toc --> with a single command:
npx mdskills install ahmetsbilgin/finbrain-mcpThis downloads the skill files into your project and your AI agent picks them up automatically.
FinBrain MCP <!-- omit in toc --> works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Gemini Cli, Amp, Roo Code, Goose. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.