stock-mcp-server

stock-mcp-server

3

Stock MCP Server provides real-time stock quotes using the Model Context Protocol. It supports obtaining stock data through specific tools such as get-quote, allowing users to input stock symbols to retrieve up-to-date information.

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