Use Prismic

Prismic MCP Server

Last updated

The Prismic MCP server lets AI assistants work directly with your Prismic content. You can search documents, read and create content, upload assets, manage releases, and publish them from a conversation with Claude or ChatGPT.

Coding agents like Claude Code, Codex, and Cursor use it to write content, while the Prismic CLI manages models and settings.

Prismic MCP is on for every repository unless a repository Administrator or Owner deactivates it. The setting applies to everyone with access to the repository.

Environments have their own setting, and a new environment takes a few minutes to get ready. If Prismic MCP is off on your production repository, new environments start with it off too.

Connect to the MCP server

Authentication

Most of the setups above sign you in as part of the connection flow. If yours didn’t, your AI assistant prompts you the first time it calls a Prismic tool: click the authentication button, sign in on Prismic’s login page, and authorize the connection.

Either way, you only sign in once. The MCP server uses your Prismic identity, so you only have access to repositories your account can access.

Authenticate in non-interactive environments

The MCP server can be used in scripts, CI workflows, and AI agents. You may use a machine user token to authenticate non-interactive environments like GitHub Actions.

Learn how to create a machine user

Then, add an MCP server with these two values:

  • Server: https://mcp.prismic.io/mcp
  • Header: Authorization: Bearer <token>

The token only gives access to its repository, with the machine user’s role.

Example prompts

You can use the following prompts once connected to Prismic.

Explore your content

Prompt
What repositories do I have access to in Prismic?
Prompt
Show me the content types and locales configured in my-website.

Search and read

Prompt
Find all blog posts about product updates in my-website.
Prompt
Show me the content of the homepage.
Prompt
Which pages use our old logo image?
Prompt
Which published pages are missing an SEO description?

Create and edit content

Prompt
Create a new blog post about our latest feature release.
Prompt
On all blog posts about ABM, update the CTA card to promote our new feature.
Make each one relevant to the article.
Prompt
Rewrite the hero description on the pricing page to be more concise.

The AI assistant reads the document, proposes changes, and saves everything to a release in Prismic for you to review.

Publish a release

Prompt
Publish the release you just created for the homepage updates.

The AI assistant can’t unpublish or undo a publish. Ask for it explicitly after reviewing the staged changes. Your account needs a Publisher (Manager) role.

Review and clean up a release

Prompt
What does the spring campaign release change compared to the live site?
Prompt
Remove the pricing page from the spring campaign release.

The AI assistant asks you to confirm before it removes a document from a release or deletes a release that has changes. Published pages stay live. Your account needs a Publisher (Manager) role.

Manage assets

Prompt
Upload these product photos to my-website and tag them "spring-campaign".
Prompt
Add alt text and credits to the team photos in the asset library.

New alt text applies the next time an image is used. Pages that already use it keep their own alt text until you edit them.

Deactivate Prismic MCP

Repository Administrators and Owners can deactivate Prismic MCP in Settings > Prismic MCP. Prismic tools stop working on the repository immediately. If Prismic MCP doesn’t appear in your settings, ask an Administrator.

To turn it back on, click Activate in the same place.

Troubleshooting

Prismic MCP is not activated

If your AI assistant says Prismic MCP is not activated for a repository, it is off there. Ask a repository Administrator to turn it on, then try your request again.

Prismic MCP is activating

If your AI assistant says Prismic MCP is activating for a repository, Prismic is still preparing its content. Wait a few minutes, then try your request again.

The connector isn’t working

If the Prismic connector stops working — for example, tools fail with authentication errors, or it stops responding after working previously — and removing and re-adding it doesn’t fix the problem, your Prismic authentication session may be stuck. Your AI assistant reuses that session each time you reconnect, so the bad state persists.

To reset it:

Available tools

The MCP server exposes the following tools. Your AI assistant calls these automatically based on your prompts.

Discovery

