Skip to content
Zukan

Personal API and MCP

Your Zukan data is yours. With a personal token, scripts, sites and assistants can read what you logged: your collection, diary, notebooks and stats.

The API reads, and with the write permission it also logs titles and writes to notebooks. It covers only the data of whoever created the token, private entries included: keep the token like a password and use it on a server or in a script, never on a public page. Create a token

Authentication

Send the token in the Authorization header of every call:

curl https://zukan.me/api/v1/me \
  -H "Authorization: Bearer zk_..."

Endpoints

GET /api/v1/me
Your profile.
GET /api/v1/me/works
Your collection: status, rating, review, tags and dates. Filters: status, media, updated_since, q (title).
GET /api/v1/me/log
Your diary, with progress and timed sessions. Filters: since, until, kind, work (slug).
GET /api/v1/me/notebooks
Your title notebooks and free notebooks.
GET /api/v1/me/notebooks/{slug}
One notebook with its text in Markdown (the free notebook's slug or the title's).
POST /api/v1/me/notebooks
Creates a free notebook. JSON body: title, markdown and, optionally, parent (the notebook it goes into). Needs the notebook edit permission.
PUT /api/v1/me/notebooks/{slug}
Writes to a free notebook or a title's notebook. JSON body: markdown and mode (append adds to the end, replace overwrites). Needs the notebook edit permission.
GET /api/v1/me/stats
Your numbers: by status, by media, by year, sessions, streak.
GET /api/v1/catalog/search
Searches titles in the whole Zukan catalog. Filters: q (title, with an optional year), media, limit (up to 25). If more_pending is true, repeat in a few seconds to find more.
PUT /api/v1/me/works/{slug}
Logs a title: JSON body with status, rating, clear_rating, review, review_has_spoiler and tags, only what changes. Needs the log permission.
POST /api/v1/me/works/{slug}/log
Writes to the diary: JSON body with kind (started, progress, completed or session), progress_value and progress_unit, minutes, note, date and repeat. Needs the log permission.

Lists come in pages: limit (up to 200, default 50) and offset. The next field has the path of the next page, or null on the last one. Dates are YYYY-MM-DD; ratings go from 0.5 to 5.

Each token can make up to 120 calls a minute (REST and MCP combined); above that, the answer is 429. The tokens page shows when each one was last used.

Titles come with only their name, year, media type and Zukan ids: covers, synopses and credits come from sources that don't allow passing them on.

Example: notebooks in Obsidian

A script that downloads each notebook as a .md file into a folder of your vault:

#!/usr/bin/env bash
# ZUKAN_TOKEN=zk_... ./zukan-obsidian.sh ~/Obsidian/Zukan
set -euo pipefail
dest="${1:?pasta do cofre}"; mkdir -p "$dest"
api="https://zukan.me/api/v1"
auth="Authorization: Bearer $ZUKAN_TOKEN"
offset=0
while :; do
  page=$(curl -fsS -H "$auth" "$api/me/notebooks?limit=200&offset=$offset")
  for slug in $(echo "$page" | jq -r '.items[].slug'); do
    curl -fsS -H "$auth" "$api/me/notebooks/$slug" | jq -r '.markdown' > "$dest/$slug.md"
  done
  [ "$(echo "$page" | jq '.next')" = "null" ] && break
  offset=$((offset + 200))
done

Example: “Currently reading” on your site

On your site's server (the token never goes to the browser), the titles in progress:

const res = await fetch("https://zukan.me/api/v1/me/works?status=in_progress", {
  headers: { Authorization: `Bearer ${process.env.ZUKAN_TOKEN}` },
});
const { items } = await res.json();
// [{ work: { title: "Duna", year: 1965, media_type: "book", url: "..." }, rating: null, ... }]

MCP: your data in an assistant

Zukan has an MCP server at https://zukan.me/mcp.

Apps that support OAuth connect with just the address https://zukan.me/mcp: the app opens a Zukan page for you to authorize, no token needed (for example, claude.ai custom connectors).

For clients without OAuth, use a token. In Claude Code:

claude mcp add --transport http zukan https://zukan.me/mcp \
  --header "Authorization: Bearer zk_..."

