
与 Finnhub API 接口的 MCP 服务器.
概览
与 Finnhub API 接口的 MCP 服务器. - 列出Finnhub市场新闻终端的最新市场新闻 - 从引号端点获取特定股票的市场数据 - 从基本财务终点获取特定库存的基本财务 - 获取建议 趋势 - 从建议趋势终点获取特定存量的建议趋势 1. 运行 uv 同步以安装依赖。 在这里安装uv 遵循指令。 然后做源.venv/bin/激活. 2. 以Finnhub API 密钥证书设置.env文件. 3. 运行 fastmcp 安装服务器.py来安装服务器.
概述(AI 翻译)
与 Finnhub API 接口的 MCP 服务器.
QQ 工具
-
[[T0]
-
列出Finnhub市场新闻终端的最新市场新闻
-
[[T1]
-
从引号端点获取特定股票的市场数据
-
get_basic_financials -
从基本财务终点获取特定库存的基本财务
-
get_recommendation_trends -
从建议趋势终点点获取特定库存的建议趋势
□ 配置
-
运行
uv sync以安装依赖。 安装uv在此遵循指令 。 然后做[(T6)]。 -
以 Finnhub API 密钥证书设置 [[T7] 文件。
-
运行
fastmcp install server.py以安装服务器. -
打开位于:
- 在macOS上:
~/Library/Application Support/Claude/claude_desktop_config.json - 在视窗上:
%APPDATA%/Claude/claude_desktop_config.json
-
定位
uv的命令项,取而代之的是可执行文件的绝对路径。 这保证了在启动服务器时使用正确版本的uv. -
重新启动 Claude 桌面应用更改。
□ 发展
运行 fastmcp dev server.py 启动 MCP 服务器 .
本页由 AI 翻译,技术细节请以原文为准。
README
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 syncto install the dependencies. To installuvfollow the instructions here. Then dosource .venv/bin/activate. -
Setup the
.envfile with the Finnhub API Key credentials.
FINNUB_API_KEY=
-
Run
fastmcp install server.pyto 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
uvand replace it with the absolute path to theuvexecutable. This ensures that the correct version ofuvis 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 does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →