Skip to main content
Glama
divination-chart-mcp

divination-chart-mcp

by wangsquirrel

占卜排盘 MCP

这是一个用于生成占卜排盘(当前主要实现:六爻(Six-line)和八字(Bazi))的 MCP Server。

使用

依赖

  • Python 3.12+

  • uv

本地运行

1. Clone the repository

git clone https://github.com/wangsquirrel/divination-chart-mcp.git
cd divination-chart-mcp

2. 安装依赖

uv sync

3. 启动 stdio MCP server

uv run --with . divination-chart-mcp

也可以显式指定 transport:

uv run --with . divination-chart-mcp --transport stdio
uv run --with . divination-chart-mcp --transport sse
uv run --with . divination-chart-mcp --transport streamable-http

用 uvx 启动

本地仓库:

uvx --from . divination-chart-mcp

直接从 GitHub:

uvx --from git+https://github.com/wangsquirrel/divination-chart-mcp divination-chart-mcp

MCP 配置

{
  "mcpServers": {
    "divination-chart-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/wangsquirrel/divination-chart-mcp",
        "divination-chart-mcp"
      ]
    }
  }
}

测试MCP服务

uvx fastmcp list --command  'uv run --with . divination-chart-mcp' --json

部署服务

  • 使用 ASGI 服务器启动 SSE 服务:

uvicorn api.index:app --host 0.0.0.0 --port 3000
  • api/index.py 导出了同一个 ASGI app,可用于云平台部署

  • 也可以直接在 Vercel 上部署这个项目,使用的是 vercel.json 配置文件

Available Tools

2 tools
divination_baziB

八字排盘工具 - 根据年月日时及性别,进行八字排盘,返回八字盘面的详细信息和启发性的分析。

Inputs: input_data (required). Returns: personal_info, natal_chart, luck_cycles, target_flow, +1 more

divination_liu_yaoB

六爻排盘工具 - 根据年月日时进行六爻占卜排盘,返回六爻盘面的详细信息。

Inputs: input_data (required). Returns: 六爻排盘的完整结果

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 2 tools

    Disambiguation5/5

    Two tools cover distinct divination methods (bazi vs liuyao); descriptions clarify their differences, so no confusion.

    Naming Consistency5/5

    Both tools follow the same 'divination_' prefix plus descriptive type name in snake_case, ensuring predictable pattern.

    Tool Count4/5

    Two tools is appropriate for a niche domain focused on specific chart types; slightly low but not unreasonable.

    Completeness4/5

    Covers two major Chinese divination methods; could include others like ziwei but current scope is coherent and sufficient.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for accurate Bazi calculations, enabling personality analysis, destiny forecasting, and Chinese calendar queries via AI agents.
      ISC
    • A
      license
      A
      quality
      D
      maintenance
      A fortune-telling MCP server that generates traditional Chinese-style HTML reports for Ba Zi, Liu Yao, fortune sticks, naming, and a programmer's almanac.
      6
      4
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      MCP server for ai-divination-skills that provides tools for tarot draws, I Ching casts, Xiao Liu Ren casts, and Bazi chart generation, returning auditable JSON results for AI interpretation.
      5
      6
      MIT