Finnhub MCP 服务器
与 Finnhub API 接口的 MCP 服务器。
工具
list_news
列出来自 Finnhub市场新闻端点的最新市场新闻
get_market_data
从报价端点获取特定股票的市场数据
get_basic_financials
从基本财务端点获取特定股票的基本财务信息
get_recommendation_trends
从推荐趋势端点获取特定股票的推荐趋势
配置
运行
uv sync
来安装依赖项。要安装uv
,请按照此处的说明操作。然后执行source .venv/bin/activate
。使用 Finnhub API 密钥凭证设置
.env
文件。
运行
fastmcp install server.py
来安装服务器。打开位于以下位置的配置文件:
在 macOS 上:
~/Library/Application Support/Claude/claude_desktop_config.json
在 Windows 上:
%APPDATA%/Claude/claude_desktop_config.json
找到
uv
的命令条目,并将其替换为uv
可执行文件的绝对路径。这可确保启动服务器时使用正确版本的uv
。重新启动 Claude Desktop 以应用更改。
发展
运行fastmcp dev server.py
启动 MCP 服务器。MCP 检查器有助于本地调查和调试。
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.
该服务器提供与Finnhub API的接口,使用户能够获取最新的市场新闻、股市数据、基本财务状况以及特定股票的推荐趋势。
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 -754MIT 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 -713
- 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.
- AsecurityAlicenseAqualityA server that provides tools for retrieving real-time price information for various assets including precious metals and cryptocurrencies, allowing language models to access and display current asset price data.Last updated -1252MIT License