ming-metaphysics-mcp
ming-metaphysics-mcp
Claude DesktopおよびMCP互換クライアント向けの、5つの中国形而上学エンジンを統合したMCPツールです。
Cantianのbazi-mcpとの比較
項目 | Cantian | Ming |
対応術数 | 八字のみ | 全5種 — 八字 + 奇門遁甲 + 紫微斗数 + 風水 + 易経 |
エンジンの深さ | 優れた八字実装 | 5つのエンジンすべてで専門家が検証した9.0~9.5/10の精度 |
古典的根拠 | 文書化なし | 子平真詮、淵海子平、紫微斗数全書など108タイトルの文献を引用 |
出力品質 | 有能な読み解き | 学者による検証済み、バイリンガル(英/中)、レポートレベルの深さ |
相談窓口 | なし | Ming Botによるマスター鑑定(リンクは後日公開) |
卦 + 八宅 | ❌ | ✅ |
奇門遁甲の時盤 | ❌ | ✅ (sxtwl Ju計算) |
易経 (六爻) | ❌ | ✅ (古典的な納甲法) |
Related MCP server: 命盘 Mingpan
ツール
ツール | エンジン | 説明 |
| 八字 (BaZi) | 四柱推命チャート — 日主、格局、大運 |
| 奇門 (QMDJ) | 特定の日付における最適な方位と時間帯 |
| 紫微 (ZWDS) | 四化飛星を伴う十二宮の命盤 |
| 風水 (Feng Shui) | 卦数 + 八宅法による方位分析 |
| 易経 (I Ching) | 古典的な納甲法(六爻)による卦の算出 |
| 全4種の出生データエンジン | 5つのエンジンを統合した予測と信頼度スコア |
エンジンの要件
本パッケージはMCPのラッパーです。形而上学的な計算ロジック自体は含んでおらず、ツール呼び出しをHTTP経由でMingエンジンエンドポイントに転送します。使用するには、MING_API_URLを実行中のエンジンに向けてください。
エンジンを入手する方法は2つあります:
ホストされたエンドポイント(推奨)。公開されているMingエンドポイントが発表される予定です。利用可能になったら、
MING_API_URLをそこに設定するだけで完了です。セルフホスト。Mingエンジン自体は現在クローズドソースのリファレンス実装です。Mingのコードベースにアクセスできる場合は、
uvicorn api.main:app --port 8000を実行し、このMCPをlocalhost:8000に向けてください。
到達可能なエンジンがない場合、MCPサーバーは起動してツールをリストアップしますが、ツール呼び出しはHTTPエラーを返します。
インストール
ステップ 1 — エンジンが到達可能であることを確認する
上記の「エンジンの要件」を参照してください。
ステップ 2 — MCPサーバーをインストールする
npm install -g ming-metaphysics-mcpステップ 3 — claude_desktop_config.jsonに追加する
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"ming": {
"command": "ming-metaphysics-mcp",
"args": [],
"env": {
"MING_API_URL": "http://localhost:8000"
}
}
}
}Claude Desktopを再起動します。Mingツールがツールリストに表示されます。
検証
Claude Desktopにて:
Using the ming_bazi_analyze tool, analyze the chart for someone born 1990-03-15, male, in Singapore.完全な八字の読み解き結果が得られるはずです。ツールがエラーになる場合は、Pythonエンジンがポート8000で実行されていることを確認してください。
エンドポイントのギャップ
以下の機能は、指定通りに完全に機能させるためにFastAPIの拡張が必要です。それぞれツール応答に注記がフラグ立てされており、サイレントエラーは発生しません。
ギャップ | 影響を受けるツール | 必要なFastAPIの変更 |
特定の年の年次飛星図 |
|
|
|
|
|
完全なISO casting_timestamp |
|
|
| すべての個別ツール | 仕様では |
年次飛星やforecast_yearのサポートを実装するには、api/main.pyの/consultにそれらのパラメータを追加し、ここにある対応するツールハンドラーを更新してください。
開発
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環境変数
変数 | デフォルト | 説明 |
|
| Ming FastAPIエンジンのベースURL |
レイテンシ目標
ツール | 目標 |
| < 3秒 |
| < 3秒 |
| < 3秒 |
| < 5秒 |
| < 5秒 |
| < 3秒 |
いずれかのツールが継続的に5秒を超える場合は、エンジンのボトルネックを確認し、MCP設定にtimeout: 10000を追加することを検討してください。
認証
ラッパーレベルでは認証はありません。このサーバーはオープンソースで無料(MITライセンス)です。認証が必要な場合は、MING_API_URLが指すエンドポイント側で強制されます。
5つのエンジンによる完全な鑑定のために
5つのエンジンによるガイド付き鑑定(八字 + 紫微斗数 + 奇門遁甲 + 風水 + 易経を陳マスターが統合)は、MingのTelegramボット経由で利用可能です。ボットがパブリックベータ版になった時点でリンクが公開されます。
プライバシー
このMCPラッパー自体はデータを収集しません。ツール引数(生年月日、時間、性別、質問内容)を、設定したMING_API_URLに転送するだけです。ホストされたエンドポイントを指定した場合、そのエンドポイントがデータを受け取ります。そのプライバシーポリシーを確認してください。セルフホストしている場合、データはネットワークの外には出ません。
出生データは機密情報です。エンドユーザー向けにこれを設定する場合は、どのエンドポイントが入力データを受け取るかを明確にしてください。
プロジェクトステータス
このパッケージはバージョン1.0.0です。MCPプロトコルのインターフェース(6つのツール、JSONスキーマ、応答形式)は安定しています。基盤となるMingエンジンはより速く進化するため、ツール応答の数値に軽微な変更があるのは正常です。
貢献を歓迎します — CONTRIBUTING.mdを参照してください。
ライセンス
MIT — LICENSEを参照してください。
Available Tools
6 toolsming_bazi_analyzeA
Compute a full BaZi (Four Pillars of Destiny 八字) chart. Returns Day Master analysis, pattern classification (格局), decade luck pillars (大运), and annual outlook. Engine verified against 子平真詮 and 淵海子平. Requires Ming engine running at MING_API_URL.
Inputs: birth_date (required), gender (required), birth_hour, birth_location, +1 more.
ming_fengshui_flying_starsA
Compute the Kua number (卦命), directional analysis, and annual Flying Star map (年飛星) for a person. Returns Kua group, favorable/unfavorable directions per Eight Mansions (八宅法), the nine-palace annual star chart for the requested year, and a five-engine directional synthesis.
Inputs: year (required), birth_date (required), gender (required), location_description.
ming_full_forecastA
Run all four birth-data engines (BaZi + ZWDS + Feng Shui + QMDJ) for a birth profile and return an integrated Master-tier forecast. I Ching is excluded from bulk forecasts (it requires a specific question — use ming_iching_cast separately).
Inputs: birth_date (required), gender (required), birth_hour, birth_location, +3 more.
ming_iching_castA
Cast an I Ching (易經) hexagram using the classical 納甲法 (Liu Yao method). Returns the hexagram, changing lines, transformed hexagram, and interpretation. The casting derives from the current date/time (SGT) by default.
Inputs: question (required), casting_timestamp.
ming_qmdj_directionA
Compute a Qi Men Dun Jia (奇門遁甲) reading for a specific date. Returns the optimal direction, best timing windows, lead star, and strategic framing. Ju number computed via sxtwl solar term library for classical accuracy.
Inputs: question (required), date, hour.
ming_zwds_chartB
Compute a Zi Wei Dou Shu (紫微斗數) twelve-palace natal chart. Returns palace highlights, starred positions, 四化 transformations, and synthesis for a specific question domain. Verified against 紫微斗數全書.
Inputs: birth_date (required), birth_hour (required), gender (required), birth_location, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool covers a distinct metaphysical system (BaZi, Feng Shui, I Ching, QMDJ, ZWDS) plus a combined forecast, with no overlapping purposes.
All tools follow a consistent 'ming_system_action' pattern in snake_case, e.g., ming_bazi_analyze, ming_iching_cast.
With 6 tools covering the main systems of Chinese metaphysics, the count is well-scoped and appropriate for the server's purpose.
The tool set covers all major Chinese metaphysical systems (BaZi, ZWDS, QMDJ, Feng Shui, I Ching) and includes a combined forecast, leaving no obvious gaps.
Maintenance
Related MCP Connectors
Free Qimen Dunjia and BaZi charts via MCP - deterministic engine, nine palaces and four pillars.
Deterministic Chinese BaZi (Four Pillars) astrology MCP server with true solar time correction.
BaZi MCP gateway: 14 tools (6 fortune / 5 forum / 3 meta). API key required. Entertainment only.
Hosted remote MCP server for BaZi (Four Pillars) charts and the Chinese almanac. No install.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables traditional Chinese metaphysics tools like Bazi, Ziwei, and Qimen via MCP, integrating AI analysis for divination and fortune-telling.818AGPL 3.0
- AlicenseAqualityBmaintenanceProvides traditional Chinese astrology (Bazi, Ziwei) and divination (Liuyao, Meihua, Qimen, etc.) calculations as MCP tools for AI assistants.18760 npm139Apache 2.0
- AlicenseAqualityCmaintenanceProvides Chinese metaphysical tools (bazi, qimen, five elements) as MCP tools for AI agents to give personalized advice on timing, compatibility, and daily energy.590 npm2MIT
- AlicenseAqualityDmaintenanceProvides MCP tools for Chinese metaphysics, including BaZi (Four Pillars) charting, Liu Yao hexagram casting, lunar conversion, and AI-powered destiny analysis.1037 npmMIT