ToolDescription
list_asset_tagsList the tags used in the asset library, with how many assets carry each.
list_custom_typesList all custom types (content models) in a repository with their id, label, and format.
list_document_versionsList every version of a document, including drafts, published, archived, and release versions.
list_localesList all locales configured in a repository.
list_releasesList all releases in a repository, newest first.
list_repositoriesList all Prismic repositories you have access to. Called first to discover available repositories.
list_shared_slicesList all shared slices in a repository with their variation names.

Read

ToolDescription
diff_documentsCompare two versions of a document, or two documents like the translations of a page, field by field.
diff_releaseList every document in a release and what it changes compared to the published content.
get_custom_typeFetch a custom type’s full field model and an empty content template for creating documents.
get_documentFetch a document’s metadata and full content. Supports reading from a specific version or release.
get_documentsFetch several documents at once, with their metadata and only the fields you need. Supports reading from a release.
get_field_shapesFetch an example of filled content for each field type, so content is written in the format Prismic expects.
get_shared_sliceFetch a shared slice’s full model with all variations and ready-to-use empty variation bodies.
list_content_checksList published pages with content gaps: missing SEO fields or share images, SEO text of the wrong length, missing translations, and broken links.
query_documentsFind every document that matches filters like custom type, locale, status, release, tags, dates, and field values. Returns all matches.
search_assetsSearch the asset library by keyword. A single query matches against filename, alt text, notes, and credits. Returns previews.
search_documentsSearch documents by keywords with optional filters for custom type, locale, status, and tags. Returns metadata, not full content.
suggest_next_stepsInternal. After a release is presented or published, shows the next-steps card with a few tasks to try next. Click one to start it. The card needs an assistant that supports MCP Apps, and uses app_track_next_step.

Write

ToolDescription
archive_documentsRemove a document’s changes from a release. Its published page stays live. A document that exists only in the release moves to Archived. Requires a Publisher (Manager) role.
create_documentCreate a new document inside a release. Missing fields are filled with model defaults.
create_releaseCreate a new empty release. Returns its id for use with create_document and update_documents.
delete_releasesDelete a release. Its changes move to Archived and published pages stay live. Requires a Publisher (Manager) role. Irreversible.
present_releasePresent a release for your review once your assistant has finished writing to it, with its documents and preview links. Does not publish it. In assistants that support MCP Apps, it also shows the release card, which uses app_get_release_publication and app_confirm_publish_release so you can publish with one click.
publish_releasePublish a pending release, making all of its documents live. Requires a Publisher (Manager) role. Irreversible.
replace_documentReplace a document’s entire content in a release. Fields left out are cleared.
submit_feedbackSend feedback about the Prismic MCP server to the Prismic team. Your assistant asks for your approval first.
update_asset_tagsAdd or remove tags on assets in the asset library.
update_assetsEdit the alt text, credits, or private notes of assets in the asset library.
update_documentDeprecated. Use update_documents, which edits one or more documents in a single call.
update_documentsEdit specific fields of one or more documents in a release. Content you don’t change is kept.
update_releaseRename a pending release. A scheduled release keeps its schedule.
upload_assetFetch an asset from a URL and upload it to the repository’s asset library. Returns the Prismic CDN url for use in documents.
upload_assetsUpload several assets from URLs to the asset library in one call, with optional alt text, credits, and tags.

Apps

Assistants that support MCP Apps, like Claude and ChatGPT, show interactive UI in the chat. The UI calls these tools, not your assistant. Other assistants show the same information as text.

ToolDescription
app_confirm_publish_releaseWrite. Publishes the release when you click Publish in the release card from present_release. Requires a Publisher (Manager) role.
app_get_release_publicationRead. Used internally with app_confirm_publish_release to show the release’s current state in the release card from present_release.
app_track_next_stepRead. Sends analytics about the next-steps card from suggest_next_steps: when it’s shown and which task you click. Changes nothing in your repository.
Was this page helpful?