Stock MCP Server logo

Stock MCP Server

by YongYangLi

A MCP server for real-time stock quotes, using Model Context Protocol (MCP). It provides a tool to get real-time stock quotes.

View on GitHub

Last updated: N/A

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