aigroup-finnhub-mcp
v1.2.1
Published
Node.js MCP server for Finnhub financial data API
Maintainers
Readme
aigroup-finnhub-mcp
Node.js implementation of the MCP (Model Context Protocol) server for Finnhub financial data API.
Quick Start with npx
npx aigroup-finnhub-mcpOr with environment variables:
FINNHUB_API_KEY=your_api_key npx aigroup-finnhub-mcpFeatures
- 15 MCP Tools: Complete set of financial data tools
- TypeScript: Full type safety with Zod validation
- Rate Limiting: Built-in token bucket rate limiter
- Retry Logic: Exponential backoff with jitter
- Error Handling: Comprehensive error types and handling
Available Tools
| Tool | Operations | Description |
|------|-----------|-------------|
| finnhub_stock_market_data | 7 | Quotes, candles, profiles, financials |
| finnhub_technical_analysis | 4 | 50+ indicators, patterns, signals |
| finnhub_news_sentiment | 4 | News, sentiment analysis |
| finnhub_stock_fundamentals | 5 | Financial metrics, dividends, splits |
| finnhub_crypto_data | 4 | Crypto exchanges, symbols, prices |
Installation
npm installConfiguration
- Copy
.env.exampleto.env:
cp .env.example .env- Edit
.envand add your Finnhub API key:
FINNHUB_API_KEY=your_api_key_hereGet your API key at Finnhub Dashboard.
Usage
Development
npm run devBuild
npm run buildStart
npm startMCP Configuration (npx)
Add to your Claude Desktop config (%APPDATA%\\Claude\\claude_desktop_config.json on Windows or ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"aigroup-finnhub": {
"command": "npx",
"args": ["-y", "aigroup-finnhub-mcp"],
"env": {
"FINNHUB_API_KEY": "d6j77dpr01ql467igom0d6j77dpr01ql467igomg"
}
}
}
}Or using local path:
{
"mcpServers": {
"aigroup-finnhub": {
"command": "node",
"args": ["D:/mcp-finnhub-main/mcp-finnhub-node/dist/index.js"],
"env": {
"FINNHUB_API_KEY": "d6j77dpr01ql467igom0d6j77dpr01ql467igomg"
}
}
}
}API Reference
finnhub_stock_market_data
Operations:
get_quote- Real-time stock quoteget_candles- Historical OHLCV dataget_company_profile- Company informationsymbol_lookup- Search symbolsget_basic_financials- Financial metricsget_financials_as_reported- SEC financial statementsget_earnings_surprises- Earnings surprises
finnhub_technical_analysis
Operations:
get_indicator- Technical indicators (RSI, MACD, etc.)get_aggregate_signals- Buy/sell/neutral signalsget_pattern_recognition- Chart patternsget_support_resistance- S/R levels
finnhub_news_sentiment
Operations:
get_company_news- Company news articlesget_market_news- General market newsget_news_sentiment- News sentiment scoresget_insider_sentiment- Insider trading sentiment
Development
# Type check
npm run typecheck
# Lint
npm run lint
# Test
npm run testLicense
MIT
