Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PRISMIC_MCP_HOSTNoThe host to bind for HTTP/streamable-http mode.127.0.0.1
PRISMIC_MCP_PATHNoThe URL path for streamable HTTP mode./mcp
PRISMIC_MCP_PORTNoThe port to bind for HTTP/streamable-http mode.8000
PRISMIC_LOG_LEVELNoStandard Python logging level (DEBUG, INFO, WARNING, ERROR).INFO
PRISMIC_REPOSITORYYesPrismic repository name. Required for most read/write tools to derive API URLs.
PRISMIC_UPLOAD_ROOTNoRequired for prismic_add_media. This is an absolute filesystem path that defines the allowed directory for file uploads.
PRISMIC_DISABLE_RAW_QNoWhen 'true', rejects raw 'q' predicates in document queries for safety.false
PRISMIC_MCP_TRANSPORTNoTransport mode: 'stdio', 'http', or 'streamable-http'.stdio
PRISMIC_MAX_BATCH_SIZENoMaximum documents allowed in prismic_upsert_documents batch operations.50
PRISMIC_WRITE_API_TOKENNoRequired for Custom Types API tools, media tools, and Migration API write tools.
PRISMIC_DOCUMENT_API_URLNoOptional override for the Content API base URL. Derived from PRISMIC_REPOSITORY if not provided.
PRISMIC_CONTENT_API_TOKENNoOptional API token for private repositories or reading non-master (preview/release) refs.
PRISMIC_ASSET_API_BASE_URLNoOptional override for the Asset API base URL.https://asset-api.prismic.io
PRISMIC_RETRY_MAX_ATTEMPTSNoMaximum attempts for transient write failures (429, 503, 504).5
PRISMIC_WRITE_TYPE_ALLOWLISTNoComma-separated list of allowed custom types for writes.
PRISMIC_MIGRATION_API_BASE_URLNoOptional override for the Migration API base URL.https://migration.prismic.io
PRISMIC_CUSTOM_TYPES_API_BASE_URLNoOptional override for the Custom Types API base URL.https://customtypes.prismic.io
PRISMIC_ENFORCE_TRUSTED_ENDPOINTSNoIf 'true', startup fails if endpoint overrides point to non-*.prismic.io hosts.false
PRISMIC_MIGRATION_MIN_INTERVAL_SECONDSNoMinimum spacing between write requests to Prismic.2.5

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
prismic_get_repository_context

Get active repository context for this MCP server.

Returns repository and API base URL metadata (no secrets) so agents can identify which Prismic repository they are operating on. Recommended first call in a session to confirm repository and auth posture before running read/write workflows.

prismic_get_refs

Get repository refs from Content API root.

Refs are repository-level version pointers (for example master, preview, or release refs), not per-document refs. Use returned ref values with prismic_get_documents or prismic_get_document to read content for that version pointer. Efficiency tip: call once, cache the chosen ref, and pass it explicitly to subsequent read calls to avoid per-call implicit master-ref resolution.

prismic_get_types

Get repository custom types from Content API root.

Returns content type metadata from the Content API types map as normalized entries with id and label. Typical sequencing: call once, then iterate type ids with prismic_get_documents(type=..., page_size=1) when you only need counts or existence checks.

prismic_get_releases

Get release refs from Content API root.

Returns non-master refs only, equivalent to filtering repository refs by isMasterRef != true. Use these refs with read tools (ref parameter) to inspect release content through Content API. Note: querying documents with a release ref returns a content snapshot at that ref, not only the release "planned items" shown in Prismic UI. Efficiency tip: pick the release ref once and reuse it across all read queries in the same analysis.

prismic_get_custom_types

List full Custom Type models from Prismic Custom Types API.

Uses GET /customtypes on https://customtypes.prismic.io (override via PRISMIC_CUSTOM_TYPES_API_BASE_URL). Requires:

  • PRISMIC_REPOSITORY

  • PRISMIC_WRITE_API_TOKEN

prismic_get_custom_type

Get one Custom Type model and schema summary by ID.

Uses GET /customtypes/{id}. When include_schema_summary=true, returns:

  • tab/field breakdown

  • field config for each field

  • required flags where present in field config

  • shared slice choices configured inside Slices fields

This is the recommended verification call after create/update operations.

prismic_insert_custom_type

Insert a new Custom Type model.

