@prismicio/mcp-server

by prismicio

369 downloads
Not rated
GitHub

Description

# @prismicio/mcp-server [![npm version][npm-version-src]][npm-version-href] [![Github Actions CI][github-actions-ci-src]][github-actions-ci-href] [![License][license-src]][license-href] --- ## Getting started --- ### Prerequisites You need a code editor powered by AI that…

About

# @prismicio/mcp-server [![npm version][npm-version-src]][npm-version-href] [![Github Actions CI][github-actions-ci-src]][github-actions-ci-href] [![License][license-src]][license-href] --- ## Getting started --- ### Prerequisites You need a code editor powered by AI that supports MCP servers (Cursor, Windsurf, VS…

Details

Author
prismicio
Downloads
369
Categories
Cloud Service, Other

- 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

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name @prismicio/mcp-server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

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.

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.

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.

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.

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.

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.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

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

McpServers

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

[!IMPORTANT] This package is no longer recommended for building Prismic websites with AI. Follow the new Prismic CLI-based approach instead:Build with AI in Prismic.

For Prismic content management through MCP, use Prismic’s server-side MCP server:Prismic MCP documentation.

Prismic Model Context Protocol (MCP) Server.

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

To discover what's new on this package check outthe changelog. For full documentation, visit theofficial Prismic documentation.

Whether you're helping us fix bugs, improve the docs, or spread the word, we'd love to have you as part of the Prismic developer community!

Asking a question:Open a new topicon our community forum explaining what you want to achieve / your question. Our support team will get back to you shortly.

Reporting a bug:Open an issueexplaining your application's setup and the bug you're encountering.

Suggesting an improvement:Open an issueexplaining your improvement or feature so we can discuss and learn more.

Submitting code changes: For small fixes, feel free toopen a pull requestwith a description of your changes. For large changes, please firstopen an issueso we can discuss if and how the changes should be implemented.

For more clarity on this project and its structure you can also check out the detailedCONTRIBUTING.mddocument.

Copyright 2013-2025 Prismic <contact@prismic.io> (https://prismic.io) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Publish complete websites directly from any AI client via API — no hosting setup, CMS, or configuration required.

An MCP server for interacting with WordPress sites via the REST API, allowing you to manage posts, pages, and media.

Interact with ApostropheCMS, a Node.js-based content management system, to manage content snippets.

An MCP server for the Ghost blogging platform with Server-Sent Events (SSE) transport support.

Read and edit HTML/Markdown tables in GitBook-synced documents via MCP tools.

A WordPress plugin that transforms a WordPress site into an MCP server, allowing direct access to its content.

Interact with Webflow APIs to list and edit your site and CMS data.

Interact with Contentstack's Content Management API to manage your CMS content.

Interact with and manage your Ghost CMS blog, including posts, users, and members, through an LLM interface.

Integrate Hygraph directly into MCP-compatible tools like Claude and Cursor, executing content operations via natural language

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.