Use Mojimoto with Claude Code

6 min read

Coding agents are good at building front ends and bad at guessing content models. One command gives your agent the real model, the rules for reading and writing content, and a live connection to your project, so it can build pages against actual fields and fill them with content.

Start with llms.txt

Everything an agent needs to know about Mojimoto is in one plain-text file at https://mojimoto.com/llms.txt: how to model content, the write format for every field type, the Write API, assets and the MCP tools. Any agent can read it, with or without the setup below, so it is the first thing to point it at.

prompt
Read https://mojimoto.com/llms.txt before you model or write any Mojimoto content.

1. Create the tokens

On your project's API keys page, create two tokens: a read token for downloading the content model, and a write token for the agent to use over MCP. Limit the write token to what the agent should do, for example drafts only, on the content types it is working on. The public site token cannot be used with MCP, so it can never be used to read drafts.

2. Run init in your front end repo

terminal
npx @mojimoto/cli init --project your-project --token mjmt_your_read_token

It writes:

Pick agents with --agent claude,cursor (the default is all). Re-running refreshes the content model and keeps your edits to the skill unless you pass --force.

3. Give the agent the write token

The MCP config reads MOJIMOTO_WRITE_TOKEN from your environment, so nothing secret is committed. Export it in the shell you start Claude Code from:

terminal
export MOJIMOTO_WRITE_TOKEN=mjmt_your_write_token
claude

Prefer to set it up by hand? Add the server directly:

terminal
claude mcp add --transport http mojimoto https://mojimoto.com/mcp/your-project \
  --header "Authorization: Bearer $MOJIMOTO_WRITE_TOKEN"

What the agent can do

The MCP server exposes the content model as the mojimoto://content-model resource and these tools, filtered to what the token allows:

A read token gets the read tools only. Model changes are made one field at a time, so adding a field never overwrites the ones a person has already set up, and every write is attributed to the token and kept in the project's audit log.

Try it

prompt
Build the home page from the page entry with uid "home".
Render each block in its sections field with its own component,
and add a quote block with a testimonial from our about page.

Re-run init after changing your content model so the skill's reference stays current. The MCP resource is always live, so agents that read it never see a stale model.

Next

Build it for real

Spin up a project and try this yourself - your first project is free.

© 2026 Your Ikigai Ltd · Registered in England & Wales, no. 15274889 文 · モジモト