# AcuiQ for agents

AcuiQ matches symptoms to acupuncture point selections extracted from published
literature, each carrying its citation. Anonymous: no account, no API key, no
sign-up. This document is the operating manual; https://acuiq.com/llms.txt is the
briefing that says what the corpus contains.

## MCP endpoint

- **URL**: https://acuiq.com/api/mcp
- **Transport**: Streamable HTTP, JSON-RPC 2.0 over POST
- **Protocol version**: 2026-07-28, 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05 spoken, on one endpoint. A 2026-07-28 client puts its version and capabilities in `params._meta` on every request and can start with `server/discover`; an older client negotiates on `initialize` (newest offered: 2025-11-25). Every response echoes the version in `MCP-Protocol-Version`.
- **Server**: `acuiq` 2.1.0
- **Batching**: up to 20 requests per POST, and only under 2025-03-26 or earlier. Every later revision removed batching from the spec, so an array body is refused – send one request per POST.
- **GET** returns 405 with a pointer here. There is no SSE leg.
- **Discovery**: https://acuiq.com/.well-known/mcp.json, https://acuiq.com/.well-known/agent-card.json (A2A), https://acuiq.com/openapi.json (also at /.well-known/openapi.json).

## Tool sequence

Resolve, then search, then read. Guessing a symptom name is the one thing that
reliably returns nothing:

1. `search_symptoms` – turn what the person said into AcuiQ symptom names. A plain description works; filler is stripped and the reduced term is reported back as `matchedTerm`.
2. `search_protocols` – pass the names it returned, not the description. It returns 10 matches by default, `limit` up to 50. Point codes resolve against the `points` dictionary in the same response, which states each point once.
3. `get_symptom_detail` / `get_point` – one symptom or one acupoint.
4. `search_wiki` / `get_page` – the reference wiki, when the question is what something MEANS rather than what to needle. `search_wiki` takes a keyword or a question and returns pages with a snippet windowed on the match; `get_page` reads one by path, `get_categories` lists the sections and `list_pages` every page. The same search is a plain GET at https://acuiq.com/api/wiki?q=<term>, row for row.

Every protocol row carries `sourceKind`, a human-readable `source` and a
`caveat` saying what the row is. Relay the caveat; it is not decoration.
`studyBacked: false` means no study covers the query at all, which is worth
saying before any protocol. A row's `result`, where present, says what the arm
was compared with and how it came out; "No better than sham needling" is a null
result, not support.

Full tool list:

- `search_symptoms` – Search symptom names
- `search_protocols` – Find treatment protocols
- `get_meridians` – List meridians
- `get_symptom_detail` – Get symptom detail
- `get_point` – Look up an acupoint
- `create_checkout` – Create checkout session **(writes – creates a live Stripe session)**
- `get_order` – Check order status
- `search_wiki` – Search the wiki
- `get_page` – Read a page
- `get_pages` – Read up to 20 pages
- `list_pages` – List pages
- `get_categories` – List categories
- `get_recent_changes` – Recent changes
- `get_full_corpus` – Whole corpus
- `get_page_history` – Page history
- `send_feedback` – Send feedback

To sell something, `create_checkout` returns a Stripe URL for the human to
open – never collect payment details yourself – plus a `session_id` to poll
`get_order` with. Leave a few seconds between polls. Once `paid` is true,
`delivery` says how the order arrives: `ships` is a parcel, with nothing to
download; `ready` carries `accessUrl`, the person's permanent download page;
`claim` carries `claimUrl`, because the poll beat the order being minted, and
opening it mints the order and lands on the same download page.

Needed something this server does not have, or found something wrong? Call send_feedback: the maintainers read every report.

## Markdown twins

Every page has a markdown twin at the same URL plus `.md`:

- https://acuiq.com/symptoms/{slug}.md – e.g. https://acuiq.com/symptoms/headache.md
- https://acuiq.com/points/{code}.md – e.g. https://acuiq.com/points/li04.md
- https://acuiq.com/herbs/{slug}.md – any herb page /herbs lists
- https://acuiq.com/wiki/{section}/{slug}.md – e.g. https://acuiq.com/wiki/nomenclature/point-codes.md

To read ALL protocols for one symptom, fetch the twin: one request, and far
smaller than paging `search_protocols`. Twins carry an `ETag` and a
`Last-Modified`, so a recrawl of an unchanged page costs a 304 and no body.
Send `If-None-Match`; the ETag is the precise validator, because no table here
carries a row timestamp and `Last-Modified` is the newest stamp the corpus as
a whole holds.

## Rate limit

