Unified Reading について
Unified Readingは、公開APIを利用するSDK、CLI、stdio MCPサーバーです。生年月日からライフパスナンバー、西洋の太陽星座、中国の十二支を返し、1924~2044年の旧正月の日付も調べられます。APIキーは不要で、データも保存しません。
主な機能
- 011つの日付から3種類の情報を照会
- 02最大20件の生年月日を一括処理
- 03十二支の年と旧正月の日付を照会
- 04SDK・CLI・MCPから利用
- 05JSON出力と年表のページ取得
活用シーン
- 01生年月日から複合リーディングを作成
- 02複数人の生年月日をまとめて処理
- 03十二支の年に対応する旧正月の期間を確認
MCP 対応
`unified-reading mcp`はstdio MCPサーバーを起動し、`https://unifiedreading.com/mcp`へリクエストを転送します。リーディングの選択肢、生年月日プロフィール、十二支の年を照会するツールを提供します。
設定
リモートサーバーはインストール不要です。クライアントを選んで設定をコピーするか、ワンクリックで導入できます。
https://unifiedreading.com/mcpclaude mcp add --transport http com-unifiedreading-unified-reading https://unifiedreading.com/mcp{"mcpServers":{"com-unifiedreading-unified-reading":{"type":"http","url":"https://unifiedreading.com/mcp"}}}Cursor で開く{"servers":{"com-unifiedreading-unified-reading":{"type":"http","url":"https://unifiedreading.com/mcp"}}}VS Code で開く{"mcpServers":{"com-unifiedreading-unified-reading":{"type":"http","url":"https://unifiedreading.com/mcp"}}}{"mcpServers":{"com-unifiedreading-unified-reading":{"serverUrl":"https://unifiedreading.com/mcp"}}}コマンドはターミナルで実行し、JSON は各クライアントの MCP 設定に貼り付けて再起動します。認可が必要なサーバーは初回接続時にログインを求めます。
ツール
詳細
unified-reading
公開されている Unified Reading API 用の SDK、CLI、stdio MCP サーバーです。生年月日を渡すと、ライフパスナンバー、西洋占星術の太陽星座、中国の干支を返します。1924~2044 年の旧正月の表にも対応しています。API キーは不要で、データは保存されません。
生年月日のみを送信し、氏名、生まれた時刻や場所は送信しないでください。個人向けの総合リーディングは unifiedreading.com で利用できます。
CLI
npx unified-reading profile 1990-07-14
1990-07-14
Life Path 4 The Builder
Sun sign ♋ Cancer, decan 3 (Water, Cardinal, ruled by Moon)
Chinese Yang Metal Horse
| コマンド | 説明 |
|---|---|
unified-reading profile <YYYY-MM-DD> | 1 つの日付のライフパスナンバー、太陽星座、中国の干支 |
unified-reading batch <YYYY-MM-DD>... | 最大 20 個の日付について、同じ情報を取得 |
unified-reading year <YYYY> | 中国の干支の年と、その旧正月の開始日および終了日 |
unified-reading years [--limit N] [--cursor YYYY] [--all] | 年の一覧をページごとに取得 |
unified-reading mcp | stdio MCP サーバーとして実行 |
任意のコマンドに --json を追加すると、API の生のレスポンスを取得できます。--base-url を指定すると、CLI の接続先を別のオリジンに変更できます。
MCP サーバー
unified-reading mcp は、リモートサーバー https://unifiedreading.com/mcp にリクエストを転送する stdio MCP サーバーを起動します。ローカルコマンドのみを起動する MCP クライアント向けです。
{ "mcpServers": { "unified-reading": { "command": "npx", "args": ["-y", "unified-reading", "mcp"] } } }
このサーバーは、読み取りオプション、生年月日のプロフィール(MCP Apps カード付き)、中国の干支の年を扱うツールを提供します。公式の MCP レジストリには com.unifiedreading/unified-reading として登録されています。
SDK
Node 18 以降、または fetch を備えた任意のランタイムが必要です。
import { UnifiedReading, UnifiedReadingError } from "unified-reading";
const client = new UnifiedReading();
const profile = await client.profile("1990-07-14");
console.log(profile.lifePath.number, profile.sunSign.sign, profile.chineseZodiac.animal); // 4 Cancer Horse
const results = await client.profiles(["1990-07-14", "1990-01-20"], { idempotencyKey: crypto.randomUUID() });
for await (const year of client.allChineseZodiacYears()) {
console.log(year.year, year.animal, year.starts, year.ends);
}
try {
await client.profile("1990-02-30");
} catch (error) {
if (error instanceof UnifiedReadingError) console.log(error.code, error.hint); // invalid_date ...
}
| メソッド | エンドポイント |
|---|---|
profile(date) | GET /api/v1/profile?date= |
profiles(dates, { idempotencyKey }) | POST /api/v1/profiles/batch |
chineseZodiacYears({ limit, cursor }) | GET /api/v1/chinese-zodiac/years(1 ページ分) |
allChineseZodiacYears() | すべてのページを非同期イテレーターとして取得 |
chineseZodiacYear(year) | 1 年分を取得。1924~2044 年の範囲外の場合は null |
日付には YYYY-MM-DD 形式の文字列または Date オブジェクトを指定できます。Date は現地の暦日として送信されます。エラーが発生すると UnifiedReadingError がスローされ、status、code、hint、retryAfter を保持します。API のリクエスト上限は IP ごとに 1 分あたり 10 回です。
リンク
- API ガイド:https://unifiedreading.com/docs
- OpenAPI 仕様:https://unifiedreading.com/openapi.json
- MCP サーバー(AI エージェント向けの同じ計算):https://unifiedreading.com/mcp
- ソース:https://github.com/emrecolako/unified-reading/tree/main/sdk
- バグ報告:https://github.com/emrecolako/unified-reading/issues(個人情報は含めないでください)、または [email protected]
コメント
AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。