CM

catherinedparnell/mcp-finnhub

API 开发

本页由 AI 翻译,技术细节请以原文为准。 查看原文

9 stars 10 forks 质量 29 趋势 7

与 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

  • 从建议趋势终点点获取特定库存的建议趋势

□ 配置

  1. 运行uv sync以安装依赖。 安装 uv 在此遵循指令 。 然后做[(T6)]。

  2. 以 Finnhub API 密钥证书设置 [[T7] 文件。

  3. 运行 fastmcp install server.py以安装服务器.

  4. 打开位于:

  • 在macOS上:~/Library/Application Support/Claude/claude_desktop_config.json
  • 在视窗上:%APPDATA%/Claude/claude_desktop_config.json
  1. 定位uv的命令项,取而代之的是可执行文件的绝对路径。 这保证了在启动服务器时使用正确版本的uv.

  2. 重新启动 Claude 桌面应用更改。

□ 发展

运行 fastmcp dev server.py 启动 MCP 服务器 .

本页由 AI 翻译,技术细节请以原文为准。

README

Finnhub MCP Server

An MCP server to interface with Finnhub API.

Tools

Configuration

  1. Run uv sync to install the dependencies. To install uv follow the instructions here. Then do source .venv/bin/activate.

  2. Setup the .env file with the Finnhub API Key credentials.

FINNUB_API_KEY=
  1. Run fastmcp install server.py to install the server.

  2. Open the configuration file located at:

    • On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • On Windows: %APPDATA%/Claude/claude_desktop_config.json
  3. Locate the command entry for uv and replace it with the absolute path to the uv executable. This ensures that the correct version of uv is used when starting the server.

  4. 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.

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →