Back to MCP directory
publicPublicdnsLocal runtime

stock-mcp-server-34b

一个基于MCP协议的实时股票行情查询服务器

article

README

🚀 股票 MCP 服务器

本服务器利用模型上下文协议(MCP),实现了实时股票行情的获取,为用户提供及时、准确的股票信息。

🚀 快速开始

本服务器可用于实时获取股票行情,只需输入股票代码即可。

✨ 主要特性

🔍 获取报价

  • 能够实时获取股票行情。
  • 输入要求:
    • symbol(字符串):股票代码(例如:sh600000, sz000001)

📦 安装指南

🔧 与 Claude Desktop、Cline 配合使用

添加以下配置:

{
  "stock": {
    "command": "npx",
    "args": [
      "-y",
      "stock-mcp-server"
    ]
  }
}

或者,若你已安装该包,可直接使用 node 命令:

{
  "json": {
    "command": "node",
    "args": [
      "path/to/build/index.js"
    ]
  }
}

💻 从源代码构建

  1. 克隆仓库。
  2. 安装依赖:
npm install
  1. 构建项目:
npm run build
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client