Quick Start
-
Install ctk
Terminal window curl -fsSL https://raw.githubusercontent.com/zach-snell/ctk/main/install.sh | bash -
Authenticate
Terminal window ctk authEnter your Confluence domain, email, and API token when prompted.
-
Run your first command
Terminal window # List spacesctk spaces list# Search for pagesctk search "type=page AND space=DEV"# Get a specific pagectk pages get 12345678 -
Set up MCP
Add ctk to your MCP client config (e.g., Claude Desktop):
{"mcpServers": {"ctk": {"command": "/Users/you/.local/bin/ctk","args": ["mcp"],"env": {"CONFLUENCE_DOMAIN": "mycompany","CONFLUENCE_EMAIL": "user@example.com","CONFLUENCE_API_TOKEN": "ATATT3x..."}}}} -
Try an AI conversation
Once connected, your AI agent can interact with Confluence:
You: Find the architecture decision records in our DEV space
Agent: I’ll search for architecture-related pages in the DEV space. (calls manage_search with CQL
type=page AND space=DEV AND title~'ADR')I found 3 ADR pages. Let me get the content of the most recent one. (calls manage_pages with action
get)