In other clients that support remote MCP over HTTP, use the same address and the Authorization header. The read tools:

  • search_my_works: searches your collection by title, status and media.
  • get_work_notes: what you wrote about a title (rating, review and notebook).
  • show_review_card: To review (the study-notebook questions that most need review) and On this day in a card (MCP App); with notebook editing allowed, Got it and Missed it are saved with record_answer.
  • show_timer_card: a pomodoro (focus, short break and long break) for a study notebook in a card (MCP App), with today's and total focus time; with notebook editing allowed, each focus you finish is saved with record_study_session.
  • record_study_session: saves a focus of 1 to 180 minutes to a study notebook, the same as the pomodoro on the site.
  • get_study_method: the Study with me method (measure, map, teach and keep what you know), with the role for each phase.
  • get_study_guide: a study guide: goal, phase, measurement, map (as a list and in Mermaid), position, recent answers and what you already know; without a guide, lists the guides. The map shows up in a card (MCP App) with what holds and what can come now; set_study_map shows the same card, with the Approve button.
  • get_pending_proofs: the proofs you did on your own on the site that the AI hasn't checked yet (with the question, the reference, your answer, your confidence and your self-grade), the ideas you missed and the ones without a proof question.
  • record_proof_audit: with permission to edit notebooks: the AI agrees or disagrees with your self-grade. If it disagrees with an I got it, the idea loses what the proof gave it and you see its note in the guide's notebook, where you can contest it. It also saves the next proof question. Only the site grants proven and kept; no tool does.
  • start_practice, pose_problem, submit_practice_answer, conclude_problem: with notebook editing allowed: practice after teaching. Zukan picks the targets (weakest, most used, least recent) and the modes (recall, discriminate, compose), keeps the solution hidden until it's concluded and counts the hints. Problems show up in a card (MCP App).
  • start_teach_back, record_teach_back: you teach the AI: Zukan picks the idea (a proven one, or the oldest unproven) and gives the AI the apprentice role and the misconceptions the probe measured in you. With notebook editing allowed, it saves your explanation in your own words, which goes into the notebook as your own text, and what was left out.
  • ask_question: with notebook editing allowed: shows a guide question in a card (MCP App) with answer, confidence 0 to 100, “I don't know” and what you were thinking; it follows record_check's order rules and saves nothing by itself.
  • start_study_guide, record_probe, set_study_map, approve_study_map, record_check, save_propositions: with notebook editing allowed: start a guide, save the measurement, the map, the approval, each answer (with confidence, “I don't know” and what you were thinking) and the propositions. Out of order, Zukan refuses and says what's missing. Each proposition says whether the sentence is the person's (in_their_words) or the assistant's. A correct check needs a hidden proof question and its reference, which open on the site 3 days later; when too many taught ideas are waiting for a proof (3 by default, you choose per guide), Zukan refuses new ideas. Guides start free (mode free): no measuring and no map to approve, and each idea enters the guide on the first question about it, with node_title. With mode method, it follows measure, map and teach. With works, the guide starts from works in your collection, and the AI gets what you recorded about them (rating, review, notebook) to use as examples.
  • get_my_stats: your numbers.
  • show_stats_card: your numbers and taste DNA in a card (MCP App) with charts, plus a button that asks the AI for an analysis.
  • get_reading_log: your diary, with sessions.
  • list_my_notebooks: your notebooks, for titles and free ones.
  • show_notebook_card: opens a notebook in a card (MCP App) to read in the chat, with formulas, questions and linked notebooks; without a notebook, it shows the index to pick one.
  • get_notebook_index: all your notebooks, one line each, with the "In one sentence" and how many questions they have, so the AI sees what you already wrote.
  • search_my_notebooks, get_notebook: searches the text of your notebooks and reads a whole notebook, with its sub-notebooks and the notebooks that link to it.
  • get_my_guide: your Assistant guide, the private notebook with what you want every AI to know before helping.
  • get_inbox, resolve_inbox_note: the notes you left for the AI (on a work, notebook, list or on their own), and marking each one done with a short reply you see on the site.
  • suggest: suggests linking one notebook to another, putting a work on a list, or an idea, with the reason. Nothing changes until you accept on the site; it also works with a read-only token.
  • get_portrait: your portrait in one result: how you introduce yourself, your taste, your recent ratings and reviews, what you write about and what you studied. Each part says whether you wrote it, Zukan calculated it or an AI noted it.
  • get_related_notebooks: a notebook and the notebooks linked to it, with the text of each, so the AI can review them all at once.
  • get_questions: a study notebook's questions with your last result, missed ones first.
  • search, fetch: the same search in the format ChatGPT uses for research.
  • search_catalog: searches titles in the Zukan catalog, not only your collection.
  • get_recommendations, get_my_taste: your recommendations and your taste DNA. Taste leads with the person's own word: DNA traits they disputed (their_word) and recommendations they dismissed, with the reason (not_for_me).
  • show_list_card: your lists in a card (MCP App) with covers; opened, a list shows the works in order, who added each and why; with logging allowed, you can search and add works, create a list or pick from the candidates the AI suggested (candidates). What the card saves counts as the person's choice.
  • list_my_lists, get_list: your lists and the titles in each one.

Try asking:

  • “What science fiction did I read this year, and what did I think of it?”
  • “Summarize what I wrote in my Dune notebook.”
  • “How much time did I spend reading this month?”

Assistant shortcuts

The MCP also offers shortcuts (prompts), which apps like Claude show as commands:

  • set_up_guide: creates or reviews your Assistant guide, with a few questions.
  • know_me: the AI reads your garden and tells you what it now knows about you, saying what came from your own words, so you can correct it.
  • interview_me: the AI asks two or three questions about a work and opens the Review card so you can write it in your own words.
  • study_topic: builds a study path on a topic as notebooks and sub-notebooks, linked to titles in the catalog.
  • relate_work_theme: writes a notebook on how a title relates to a theme, from your notes.
  • quiz_me: asks a study notebook's questions one at a time, with your confidence before each answer, and saves the result.
  • save_chat: saves what the conversation left in a notebook: a one-sentence summary, the key points and questions to review.
  • review_notebooks: looks for contradictions, outdated passages, repeated content and missing links between a notebook and the ones linked to it. Nothing changes without your OK.
  • stitch_garden: reads the index of your notebooks and suggests missing links, repeated notes and hub notes per theme, so the graph gets denser. It only writes what you approve.

Log titles

With the write permission, the assistant also logs what you tell it:

  • show_recommendations_card: your recommendations in a card (MCP App) of covers, with the reason for each and a Want button that adds the work to your list with track_work. With permission to log, Not for me dismisses the recommendation and saves the reason, in the person's words.
  • show_progress_card: shows your works in progress in a card (MCP App) with where you stopped; you set where you are, how long it took, or tap Finished with stars, and the card saves with log_work and track_work.
  • show_releases_card: upcoming releases (120 days) from the works and creators you follow in a card (MCP App), with the date and a Want button; mine=false shows all of them.
  • show_track_card: searches the catalog and shows a card (MCP App) to pick the work by its cover, the status and the stars; the card saves with track_work. Without a card, the assistant lists the works and asks.
  • show_write_review_card: opens the Review card (MCP App) for a work, with up to three questions from the AI above the text field; the person writes, gives the stars and saves, and the text is saved as theirs.
  • show_still_think_card: opens the Still think so? card (MCP App) with an old rating or review of the person's (without a work, Zukan picks the oldest one not revisited, older than six months); they reaffirm or rewrite it there, and the revision counts as their own text.
  • track_work: changes a work's status, rating, review or tags (it joins the collection if it wasn't there). Review text saved this way is marked as dictated to an AI.
  • log_work: writes to your diary that you started, made progress, finished or had a timed session.
  • create_list, add_to_list: creates lists and puts works on them. What is saved this way is marked as added by an AI.
  • show_work_request_card: when a work isn't in the catalog, prepares the request in a card (MCP App) for the person to check and send.
