MCP.so
Sign In

@prismicio/mcp-server

@prismicio

About @prismicio/mcp-server

No overview available yet

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "Prismic MCP": {
      "command": "npx",
      "args": [
        "-y",
        "@prismicio/mcp-server"
      ]
    }
  }
}

Tools

5

PURPOSE: Provide detailed, opinionated guidance to create or update Prismic slice model files using modern best practices, including naming, file placement, allowed fields, shapes, and configuration. USAGE: Use FIRST for any Prismic slice creation or modeling request. Do not use for component or mock implementation. Input Type Selection Rules: - If the user attaches an image, include "image". - If the user attaches code, include "code". - Include "text" ONLY if the prompt contains model-related information (e.g., explicitly describes desired fields/structure, adds nuance, or overrides what is seen in the code/image). - It is acceptable to include multiple input types when each adds model-relevant signal per the rules above. RETURNS: Step-by-step modeling instructions, naming conventions, final Prismic model shapes, comprehensive field shape reference, opinionated modeling guidance, validation and testing steps.

PURPOSE: Generate a model-valid slice mock (mocks.json) and provide guidance for text-only refinements. USAGE: Use when creating or updating slice mocks. RETURNS: A JSON mock covering all variations, plus guidance for text-only refinements.

PURPOSE: Provides slice and field implementation guidance for Prismic slice components. USAGE: Use FIRST when working with any Prismic slice component or field implementation. RETURNS: Prismic Framework-specific field documentation and code examples.

PURPOSE: Creates or updates a Prismic slice model and/or mocks in your project with given valid data, performing local changes to the slice library. USAGE: Use to validate and create/update slice data (model and/or mocks). RETURNS: Success confirmation or detailed validation errors if the data is invalid.

PURPOSE: Adds a slice to a custom type. USAGE: Required path for modifying Prismic slice registrations. Adds/registers/attaches a slice to a custom type and regenerates types. Do not edit custom type JSON files manually; this tool performs validation and follow-up steps. RETURNS: A message indicating whether the slice was added to the type or not, and detailed error messages if it is not.

Overview

What is @prismicio/mcp-server?

It is an MCP server that integrates Prismic, a headless CMS, with AI-powered code editors such as Cursor, Windsurf, and VS Code. It allows developers to code Prismic slices and implement custom fields using natural language prompts.

How to use @prismicio/mcp-server?

Add the server to your editor’s MCP configuration with the command npx -y @prismicio/mcp-server. For best results, select the claude-3.7-sonnet model. Then open any slice file and ask your AI assistant to “Code this Slice” or request help with specific field implementations like ImageField or RichTextField.

Key features of @prismicio/mcp-server

  • Code Prismic slices with natural language prompts
  • Implement custom fields like ImageField and RichTextField
  • Works with Cursor, Windsurf, VS Code, and more
  • Uses npx for easy setup without global install
  • Optimized for claude-3.7-sonnet model

Use cases of @prismicio/mcp-server

  • Quickly generate Prismic slice code inside an AI-powered code editor
  • Get help implementing specific Prismic fields like ImageField or RichTextField
  • Accelerate development of Prismic components by using natural language queries
  • Debug MCP server setup issues using Cursor’s output logs

FAQ from @prismicio/mcp-server

How to solve “Client closed” with “

Comments

Basic information

Category

Other

License

Apache-2.0 license

Transports

stdio

Author

prismicio

More Other MCP servers