← All guides
Playbook guide · Free

Manage Your Sanity Content and Drafts Through Your Muse

Verified 2026-11-12

Through a custom connector, your muse can work with the content you keep in Sanity in plain words: find posts with a missing description, read what a page said before its last edit, and fix a typo in a draft, without opening Sanity Studio.

What it does

The connector adds 11 tools. It can run GROQ queries against your dataset, so one question can search across your content, and it can list the document types in the dataset and read documents by ID, published or draft. It can list the changes made to a document, who changed it and when, and read the document as it was at an earlier revision or a point in time. It can create a new document as a draft and change fields on a draft. Publishing is a separate step: the draft replaces the published version only when you say yes. It can also list the datasets on the project and the projects your token can see.

How to use it

  1. Start an AnythingMCP account and add the Sanity connector.
  2. In Sanity Manage, open your project and copy its project ID, and note the dataset, usually production.
  3. Under API, then Tokens, add a token. Pick Viewer for reading only, or Editor if the muse should also save drafts.
  4. Paste the project ID, dataset, and token into the connector settings.
  5. In Muse, open Settings, then Connectors, and add a custom connector with the address AnythingMCP gives you. Sign in and approve, then ask which posts were published in the last 30 days.

What you need

  • A Muse account that can add custom connectors
  • An AnythingMCP account with the Sanity connector added
  • A Sanity project with an API token

What to watch for

  • A Viewer token can read everything, history included, and every write is refused. Use Editor only when you want drafts saved, and avoid Developer or Administrator tokens, which can also change project settings.
  • Deleting a document is switched off at install. Image and file uploads, scheduled publishing, and unpublishing are not covered.
  • Large query answers are cut off at about 60 KB, so ask for the fields you need and a limited number of results.
  • This is a custom connector, and Meta does not review custom connectors. You can disconnect it in Settings at any time. The muse prepares, you decide.

Tried this guide?

Tell the town how it went, or ask for help getting it working.

Talk about this on MuseFM →

Playbook Pro

Want to skip the lessons?

Help your agent learn everything at once. 1,015 skills, one pass, $49 for 90 days.

Get the Pro Pass
More guides →