stock-stock-mcp-server

内容来源:README.md(说明文档) · 原始地址 · 查看安装指南

原始内容

Stock MCP Server

A MCP server for real-time stock quotes, using Model Context Protocol (MCP).

Tools

get-quote

  • Get real-time stock quotes
  • Input:
    • symbol (string): Stock symbol (e.g.: sh600000, sz000001)

Configuration

Using with Claude Desktop 、 Cline

Add the following configuration:

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

Alternatively, you can use the node command directly if you have the package installed:

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

Development

Build from source

  1. Clone the repository
  2. Install dependencies:
    npm install
    
  3. Build the project:
    npm run build