• DATA
  • MAPPING
  • DEV
  • HUMAN

How to fetch document JSON with your AI client

Connect Prismic to your AI client once. After that, you can pull specific document data straight into your development environment.

Ask AI about this page

Short answer

How can I get Prismic document JSON through my AI?

Give your AI a Prismic document ID. It uses that ID to grab the full JSON payload, giving you the exact slice and component data you need for your project. You'll get the raw structure ready for mapping.

The results

Where your data lands

The AI handles the heavy lifting of data retrieval so you can focus on the code.

DATA

Raw JSON payloads

The AI pulls the complete JSON object for a specific document. You get every field, slice, and metadata property exactly as it lives in Prismic.

MAPPING

Component structure maps

Your AI analyzes the JSON to identify how slices and components are nested. This makes it easy to build your frontend components based on real data.

DEV

Direct dev access

Instead of manual exports, your AI brings the data to your chat or IDE. You can move from a question to a code snippet in seconds.

HUMAN

Manual schema updates

The AI cannot change your Prismic content models. You still need to manage your Prismic repository settings and field definitions yourself.

The workflow

What your AI does when the request arrives.

The AI acts as the bridge between your chat interface and the Prismic API.

  1. Identify the target

    Your AI looks at your request to find the specific Prismic document ID you want to inspect.

    get_document_by_id
  2. Fetch the payload

    The AI calls the Prismic API to grab the full, unformatted JSON for that document.

    get_document_by_id
  3. Parse the structure

    The AI reads through the slices and fields to understand the document's hierarchy.

    get_document_by_id
  4. Deliver the data

    The AI presents the JSON or a structured summary of the component data in your chat.

    get_document_by_id

Try it

Copy these to start.

Use these prompts to trigger the data retrieval immediately.

Starting points

Swap out the document IDs and repository names with your actual Prismic details.

Prismic Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_jK6sO72lQezxjBKP0hCujVjdqiy2aRnElcL2Nsu8/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Prismic capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "prismic-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_jK6sO72lQezxjBKP0hCujVjdqiy2aRnElcL2Nsu8/mcp"
    }
  }
}
Copy into chat04
  • Get the JSON for Prismic document ID 12345.

  • Fetch the raw data for the 'homepage' document in my Prismic repo.

  • Show me the slice structure for document ID abc-789.

  • Pull the JSON payload for this specific Prismic document so I can map the components.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Prismic once, then ask.

Click the link to connect your Prismic account. Your credentials stay encrypted, and you can start asking for data immediately.

Connect Prismic to your AI

FAQ

How this task behaves

  • 01

    Can the AI edit my Prismic documents?

    No. This connector only has permission to read document data. It cannot create, update, or delete anything in your Prismic repository.

  • 02

    Do I need to provide the document ID every time?

    Yes. To fetch a specific document, the AI needs the unique ID to target the correct JSON payload.

  • 03

    Can the AI see all my documents at once?

    No. The AI fetches data on a per-document basis using the specific ID you provide.

  • 04

    Will this work with my existing Prismic slices?

    Yes. The AI retrieves the exact JSON structure of your slices, allowing you to see how they are organized.

  • 05

    Can the AI change my Prismic content models?

    No. The AI is strictly a read-only tool for fetching document data.

  • More questions about Prismic? See everything the Prismic Connector can do

Connect Prismic to Claude, Cursor, ChatGPT & more