Used for loading API keys and configuration from environment variables for secure access to the Finnhub API.
Supports configuration file locations specific to macOS, allowing proper setup of the MCP server on Apple's operating system.
Finnhub MCP Server
An MCP server to interface with Finnhub API.
Tools
list_news
- List latest market news from Finnhub market news endpoint
get_market_data
- Get market data for a particular stock from quote endpoint
get_basic_financials
- Get basic financials for a particular stock from basic financials endpoint
get_recommendation_trends
- Get recommendation trends for a particular stock from recommendation trend endpoint
Configuration
- Run
uv sync
to install the dependencies. To installuv
follow the instructions here. Then dosource .venv/bin/activate
. - Setup the
.env
file with the Finnhub API Key credentials.
- Run
fastmcp install server.py
to install the server. - Open the configuration file located at:
- On macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- On Windows:
%APPDATA%/Claude/claude_desktop_config.json
- On macOS:
- Locate the command entry for
uv
and replace it with the absolute path to theuv
executable. This ensures that the correct version ofuv
is used when starting the server. - Restart Claude Desktop to apply the changes.
Development
Run fastmcp dev server.py
to start the MCP server. MCP inspector is helpful for investigating and debugging locally.
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
This server provides an interface with the Finnhub API, enabling users to obtain the latest market news, stock market data, basic financials, and recommendation trends for specific stocks.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityProvides real-time and historical cryptocurrency market data through integration with major exchanges. This server enables LLMs like Claude to fetch current prices, analyze market trends, and access detailed trading information.Last updated -752PythonMIT License
- -securityFlicense-qualityThis server provides a robust interface for Binance spot trading operations, including secure management of API credentials, execution and management of spot orders, and monitoring of account balances and open orders.Last updated -314TypeScript
- AsecurityAlicenseAqualityThis server provides tools for AI assistants to interact with the Eventbrite API, allowing users to search for events, get event details, retrieve venue information, and list event categories.Last updated -45552JavaScriptMIT License
- -securityFlicense-qualityA FastMCP-based service that provides stock data including historical prices, fundamental information, and financial news.Last updated -6Python