KosmoKrator

other

Prismic MCP Integration for LangGraph

Connect Prismic to LangGraph through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 7 read 0 write Bearer token auth

Connect Prismic to LangGraph

Run KosmoKrator integration calls from LangGraph nodes while preserving local credentials and permissions.

Use a graph node that calls the KosmoKrator CLI for deterministic steps or an MCP client for dynamic tool selection. The gateway is local, scoped to this integration, and starts with --write=deny so LangGraph can inspect read-capable tools without receiving write access by default.

Prismic MCP Config for LangGraph

Headless CLI calls fit repeatable graph edges; MCP fits exploratory agent nodes.

{
  "mcpServers": {
    "kosmokrator-prismic": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=prismic",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=prismic --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Prismic instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Prismic Tools Visible to LangGraph

LangGraph sees stable MCP tool names generated from the Prismic integration catalog.

MCP toolSource functionTypeDescription
integration__prismic__prismic_list_documents prismic.prismic_list_documents Read Search and list documents from the Prismic repository. Supports filtering with Prismic query predicates, pagination, ordering, and language selection.
integration__prismic__prismic_get_document prismic.prismic_get_document Read Retrieve a single document from the Prismic repository by its unique document ID.
integration__prismic__prismic_list_types prismic.prismic_list_types Read List all custom types defined in the Prismic repository. Returns type IDs and names that can be used for document queries.
integration__prismic__prismic_get_tags prismic.prismic_get_tags Read List all tags defined in the Prismic repository. Tags can be used to filter documents in search queries.
integration__prismic__prismic_list_refs prismic.prismic_list_refs Read List all refs (releases and drafts) for the Prismic repository. The master ref points to the published content; other refs point to drafts or releases in progress.
integration__prismic__prismic_list_languages prismic.prismic_list_languages Read List all languages configured in the Prismic repository. Returns language codes and names that can be used for querying content in specific locales.
integration__prismic__prismic_get_current_user prismic.prismic_get_current_user Read Verify the Prismic API connection is working by performing a minimal document search. Returns connection status and repository information.

Related Prismic Pages