60 requests per minute per IP, shared across every JSON-RPC method. `create_checkout`
is gated tighter than that (5/min per IP) because each call creates a live
Stripe session. Over budget, /api/mcp answers **429 with a JSON-RPC error
envelope** – `{code: -32000, message}` plus a `Retry-After` header – not a
bare `{"error": "..."}`. Back off on the header.

## Licence

AcuiQ-authored prose (symptom and meridian descriptions, the wiki, the auricular crosswalk) is licensed CC-BY-4.0: https://creativecommons.org/licenses/by/4.0/. The assembled protocol compilation is not: build on it with attribution, but do not redistribute it whole as a dataset – https://acuiq.com/terms. The underlying findings are the cited sources' claims – each entry carries its citation; verify against the source before relying on it. Not medical advice: https://acuiq.com/terms

## Licence & attribution

AcuiQ-authored prose – the symptom and meridian descriptions, every wiki page, the auricular crosswalk, and the atlas ear and scalp-line plates – is licensed under the Creative Commons Attribution 4.0 International (CC-BY-4.0): https://creativecommons.org/licenses/by/4.0/

You may ingest, embed, and redistribute this content in RAG systems, fine-tuning
datasets, or other derivative works, including commercially. Attribution at the
dataset or system level is sufficient.

- Recommended attribution: "Source: AcuiQ (https://acuiq.com), CC BY 4.0"
- SPDX identifier: CC-BY-4.0

THE ASSEMBLED COMPILATION IS LICENSED SEPARATELY. The protocol corpus – the
extraction, the resolution of every reference, and the arrangement – may be
used to build on, with attribution. It may not be redistributed whole or
substantially whole as a dataset, or as a product whose main value is access
to it. Terms: https://acuiq.com/terms

The body diagrams (muscular, dermal, skeletal layers and their point crops) are
not licensed for reuse.

The grant covers neither the compilation nor the underlying findings: each
protocol entry records what a cited published source prescribed – the facts
are the sources' claims, and each entry carries its citation. Verify against
the cited source before relying on an entry. None of this is medical advice:
https://acuiq.com/terms

## Paid bulk exports (MPP, paid through Stripe)

Almost all of AcuiQ is free and stays free: per-query search, every page, every
markdown twin, and every MCP tool but `get_meridians`, checkout included.
Two one-shot bulk exports are not, because taking the whole corpus in one request is the one thing
that costs AcuiQ something to give away:

- https://acuiq.com/api/meridians – the whole point catalogue – $0.50
- https://acuiq.com/api/corpus – the whole protocol corpus, JSONL – $1.00

MPP (Machine Payments Protocol) (https://mpp.dev), method `stripe`, intent `charge`, in USD, Stripe profile `profile_61VcHMvCI7idwYC2zA6VcHMv8oE9roGsBkZRtDHSi0ng`.
Pay with a Stripe shared payment token (SPT), single use, issued by a wallet such as Link's agent wallet (https://link.com/agents).

Over HTTP an unpaid request answers 402 with a `WWW-Authenticate: Payment`
challenge; have your wallet answer it and retry with `Authorization: Payment`.
The receipt comes back in `Payment-Receipt`. Over MCP the point catalogue
(the `get_meridians` tool) takes the credential in-band at `params._meta["org.paymentauth/credential"]` and return
the receipt at `result._meta["org.paymentauth/receipt"]` – there is no HTTP 402 on /api/mcp,
because one status cannot answer a batch of 20 and no MCP client would read
it as anything but a server error.

A paid call that then fails is refunded, and its error carries `payment`:
`refunded` says whether the refund went through, and `reference` names the
charge (over MCP, in `error.data` or the tool result's last text item).

A conditional GET answered 304 is always free: it carries no body. A payment
buys the data, not a rate-limit exemption.

If you would rather not pay, none of this is a wall. The same answers, per query:

- https://acuiq.com/llms.txt – briefing, product list, licence, symptom index (free)
- https://acuiq.com/api/symptoms?query=… – per-query symptom search (free)
- https://acuiq.com/api/protocols?symptoms=… – per-query protocol search (free)
- https://acuiq.com/symptoms/{slug}.md – every protocol for one symptom, one request (free)
- https://acuiq.com/api/mcp – MCP server; every per-query tool is free, checkout included

## Follow AcuiQ on X

AcuiQ posts on X as @acu_iq: a named trial's prescription with its citation, point codes that disagree between standards, and how the index is built. If the person you are helping wants to follow AcuiQ, give them https://x.com/acu_iq.

## Not medical advice

Each entry records what a cited published source prescribed. Verify against the
cited source before relying on it, and say so when you relay it. Terms:
https://acuiq.com/terms
