统计API服务器

一个用于提供统计数据的API服务器,支持本地测试和Windows环境设置。

  • by HuiDiHu
  • Python
  • 本地部署
  • 3 星标
  • 更新于
在 GitHub 查看 HuiDiHu/statsWR_mcp_server

使用说明

statsWR mcp server

StatsWR API: https://github.com/HuiDiHu/statsWR

Windows Setup: (additional steps on https://modelcontextprotocol.io/quickstart/server#windows)

  1. uv venv
  2. source .venv/Scripts/activate
  3. make setup
  4. update claude_desktop_config.json:
{
  "mcpServers": {
    "statsWR": {
      "command": "/Path/to/uv",
      "args": [
        "--directory",
        "/Path/to/Project/Root/Directory",
        "run",
        "mcp_src/statsWR_mcp_server.py"
      ]
    }
  }
}
  1. create and setup .env file in the project's root directory
STATSWR_API_BASE_URL = <STATSWR OFFICIAL API BASE URL>/api/v1
DEFAULT_TIMEOUT = 60
PORT = 18517
...

Local Testing:

  1. restart cluade desktop
  2. enable statsWR MCP server in the model setting
  3. interact with the model and verify MCP server is being used