<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: manpo</title>
    <description>The latest articles on DEV Community by manpo (@manpo).</description>
    <link>https://dev.to/manpo</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4263754%2F410ce644-027b-45d1-a46d-f6486ca05eae.png</url>
      <title>DEV Community: manpo</title>
      <link>https://dev.to/manpo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/manpo"/>
    <language>en</language>
    <item>
      <title>I turned a 3,000-year-old book into open data and an MCP server</title>
      <dc:creator>manpo</dc:creator>
      <pubDate>Thu, 03 Dec 2026 09:21:16 +0000</pubDate>
      <link>https://dev.to/manpo/i-turned-a-3000-year-old-book-into-open-data-and-an-mcp-server-4el7</link>
      <guid>https://dev.to/manpo/i-turned-a-3000-year-old-book-into-open-data-and-an-mcp-server-4el7</guid>
      <description>&lt;p&gt;I translated the I Ching, the Chinese Book of Changes, into English. The core text is small: 64 hexagrams, each with a short Judgment and six line texts, plus two extra texts for the first two hexagrams. 450 passages in all.&lt;/p&gt;

&lt;p&gt;A translation like this usually ends up as a book or a PDF. I published mine as a PDF too, but then I did three more things with it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Released it as open data (JSON and CSV) under CC BY 4.0.&lt;/li&gt;
&lt;li&gt;Wrapped it in small npm and PyPI packages, with a casting function.&lt;/li&gt;
&lt;li&gt;Put it behind a remote MCP server, so Claude, ChatGPT, Grok or Cursor can cast a hexagram and quote the text directly.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This post is about why, and about the decisions that turned out to matter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a book should be data
&lt;/h2&gt;

&lt;p&gt;Ask an AI assistant what a hexagram says and you usually get a paraphrase. Sometimes it's a blend of older public-domain translations, sometimes it's made up, and there's no way to tell which. There's no source to check.&lt;/p&gt;

&lt;p&gt;Data fixes that. If the model can fetch the exact Chinese line and an English translation, with a name and a link attached, it can quote instead of guessing, and the reader can follow the link.&lt;/p&gt;

&lt;p&gt;The license matters as much as the format. I first put the PDF out under CC BY-NC. That's fine for readers, but "non-commercial" stops exactly the people who'd build something with it: app makers, tool builders, anyone with a paid plan. So the open-data release is CC BY 4.0: use it for anything, including commercial products, as long as you credit the translation.&lt;/p&gt;

&lt;h2&gt;
  
  
  The shape of the data
&lt;/h2&gt;

&lt;p&gt;One file, &lt;code&gt;iching.json&lt;/code&gt;, holds everything. Each hexagram looks roughly like this (trimmed):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"number"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"symbol"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"䷀"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"The Creative"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"name_zh"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"乾"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"pinyin"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"qián"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"binary"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"111111"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"judgment_zh"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"元，亨，利，贞。"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"judgment"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Supreme. Successful. Favorable. Steadfast."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"lines"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"position"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"yang"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"label"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Nine at the beginning"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"label_zh"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"初九"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"text_zh"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"潜龙勿用。"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"text"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Hidden dragon. Do not act."&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A few choices worth explaining:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;binary&lt;/code&gt; runs bottom to top.&lt;/strong&gt; Hexagrams are built and read from the bottom line up, so &lt;code&gt;"111000"&lt;/code&gt; means three solid lines at the bottom and three broken lines on top (that's Hexagram 11, Peace). Read it top to bottom and you get Hexagram 12, Standstill, the opposite, so the order has to be written down.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chinese and English sit side by side&lt;/strong&gt;, so anyone can check the translation against the original.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two CSVs&lt;/strong&gt; for people who live in spreadsheets: one row per hexagram, and one row per passage (450 rows).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The same character isn't always the same English.&lt;/strong&gt; 贞 (zhēn) sometimes means the divination itself ("The divination is auspicious") and sometimes means holding firm ("steadfast"). The data keeps the reading that fits each passage instead of forcing one gloss everywhere. That's a translation decision, but it shows up in the data, so it's documented in the README.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The same release is on &lt;a href="https://github.com/manpoai/ask-yi-i-ching" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;, &lt;a href="https://huggingface.co/datasets/manpoai/ask-yi-i-ching" rel="noopener noreferrer"&gt;Hugging Face&lt;/a&gt;, &lt;a href="https://www.kaggle.com/datasets/manpoai/ask-yi-i-ching" rel="noopener noreferrer"&gt;Kaggle&lt;/a&gt; and &lt;a href="https://doi.org/10.5281/zenodo.24358845" rel="noopener noreferrer"&gt;Zenodo&lt;/a&gt;, which gives it a DOI. The DOI sounds like overkill for a hobby dataset, but it means the translation can be cited like any other source.&lt;/p&gt;

