ming-metaphysics-mcp
Provides five Chinese metaphysics engines (BaZi, QMDJ, ZWDS, Feng Shui, I Ching) as MCP tools for analysis and forecasting.
README
ming-metaphysics-mcp
Five Chinese metaphysics engines as MCP tools for Claude Desktop and any MCP-compatible client.
vs Cantian's bazi-mcp
| Dimension | Cantian bazi-mcp |
Ming ming-metaphysics-mcp |
|---|---|---|
| Arts covered | BaZi only | All five — BaZi + QMDJ + ZWDS + Feng Shui + I Ching |
| Engine depth | Good BaZi implementation | 9.0–9.5/10 expert-verified across all five engines |
| Classical sourcing | Not documented | 子平真詮, 淵海子平, 紫微斗數全書 + 108-title library cited |
| Output quality | Competent readings | Scholar-validated, bilingual (EN/ZH), report-grade depth |
| Consultation funnel | None | Master reading available via Ming Bot (link TBA) |
| Kua + Eight Mansions | ❌ | ✅ |
| QMDJ timing | ❌ | ✅ (sxtwl Ju computation) |
| I Ching (Liu Yao) | ❌ | ✅ (classical 納甲法) |
Tools
| Tool | Engine | Description |
|---|---|---|
ming_bazi_analyze |
BaZi 八字 | Four Pillars chart — Day Master, pattern, luck pillars |
ming_qmdj_direction |
QMDJ 奇門 | Optimal direction + timing window for a date |
ming_zwds_chart |
ZWDS 紫微 | Twelve-palace natal chart with 四化 transformations |
ming_fengshui_flying_stars |
Feng Shui 風水 | Kua number + Eight Mansions directional analysis |
ming_iching_cast |
I Ching 易經 | Hexagram via classical 納甲法 (Liu Yao) |
ming_full_forecast |
All four birth-data engines | Integrated five-engine forecast with confidence score |
Engine requirement
This package is an MCP wrapper. It does not contain metaphysics
calculation logic — it forwards tool calls to a Ming engine endpoint over
HTTP. To use it, point MING_API_URL at a running engine.
Two ways to get an engine:
- Hosted endpoint (preferred, when available). A public Ming endpoint
will be announced; once available, configure
MING_API_URLto point at it and you're done. - Self-host. The Ming engine itself is currently a closed-source
reference implementation. If you have access to the Ming codebase, run
uvicorn api.main:app --port 8000and point this MCP atlocalhost:8000.
Without a reachable engine, the MCP server starts and lists tools, but tool calls return an HTTP error.
Install
Step 1 — Ensure an engine is reachable
See "Engine requirement" above.
Step 2 — Install the MCP server
npm install -g ming-metaphysics-mcp
Step 3 — Add to claude_desktop_config.json
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"ming": {
"command": "ming-metaphysics-mcp",
"args": [],
"env": {
"MING_API_URL": "http://localhost:8000"
}
}
}
}
Restart Claude Desktop. The Ming tools will appear in the tools list.
Verification
In Claude Desktop:
Using the ming_bazi_analyze tool, analyze the chart for someone born 1990-03-15, male, in Singapore.
You should get a full BaZi reading. If the tool errors, verify the Python engine is running at port 8000.
Endpoint Gaps
The following capabilities require FastAPI expansion before they fully function as specified. Each is flagged with a note in the tool response — no silent failures.
| Gap | Affected Tool | Required FastAPI Change |
|---|---|---|
| Annual flying star map for a specific year | ming_fengshui_flying_stars |
/consult needs a year query parameter to compute annual stars for years other than current |
forecast_year parameter |
ming_full_forecast |
/consult computes annual analysis against the current year internally; it does not accept a target year |
| Full ISO casting_timestamp | ming_iching_cast |
/iching-cast accepts date (YYYY-MM-DD) and hour_branch separately, not an ISO 8601 timestamp; only the date portion is forwarded |
goal: "bazi"/"qmdj"/"zwds" routing |
All individual tools | The spec assumed /consult would accept engine-name goals, but the real endpoint uses purpose goals (wealth/career/health/relationship/general). Individual tools route to dedicated per-engine endpoints instead (/analyze, /zwds, /qmdj, /iching-cast) |
To implement year-specific flying stars or forecast_year support, add those parameters to /consult in api/main.py and update the corresponding tool handlers here.
Development
git clone <this-repo>
cd ming-metaphysics-mcp
npm install
npm run build # compile TypeScript → dist/
npm test # smoke tests (no engine required)
# With engine running at localhost:8000:
npx ts-node scripts/benchmark.ts --tool all --iterations 5
Environment variables
| Variable | Default | Description |
|---|---|---|
MING_API_URL |
http://localhost:8000 |
Base URL of the Ming FastAPI engine |
Latency targets
| Tool | Target |
|---|---|
ming_bazi_analyze |
< 3s |
ming_qmdj_direction |
< 3s |
ming_fengshui_flying_stars |
< 3s |
ming_zwds_chart |
< 5s |
ming_full_forecast |
< 5s |
ming_iching_cast |
< 3s |
If any tool exceeds 5s consistently, check the engine bottleneck and consider adding timeout: 10000 to the MCP config.
Auth
None at the wrapper level — this server is open-source and free (MIT
license). Authentication, if any, is enforced by whatever endpoint
MING_API_URL points at.
For a complete five-engine reading
A guided five-engine consultation (BaZi + ZWDS + QMDJ + Feng Shui + I Ching synthesised by Master Chen) is available via Ming's Telegram bot. Link will be published once the bot is in public beta.
Privacy
This MCP wrapper itself does not collect data. It forwards your tool
arguments (birth date, hour, gender, question text) to whichever
MING_API_URL you configured. If you point at a hosted endpoint, that
endpoint receives the data — read its privacy policy. If you self-host,
nothing leaves your network.
Birth data is sensitive. If you're configuring this for end users, be explicit about which endpoint receives their inputs.
Project status
This package is at version 1.0.0. The MCP protocol surface (6 tools, JSON
schemas, response shapes) is stable. The underlying Ming engine evolves
faster — minor numeric changes in tool responses are normal.
Contributions welcome — see CONTRIBUTING.md.
License
MIT — see LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。