Uses POST /customtypes/insert. Pass a full Custom Type JSON model (including id, label, repeatable, and json tabs/fields).

prismic_update_custom_type

Update an existing Custom Type model.

Uses POST /customtypes/update. Pass the full updated Custom Type JSON model. Typical sequence:

  1. prismic_get_custom_type

  2. edit model JSON

  3. prismic_update_custom_type

  4. prismic_get_custom_type to verify schema

prismic_get_shared_slices

List all Shared Slice models from Prismic Custom Types API.

Uses GET /slices.

prismic_get_shared_slice

Get one Shared Slice model by ID.

Uses GET /slices/{id}.

prismic_insert_shared_slice

Insert a new Shared Slice model.

Uses POST /slices/insert. Pass a full Shared Slice JSON model.

prismic_update_shared_slice

Update an existing Shared Slice model.

Uses POST /slices/update. Pass the full updated Shared Slice JSON model.

prismic_get_documents

List documents with optional Prismic predicate filtering.

Use ref to read from an explicit Prismic content ref (for example preview/draft refs). When omitted, master ref is used. Depending on repository API visibility settings, reading non-master refs may require PRISMIC_CONTENT_API_TOKEN. Use q for explicit Content API predicates (for example [[at(document.tags,"news")]]). type is a convenience shortcut for [[at(document.type,"<type>")]] and is merged into q. Use orderings for native Content API sort clauses (for example [document.first_publication_date desc]). Use routes for Content API route resolvers to populate the url field (for example [{"type":"page","path":"/:uid"}]). Note: there is no documented Content API q predicate for "published status". A release ref query returns a version snapshot, not only release-delta documents. Efficiency tips:

  • For large scans: call prismic_get_refs once and pass ref explicitly.

  • For counts/existence checks: set page_size=1 and read total_results.

  • Only pass routes when you need populated url fields.

  • Paginate with page + next_page for full exports. Codex js_repl tip: codex.tool(...) wraps tool output; read payload from result.Ok.structuredContent.

prismic_get_document

Get one document by id or by type+uid with optional explicit ref.

Use ref to read a specific preview/release version pointer. Depending on repository API visibility settings, non-master refs may require PRISMIC_CONTENT_API_TOKEN. The document payload has no explicit status field (for example published/draft/in-release). To determine publish state on master, use this sequence:

  1. Call prismic_get_refs and capture the master ref.

  2. Call prismic_get_document(..., ref=<master_ref>).

  3. Call prismic_get_document(..., ref=<release_ref>) as needed.

  4. Interpret results:

    • exists on master: published on master

    • missing on master but exists on release ref: not published on master (release-only content) Prefer this over prismic_get_documents when you already have an exact id or type+uid target.

prismic_get_media

List media assets from Prismic Asset API.

This maps directly to GET /assets query parameters: assetType, limit, cursor, and keyword. Requires PRISMIC_REPOSITORY and PRISMIC_WRITE_API_TOKEN.

prismic_add_media

Upload media via Prismic Asset API.

Uploads file_path using multipart/form-data to POST /assets. Optional metadata maps to Asset API fields: notes, credits, alt. Requires PRISMIC_REPOSITORY and PRISMIC_WRITE_API_TOKEN. Security: PRISMIC_UPLOAD_ROOT must be set; upload paths must resolve within that directory (traversal and symlink escapes are blocked).

prismic_upsert_document

Create/update one document in the Prismic Migration API.

Important behavior:

  • This writes to the Migration workflow (Migration UI/release flow).

  • New/updated documents may not be visible via Content API master reads immediately (or at all) until they are included in the readable release flow/published in Prismic.

  • To read back migrated content before publish, fetch a release ref via prismic_get_releases/prismic_get_refs, then query read tools with that ref (and provide PRISMIC_CONTENT_API_TOKEN when required).

  • Use dry_run=true to validate payload/endpoint choice without writing.

prismic_upsert_documents

Batch create/update documents in the Prismic Migration API.

Important behavior:

  • This writes to the Migration workflow (Migration UI/release flow).

  • Batch-created/updated documents may not be visible via Content API master reads until release/publish workflow makes them readable.

  • For read-back before publish, use a release ref with read tools (ref parameter), plus PRISMIC_CONTENT_API_TOKEN if repo settings require authenticated reads.

  • Supports dry_run and fail_fast for safer execution.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rahulpowar/prismic-content-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server