Skip to main content
Glama
ming-metaphysics-mcp

ming-metaphysics-mcp

by Espivc

ming-metaphysics-mcp

Claude DesktopおよびMCP互換クライアント向けの、5つの中国形而上学エンジンを統合したMCPツールです。

Cantianのbazi-mcpとの比較

項目

Cantian bazi-mcp

Ming ming-metaphysics-mcp

対応術数

八字のみ

全5種 — 八字 + 奇門遁甲 + 紫微斗数 + 風水 + 易経

エンジンの深さ

優れた八字実装

5つのエンジンすべてで専門家が検証した9.0~9.5/10の精度

古典的根拠

文書化なし

子平真詮、淵海子平、紫微斗数全書など108タイトルの文献を引用

出力品質

有能な読み解き

学者による検証済み、バイリンガル(英/中)、レポートレベルの深さ

相談窓口

なし

Ming Botによるマスター鑑定(リンクは後日公開)

卦 + 八宅

❌

✅

奇門遁甲の時盤

❌

✅ (sxtwl Ju計算)

易経 (六爻)

❌

✅ (古典的な納甲法)


Related MCP server: 命盘 Mingpan

ツール

ツール

エンジン

説明

ming_bazi_analyze

八字 (BaZi)

四柱推命チャート — 日主、格局、大運

ming_qmdj_direction

奇門 (QMDJ)

特定の日付における最適な方位と時間帯

ming_zwds_chart

紫微 (ZWDS)

四化飛星を伴う十二宮の命盤

ming_fengshui_flying_stars

風水 (Feng Shui)

卦数 + 八宅法による方位分析

ming_iching_cast

易経 (I Ching)

古典的な納甲法(六爻)による卦の算出

ming_full_forecast

全4種の出生データエンジン

5つのエンジンを統合した予測と信頼度スコア


エンジンの要件

本パッケージはMCPのラッパーです。形而上学的な計算ロジック自体は含んでおらず、ツール呼び出しをHTTP経由でMingエンジンエンドポイントに転送します。使用するには、MING_API_URLを実行中のエンジンに向けてください。

エンジンを入手する方法は2つあります:

  1. ホストされたエンドポイント(推奨)。公開されているMingエンドポイントが発表される予定です。利用可能になったら、MING_API_URLをそこに設定するだけで完了です。

  2. セルフホスト。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.json

  • Windows: %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の変更

特定の年の年次飛星図

ming_fengshui_flying_stars

/consultに、現在以外の年の年次飛星を計算するためのyearクエリパラメータが必要

forecast_yearパラメータ

ming_full_forecast

/consultは現在年に対する年次分析を内部的に計算しており、ターゲット年を受け付けない

完全なISO casting_timestamp

ming_iching_cast

/iching-castはdate (YYYY-MM-DD) と hour_branch を個別に受け取り、ISO 8601タイムスタンプではない。日付部分のみが転送される

goal: "bazi"/"qmdj"/"zwds" ルーティング

すべての個別ツール

仕様では/consultがエンジン名のゴールを受け付けると想定していたが、実際のエンドポイントは目的別のゴール(富貴/キャリア/健康/人間関係/全般)を使用する。個別ツールは代わりに専用のエンジンエンドポイント(/analyze, /zwds, /qmdj, /iching-cast)にルーティングする

年次飛星や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_API_URL

http://localhost:8000

Ming FastAPIエンジンのベースURL

レイテンシ目標

ツール

目標

ming_bazi_analyze

< 3秒

ming_qmdj_direction

< 3秒

ming_fengshui_flying_stars

< 3秒

ming_zwds_chart

< 5秒

ming_full_forecast

< 5秒

ming_iching_cast

< 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 tools
ming_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

    A4/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool covers a distinct metaphysical system (BaZi, Feng Shui, I Ching, QMDJ, ZWDS) plus a combined forecast, with no overlapping purposes.

    Naming Consistency5/5

    All tools follow a consistent 'ming_system_action' pattern in snake_case, e.g., ming_bazi_analyze, ming_iching_cast.

    Tool Count5/5

    With 6 tools covering the main systems of Chinese metaphysics, the count is well-scoped and appropriate for the server's purpose.

    Completeness5/5

    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

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables traditional Chinese metaphysics tools like Bazi, Ziwei, and Qimen via MCP, integrating AI analysis for divination and fortune-telling.
      818
      AGPL 3.0
    • A
      license
      A
      quality
      B
      maintenance
      Provides traditional Chinese astrology (Bazi, Ziwei) and divination (Liuyao, Meihua, Qimen, etc.) calculations as MCP tools for AI assistants.
      18
      760 npm
      139
      Apache 2.0
    • A
      license
      A
      quality
      C
      maintenance
      Provides Chinese metaphysical tools (bazi, qimen, five elements) as MCP tools for AI agents to give personalized advice on timing, compatibility, and daily energy.
      5
      90 npm
      2
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Provides MCP tools for Chinese metaphysics, including BaZi (Four Pillars) charting, Liu Yao hexagram casting, lunar conversion, and AI-powered destiny analysis.
      10
      37 npm
      MIT