Meet v0.3.1Open-source. Yours to run.
xunji-mcp

A LITTLE BRIDGE. A BIGGER PICTURE.

Your training.
A new perspective.

Bring your Xunji history into the conversation. Explore your consistency, follow a movement, and see the work behind your progress.

  • Self-hosted
  • OAuth 2.1
  • Read-only by default

Xunji keeps the records. You choose who gets access.

xunji-mcp
Synthetic demo

How has my training changed over the last six months?

Here is the big picture, with the full period covered.

Sessions48
Working sets640
Recorded volume111kkg
Monthly recorded volumekg
14.2k
Jun
16.8k
Jul
17.6k
Aug
19.1k
Sep
20.9k
Oct
22.4k
Nov
Complete demo coveragexunji_training_overview

LESS RETRIEVAL. MORE UNDERSTANDING.

Good questions deserve clear answers.

Tools are shaped around the way you explore your training, with compact results your agent can use directly.

01 / PERSPECTIVE

See the whole picture.

Sessions, working sets, volume, and trends across your indexed history. One question, one overview.

xunji_training_overview

02 / PROGRESS

Follow one movement.

Explore best sets, PR timelines, estimated 1RM, and monthly volume. Keep the units and metric definitions in view.

xunji_movement_progress

03 / DETAIL

Ask it your way.

Choose a period, a movement or muscle group, and a daily, weekly, or monthly view. Drill into a day when you need the details.

xunji_query_training

A SMALL, CONSIDERED CONNECTION.

Your data.
Your permission.

A bridge you deploy on Cloudflare Workers. The Xunji key stays in your Worker secrets; clients receive an OAuth grant.

Read the architecture
01

An owner at the gate

Cloudflare Access and an allowlist, or a deployment passphrase. Authorization fails closed without an identity.

02

A rebuildable index

Derived analytics live in D1. Xunji remains the source of truth, and coverage tells you what has been scanned.

03

Read-only to begin

Writes need explicit enablement, a separate scope, and confirmation. The upstream has no delete API.

SMALLER ANSWERS. FEWER ROUND TRIPS.

A year of training.
One overview.

Aggregation happens in the index, keeping individual sets out of the model context until you ask for them.

183Per-day tool calls
1Overview call
~552Overview tokens

Synthetic 365-day benchmark against the v0.1 per-day tool shape. The index must be backfilled first; these figures do not measure production latency. Method and results

MAKE IT YOURS.

Your next conversation starts here.

One deployment, one Xunji account. Follow the setup guide, authorize your client, and start with a read.

  1. 1

    Deploy your bridge

    Create the Worker, storage, and identity gate. Add your key through Worker secrets.

    Deployment guide
  2. 2

    Connect your client

    Use your HTTPS /mcp endpoint and complete OAuth in ChatGPT or another compatible client.

    Client connection
  3. 3

    Ask a first question

    Check capabilities, backfill your chosen history window, then ask for an overview.

    Tool reference
Local setup
npm install
cp wrangler.example.jsonc wrangler.jsonc
npx wrangler types
npm run check

BUILT IN THE OPEN.

The details, in both languages.

English and 简体中文 guides cover setup, tool contracts, privacy, and the limits of what has been verified.

A few things to know.

Does this project host my training data?

You run your own Worker. This public project site is informational and never connects to Xunji. Your deployment stores a derived index and a short-lived cache under your control.

Which MCP clients can I use?

The bridge exposes Streamable HTTP with OAuth. ChatGPT connection and reads have been verified in a private deployment; each client and workspace still needs its own connection check. The optional MCP Apps view depends on host support.

What about nutrition and body measurements?

Those adapters require separate Xunji keys and remain unverified against live data. They are not registered without the matching key. Training reads are the verified core.

Can an agent change my records?

The default tools are read-only. The optional write tool requires explicit enablement, write scope, and confirmed: true. Xunji ignores dry_run, so every accepted write is real. The bridge cannot delete records.

Your training. A new perspective.

Get started