&lt;h2&gt;
  
  
  Packages: npm and PyPI
&lt;/h2&gt;

&lt;p&gt;Most people don't want to download a JSON file. They want &lt;code&gt;import&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install ask-yi-i-ching
&lt;span class="c"&gt;# or&lt;/span&gt;
pip install ask-yi-i-ching
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;getHexagram&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;fromLines&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reading&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cast&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;attribution&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'ask-yi-i-ching'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nf"&gt;getHexagram&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lines&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;   &lt;span class="c1"&gt;// "Hidden dragon. Do not act."&lt;/span&gt;
&lt;span class="nf"&gt;fromLines&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'111000'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;       &lt;span class="c1"&gt;// "Peace"&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;reading&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// a cast you made yourself, bottom to top&lt;/span&gt;
&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;primary&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;                        &lt;span class="c1"&gt;// "The Clinging"&lt;/span&gt;
&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;changingLines&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;l&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;l&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;position&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  &lt;span class="c1"&gt;// [3, 4]&lt;/span&gt;
&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;resulting&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;                    &lt;span class="c1"&gt;// 27&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;mine&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;cast&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;                   &lt;span class="c1"&gt;// a fresh three-coin cast&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;attribution&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// The Ask Yi I Ching, translated by manpo (askyi.app), CC BY 4.0&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The Python package has the same functions in snake_case (&lt;code&gt;get_hexagram&lt;/code&gt;, &lt;code&gt;from_lines&lt;/code&gt;, &lt;code&gt;cast&lt;/code&gt;). Both ship a CLI: &lt;code&gt;npx ask-yi-i-ching 11&lt;/code&gt; prints Hexagram 11.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;attribution&lt;/code&gt; is exported on purpose. CC BY asks for credit, and the easiest way to get people to give it is to hand them the exact line.&lt;/p&gt;

&lt;h2&gt;
  
  
  Casting: the odds are the interesting part
&lt;/h2&gt;

&lt;p&gt;An I Ching cast produces six numbers, each 6, 7, 8 or 9. Odd is a solid line, even is broken, and 6 and 9 are "changing" lines that flip to make a second hexagram.&lt;/p&gt;

&lt;p&gt;There are two traditional ways to get those numbers, and they don't have the same odds:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;th&gt;Three coins&lt;/th&gt;
&lt;th&gt;Yarrow stalks&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;6 (changing yin)&lt;/td&gt;
&lt;td&gt;1/8&lt;/td&gt;
&lt;td&gt;1/16&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7 (yang)&lt;/td&gt;
&lt;td&gt;3/8&lt;/td&gt;
&lt;td&gt;5/16&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8 (yin)&lt;/td&gt;
&lt;td&gt;3/8&lt;/td&gt;
&lt;td&gt;7/16&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9 (changing yang)&lt;/td&gt;
&lt;td&gt;1/8&lt;/td&gt;
&lt;td&gt;3/16&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;With coins, changing yin and changing yang are equally likely. With yarrow stalks, a changing yang line is three times as likely as a changing yin line. If you implement "yarrow" as a coin flip with a different animation, you've changed the oracle.&lt;/p&gt;

