Wenxiang MCP

Bring the cultural interpretations of the 64 hexagrams into AI, offering fresh perspectives for observation and reflection.

Connect to your AI

Choose a client, copy the configuration, then check that the tools have loaded.

Public MCP endpoint

https://wenxiang-mcp.328558608.workers.dev/mcp

Use this endpoint in an MCP client that supports Streamable HTTP. The public service needs no login or API key. Check connection status and tool availability in your client.

MCP connects tools to your AI client. Add the public endpoint, then confirm that your client discovers the tools.

Choose your client and copy the configuration

Codex terminal commands
codex mcp add wenxiang --url https://wenxiang-mcp.328558608.workers.dev/mcp
codex mcp list

Run the commands in your terminal, then start or reopen a Codex session. Use /mcp to see the loaded tools. If a configuration with this name already exists, check its endpoint first. OpenAI documentation ↗

Tools and responses

Three simple cultural tools return hexagram details, prewritten interpretations and prompts for reflection. How you interpret them is up to you.

ToolWhat it doesInputs
draw_hexagramA chance encounterDraw a random hexagram and view its name and six lines, offering a cultural lens for observing a question.No parameters
get_hexagramExplore a hexagramRead a hexagram by number to explore its structure and cultural meaning.hexagram_id: 1–64
explain_hexagramA new perspective for reflectionRead prewritten interpretations and reflective prompts, then return to your own understanding.hexagram_id: 1–64

A cultural experience for reflection. The tools do not receive your personal question or use a model to infer outcomes. Random hexagrams and cultural interpretations inspire observation and reflection, with no promise of predictions or decision outcomes. The interface and cultural interpretations of all 64 hexagrams support 简体中文, 繁體中文 and English. All three MCP tools accept a language parameter; classical Chinese source text is kept separately.

Language selection in tool arguments:language accepts zh-CN / zh-Hant / en.

Try a prompt

Example prompt

Set language="en" when calling the tools. Draw a random hexagram and show its name and six lines. Based on its cultural interpretation, give me three open-ended questions for reflection, without predicting outcomes.

Cultural readingLook up hexagram 1 and explain its six-line structure and the cultural meaning of Qian.

Another perspectiveRead a hexagram’s prewritten interpretation and turn its reflective ideas into journal prompts.

Deploy your own service

Publish Wenxiang MCP to your Cloudflare Worker. The service includes cultural texts for all 64 hexagrams and read-only tools. After deployment, connect your client through its HTTPS endpoint.

Your AI clientHTTP MCPCloudflare WorkerThree Wenxiang toolsCultural textsIncluded in the source

The service returns prewritten content. It needs no database or model API key.

  1. Download and extract the source

    Download and extract the source package locally, then enter the wenxiang-mcp directory. Its README covers versions, configuration and verification.

    Download Wenxiang MCP source
  2. Install dependencies and publish to Cloudflare

    Run these commands in the source directory. npm ci uses the locked versions in the package. Once tests and build checks pass, follow Wrangler’s prompts to authorize Cloudflare access. Before publishing, set your service’s Worker name in wrangler.toml and check the rate-limit namespace.

    Cloudflare deployment commands
    npm ci
    npm test
    npm run check
    npx wrangler login
    npm run deploy
  3. Use your own endpoint

    Take the actual HTTPS service address from the deployment output and append /mcp. In the source directory, run npm run smoke -- followed by this MCP endpoint to complete the SDK check. Then return to “Connect to the public service” and replace the example URL with your endpoint.

    After connecting, confirm discovery of draw_hexagram, get_hexagram and explain_hexagram, then try reading a hexagram.

This package deploys the MCP tool service. For a custom domain, configure SITE_ORIGIN as described in the README. Browser connections across origins require an explicit allowed origin. Check quotas and the public endpoint against your Cloudflare configuration.

From a moment of reflection to knowledge you can trace.

BioAI Daily MCP

Explore the other product