Feedback

@prismicio/mcp-server

@prismicio Claim

Basic information

Runtime
node
Category
License
Apache-2.0 license
Transports
stdio
Author
prismicio
Submitted by
Community
Quality
10
Stars
5

About @prismicio/mcp-server

# @prismicio/mcp-server

@prismicio/mcp-server is a MCP server in the Other category listed in the AddMCP.net directory, published by prismicio. It exposes 5 tools, including how_to_model_slice, how_to_mock_slice, how_to_code_slice, save_slice_data and more. Supported transport: stdio. Runtime: node. License: Apache-2.0 license. The repository has 5 GitHub stars. Source code is hosted on github.com. Related topics: code-assistant, javascript, mcp-server, prismic, typescript.

Setup

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

@prismicio/mcp-server config

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

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

@prismicio/mcp-server tools

  • how_to_model_slice — 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.
    sliceMachineConfigAbsolutePath:string*, sliceName:string*, isNewSlice:boolean*, contentRequirements:string*, inputTypes:array*
  • how_to_mock_slice — 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.
    sliceMachineConfigAbsolutePath:string*, sliceDirectoryAbsolutePath:string*, userIntent:string*
  • how_to_code_slice — 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.
    sliceMachineConfigAbsolutePath:string*, projectFramework:string*, stylingSystem:string*, modelAbsolutePath:string*, fieldsUsed:array*
  • save_slice_data — 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.
    sliceMachineConfigAbsolutePath:string*, sliceAbsolutePath:string*, data:object*
  • add_slice_to_custom_type — 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.
    sliceMachineConfigAbsolutePath:string*, sliceDirectoryAbsolutePath:string*, customTypeDirectoryAbsolutePath:string*

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

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