Skip to content

MCP Overview

ctk implements the Model Context Protocol over stdio. When you run ctk mcp, it starts a server that AI agents can call to interact with Confluence Cloud.

Terminal window
ctk mcp

The server reads credentials from environment variables or stored credentials (same as the CLI).

Write operations are disabled by default. When writes are disabled, tools like manage_pages only expose read actions (get, list, get_children, etc.). Create, update, delete, and move actions return an error.

To enable writes:

Terminal window
CTK_ENABLE_WRITES=true ctk mcp

The tool descriptions dynamically reflect which actions are available based on the CTK_ENABLE_WRITES setting.

You can disable specific tools with the CTK_DISABLED_TOOLS environment variable:

Terminal window
CTK_DISABLED_TOOLS="manage_comments,manage_attachments" ctk mcp

ctk registers 8 multiplexed tools. Each tool accepts an action parameter that determines the operation.