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.
Integrations
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 服务器
与 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
文件。
Copy
- 运行
fastmcp install server.py
来安装服务器。 - 打开位于以下位置的配置文件:
- 在 macOS 上:
~/Library/Application Support/Claude/claude_desktop_config.json
- 在 Windows 上:
%APPDATA%/Claude/claude_desktop_config.json
- 在 macOS 上:
- 找到
uv
的命令条目,并将其替换为uv
可执行文件的绝对路径。这可确保启动服务器时使用正确版本的uv
。 - 重新启动 Claude Desktop 以应用更改。
发展
运行fastmcp dev server.py
启动 MCP 服务器。MCP 检查器有助于本地调查和调试。
This server cannot be installed
该服务器提供与Finnhub API的接口,使用户能够获取最新的市场新闻、股市数据、基本财务状况以及特定股票的推荐趋势。