&lt;p&gt;The packages do the coin method with &lt;code&gt;crypto.getRandomValues&lt;/code&gt; (or Python's &lt;code&gt;secrets&lt;/code&gt;). The MCP server does both methods with the odds above, and I checked each over 10,000 casts before shipping.&lt;/p&gt;

&lt;h2&gt;
  
  
  The MCP server
&lt;/h2&gt;

&lt;p&gt;The server lives at &lt;code&gt;https://askyi.app/api/mcp&lt;/code&gt;. It's remote (Streamable HTTP), needs no account and is read-only, so you can add it to any client that supports custom connectors.&lt;/p&gt;

&lt;p&gt;It has four tools:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cast_hexagram&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Casts with coins or yarrow and returns the primary hexagram, changing lines and resulting hexagram, in Chinese and English&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;read_lines&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Same result for six values the user cast themselves&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_hexagram&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Looks up a hexagram or a single line by number, English name, pinyin or Chinese character&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;list_hexagrams&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;All 64, with names, symbols and trigrams&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A raw call looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -X POST https://askyi.app/api/mcp \
  -H &lt;span class="s1"&gt;'Content-Type: application/json'&lt;/span&gt; \
  -H &lt;span class="s1"&gt;'Accept: application/json, text/event-stream'&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"jsonrpc":"2.0","id":1,"method":"tools/call",
       "params":{"name":"get_hexagram","arguments":{"hexagram":1,"line":1}}}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and returns both a readable text block and &lt;code&gt;structuredContent&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"number"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"The Creative"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"name_cn"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"乾"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"symbol"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"䷀"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"judgment"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"cn"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"元，亨，利，贞。"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"en"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Supreme. Successful. Favorable. Steadfast."&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"lines"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"position"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"cn"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"潜龙勿用。"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"en"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Hidden dragon. Do not act."&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://askyi.app/i-ching-hexagram-1/"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"attribution"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"text"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"The Ask Yi I Ching, translated by manpo (CC BY 4.0)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://askyi.app/i-ching-pdf/"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"license"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://creativecommons.org/licenses/by/4.0/"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Design choices that mattered:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Every result carries the attribution.&lt;/strong&gt; The server's instructions also tell the model to credit the translation when it quotes, and the credit line is right there in every result, so the model doesn't have to remember it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Text and structured output together.&lt;/strong&gt; Some clients only read &lt;code&gt;content&lt;/code&gt;, some prefer &lt;code&gt;structuredContent&lt;/code&gt;. Returning both costs nothing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Accept the user's mess.&lt;/strong&gt; &lt;code&gt;get_hexagram&lt;/code&gt; takes &lt;code&gt;1&lt;/code&gt;, &lt;code&gt;"Qian"&lt;/code&gt;, &lt;code&gt;"qián"&lt;/code&gt;, &lt;code&gt;"乾"&lt;/code&gt; or &lt;code&gt;"The Creative"&lt;/code&gt;. &lt;code&gt;read_lines&lt;/code&gt; takes an array or a string like &lt;code&gt;"789987"&lt;/code&gt;. If a name doesn't match, the error lists the three closest names, so the model can recover on its own.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read-only annotations on every tool&lt;/strong&gt; (&lt;code&gt;readOnlyHint: true&lt;/code&gt;, &lt;code&gt;destructiveHint: false&lt;/code&gt;). Some directories check for them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The question is never stored.&lt;/strong&gt; &lt;code&gt;cast_hexagram&lt;/code&gt; takes an optional &lt;code&gt;question&lt;/code&gt;, used only to build a link back to the site with the cast pre-filled. Only daily call counts per tool and client name are logged.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Getting listed
&lt;/h2&gt;

&lt;p&gt;Getting the server listed took longer than building it, and most of the lessons are here.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Use your own domain.&lt;/strong&gt; The server first lived on a subdomain. I moved it to &lt;code&gt;askyi.app/api/mcp&lt;/code&gt; (the old address still works), because directory listings and links then point at the main site.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The official MCP Registry is the hub.&lt;/strong&gt; It namespaces servers by domain, so mine is &lt;code&gt;app.askyi/ask-yi&lt;/code&gt;, verified with a DNS TXT record that holds an Ed25519 public key. One gotcha: &lt;code&gt;mcp-publisher&lt;/code&gt; wants the private key as raw hex, and the error for a PEM file just says "invalid hex". This gets you the 32 raw bytes:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;  openssl pkey -in key.pem -outform DER &lt;span class="o"&gt;|&lt;/span&gt; tail -c 32 &lt;span class="o"&gt;|&lt;/span&gt; xxd -p -c 64
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Some directories pull from the Registry by themselves.&lt;/strong&gt; Glama and mcptry listed the server from the Registry without a submission.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The directory landscape changes fast.&lt;/strong&gt; Of the first batch I planned, one had stopped taking new submissions, one only listed paid entries, and several required a public repo for the server code itself, which a remote-only server doesn't have. Check each one before you plan around it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Add &lt;code&gt;https://askyi.app/api/mcp&lt;/code&gt; as a custom connector in Claude, ChatGPT, Grok or Cursor, and ask for a reading or a specific line. Setup notes: &lt;a href="https://askyi.app/mcp/" rel="noopener noreferrer"&gt;askyi.app/mcp&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;npm install ask-yi-i-ching&lt;/code&gt; or &lt;code&gt;pip install ask-yi-i-ching&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;The data: &lt;a href="https://github.com/manpoai/ask-yi-i-ching" rel="noopener noreferrer"&gt;github.com/manpoai/ask-yi-i-ching&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;The translation to read: &lt;a href="https://askyi.app/i-ching-pdf/" rel="noopener noreferrer"&gt;askyi.app/i-ching-pdf&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you build something with it, I'd like to see it. And if you find a mistake in the Chinese or the English, open an issue with the hexagram and line number; corrections go into the next version.&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>opensource</category>
      <category>ai</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