curl -X PUT https://zukan.me/api/v1/me/works/duna \
  -H "Authorization: Bearer zk_..." \
  -H "Content-Type: application/json" \
  -d '{"status": "completed", "rating": 4.5}'

Tokens and apps connected before this permission existed need to be created or authorized again to log titles.

Writing to notebooks

With the edit permission (a token created with it, or an app you authorized to edit), the MCP gains these tools:

  • create_notebook: creates a free notebook, with a title and Markdown text, optionally inside another one.
  • create_notebook_tree: creates a notebook with sub-notebooks at once, like a study path.
  • save_my_guide: saves your Assistant guide (the first time, it creates the notebook, private).
  • record_answer, set_study_notebook: saves a question's result and marks a notebook as a study notebook.
  • set_ai_notes: a notebook's AI notes (summary, status, tags, sources, open questions, next steps), outside the text and only for you.
  • update_notebook: writes to a free notebook or a title's notebook: mode append adds to the end, replace overwrites. Every change is kept in the notebook's history. Over MCP, new text goes into a From AI block (in Markdown, > [!ai] App · date); blocks sent back unchanged keep their authorship.

Each write returns links: how many [[ ]] leave the notebook (links_out), how many of your notebooks link to it (links_in) and which of your notebooks the text cites without [[ ]] (unlinked_mentions), so the AI can offer the missing links.

Through the REST API, the same: POST /api/v1/me/notebooks with {"title","markdown","parent","visibility"} and PUT /api/v1/me/notebooks/{slug} with {"markdown","mode":"append"|"replace"}. A token without the permission gets 403 insufficient_scope.

curl -X PUT https://zukan.me/api/v1/me/notebooks/meu-caderno \
  -H "Authorization: Bearer zk_..." \
  -H "Content-Type: application/json" \
  -d '{"markdown": "\n## Hoje\nTerminei o capítulo 3.", "mode": "append"}'

Write [[Title]] to link to your notebook with that title or to a title in the catalog.

Notebooks an app creates start private; it only publishes them if you ask (visibility public).

To set everything up by chatting, give your assistant the address https://zukan.me/ai/setup.md: it walks you through it, one step at a time.