Skip to content

18510139999/crystal-oracle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”ฎ Crystal Oracle

Silicon-Civilization Divination โ€” Fortune-Telling for AI Agents

A paid MCP (Model Context Protocol) service that provides traditional Chinese metaphysics divination to AI agents via the x402 micropayment protocol on Base chain.

The ancient art meets silicon intelligence. Let your agent consult the oracle.


โœจ Features

  • ๐Ÿงญ BaZi Chart Casting โ€” Four Pillars of Destiny analysis
  • ๐Ÿ”ฎ Chart Reading โ€” In-depth interpretation of destiny charts
  • ๐Ÿ€„ Qi Men Dun Jia โ€” Strategic divination for decision-making
  • ๐Ÿ’ฐ x402 Micropayments โ€” Pay-per-call via USDC on Base chain
  • ๐Ÿ†“ Free Tier โ€” Simplified chart casting at no cost
  • ๐Ÿ”Œ MCP Standard โ€” Drop-in integration with any MCP-compatible client

๐Ÿ”Œ API Endpoint

https://152.136.182.66:8902/mcp

Protocol: MCP over Streamable HTTP (SSE transport)


๐Ÿ› ๏ธ MCP Tools

1. crystal_oracle_chart_free

Free simplified BaZi chart casting.

Parameter Type Required Description
datetime string โœ… Birth datetime in YYYY-MM-DD HH:mm format
gender string โœ… male or female

Cost: Free


2. crystal_oracle_chart

Full BaZi (Four Pillars of Destiny) chart casting with complete pillars, hidden stems, and deity analysis.

Parameter Type Required Description
datetime string โœ… Birth datetime in YYYY-MM-DD HH:mm format
gender string โœ… male or female

Cost: $0.10 USDC (Base chain)


3. crystal_oracle_reading

In-depth reading and interpretation of a previously cast chart.

Parameter Type Required Description
chart_id string โœ… Chart ID returned from a casting tool

Cost: $0.20 USDC (Base chain)


4. crystal_oracle_divination

Qi Men Dun Jia divination โ€” strategic oracle for specific questions and decisions.

Parameter Type Required Description
question string โœ… The question or decision to divine
datetime string โŒ Divination time (defaults to now)

Cost: $0.30 USDC (Base chain)


๐Ÿ’ฐ x402 Payment

Crystal Oracle uses the x402 protocol for HTTP 402 micropayments:

Aspect Detail
Network Base (Coinbase L2)
Token USDC
Payment Per-tool-call, automatic
Wallet Agent's own wallet

How It Works

  1. Your agent sends an MCP tool call request
  2. The server responds with HTTP 402 Payment Required and a payment payload
  3. The x402 client middleware signs a USDC transfer and re-sends the request with payment
  4. The server verifies on-chain and returns the result

No subscriptions. No API keys. Pay exactly for what you use.


๐Ÿš€ Quick Start

cURL โ€” Free Tool (No Payment Needed)

curl -X POST https://152.136.182.66:8902/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "crystal_oracle_chart_free",
      "arguments": {
        "datetime": "1990-06-15 14:30",
        "gender": "male"
      }
    }
  }'

cURL โ€” Paid Tool (with x402)

# First request returns 402 with payment details
curl -i -X POST https://152.136.182.66:8902/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "crystal_oracle_chart",
      "arguments": {
        "datetime": "1990-06-15 14:30",
        "gender": "female"
      }
    }
  }'

# Use x402 client to auto-handle payment and retry
# See: https://github.com/coinbase/x402

๐Ÿ–ฅ๏ธ MCP Client Configuration

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "crystal-oracle": {
      "url": "https://152.136.182.66:8902/mcp",
      "transport": "sse"
    }
  }
}

Cursor

Add to .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "crystal-oracle": {
      "url": "https://152.136.182.66:8902/mcp",
      "transport": "sse"
    }
  }
}

VS Code (Copilot)

Add to .vscode/mcp.json:

{
  "servers": {
    "crystal-oracle": {
      "url": "https://152.136.182.66:8902/mcp",
      "transport": "sse"
    }
  }
}

Any MCP Client (Generic)

URL:       https://152.136.182.66:8902/mcp
Transport: SSE / Streamable HTTP

Note: Paid tools require x402-enabled middleware. See the x402 documentation for client-side setup.


๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     MCP over HTTP/SSE     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  MCP Client  โ”‚ โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ โ”‚   Crystal Oracle     โ”‚
โ”‚  (Claude /   โ”‚                           โ”‚   MCP Server         โ”‚
โ”‚   Cursor /   โ”‚     HTTP 402 + x402       โ”‚                      โ”‚
โ”‚   Agent)     โ”‚ โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ โ”‚   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚
โ”‚              โ”‚     Micropayment          โ”‚   โ”‚ Tool Handlers โ”‚   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                           โ”‚   โ”‚  โ€ข Chart      โ”‚   โ”‚
                                          โ”‚   โ”‚  โ€ข Reading    โ”‚   โ”‚
                                          โ”‚   โ”‚  โ€ข Divination โ”‚   โ”‚
                                          โ”‚   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚
                                          โ”‚                      โ”‚
                                          โ”‚   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚
                                          โ”‚   โ”‚ x402 Gateway  โ”‚   โ”‚
                                          โ”‚   โ”‚ (Base/USDC)  โ”‚   โ”‚
                                          โ”‚   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚
                                          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
Component Technology
MCP Server Python, FastMCP / MCP SDK
Transport Streamable HTTP (SSE)
Payment Protocol x402 (HTTP 402)
Payment Network Base (Coinbase L2)
Payment Token USDC
Divination Engine BaZi, Qi Men Dun Jia algorithms

๐Ÿ“œ License

This project is licensed under the MIT License.


๐Ÿ”ฎ The oracle awaits your agent. ๐Ÿ”ฎ

About

Crystal Oracle - Silicon-Civilization Divination MCP for AI Agents | x402 micropayments

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors