loading…
Search for a command to run...
loading…
Confluence CLI & MCP Server — dual-mode Go binary for Confluence Cloud with 7 tools, folder CRUD, page diff, and write gating.
Confluence CLI & MCP Server — dual-mode Go binary for Confluence Cloud with 7 tools, folder CRUD, page diff, and write gating.
CI Go Report Card Documentation License
The most comprehensive dedicated Confluence MCP server in the open-source ecosystem. A dual-mode Go binary that works as both a rich CLI tool and an MCP server for AI agents.
8 MCP tools · Full CLI · Write gating · Single binary · Zero dependencies
| ctk | mcp-atlassian (Python) | |
|---|---|---|
| Language | Go (single ~15MB binary) | Python (pip install + deps) |
| Confluence tools | 8 dedicated tools | ~30 mixed Jira+Confluence |
| Startup | ~50ms | ~2s |
| Folder support | Full CRUD | None |
| Page diff | LCS-based unified diff | None |
| Space create | Yes (V1 stable API) | None |
| Write gating | CTK_ENABLE_WRITES env var |
None |
| Auth | Classic + scoped tokens | Classic only |
CTK_ENABLE_WRITES=true, safe read-only defaults# From source
git clone https://github.com/zach-snell/ctk.git && cd ctk
./install.sh # builds and copies to ~/.local/bin
# Or build manually
go build -o ctk ./cmd/ctk
Pre-built binaries available on the Releases page.
# Authenticate
ctk auth
# List spaces
ctk spaces list
# Get a page
ctk pages get 12345
# Search with CQL
ctk search --cql "type = page AND space = DEV AND title ~ 'architecture'"
# Create a page (writes enabled)
ctk pages create --space-id 12345 --title "My Page" --body "# Hello World"
ctk auth Authenticate with Confluence Cloud
ctk spaces List, get, create spaces
ctk pages Page CRUD, versions, diff, move
ctk folders Folder CRUD, children
ctk search CQL and quick text search
{
"mcpServers": {
"confluence": {
"command": "/path/to/ctk",
"args": ["mcp"],
"env": {
"CONFLUENCE_DOMAIN": "your-domain",
"CONFLUENCE_EMAIL": "[email protected]",
"CONFLUENCE_API_TOKEN": "your-api-token",
"CTK_ENABLE_WRITES": "true"
}
}
}
}
ctk mcp --port 8080
| Variable | Description | Required |
|---|---|---|
CONFLUENCE_DOMAIN |
Atlassian domain (e.g., acme for acme.atlassian.net) |
Yes |
CONFLUENCE_EMAIL |
Email for the API token | Yes |
CONFLUENCE_API_TOKEN |
Atlassian API token | Yes |
CONFLUENCE_TOKEN_TYPE |
classic or scoped (auto-detected if omitted) |
No |
CTK_ENABLE_WRITES |
Set to true to enable mutation tools |
No |
CTK_DISABLED_TOOLS |
Comma-separated tool names to hide | No |
| Tool | Actions |
|---|---|
manage_spaces |
list, get, get_by_key, create |
manage_pages |
get, get_by_title, list, get_children, get_ancestors, list_versions, diff, create, update, delete, move |
manage_search |
cql, quick |
manage_labels |
list, add, remove |
manage_folders |
list, get, get_children, create, update, delete |
manage_comments |
list_footer, list_inline, get_replies, add_footer, reply |
manage_attachments |
list, download, upload, delete |
manage_users |
get_current, search |
Three-layer safety model:
CTK_ENABLE_WRITES=true (read-only by default)CTK_DISABLED_TOOLS="manage_folders,manage_labels"go test -race ./... # Run tests
golangci-lint run ./... # Lint
go build -o ctk ./cmd/ctk # Build
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"ctk": {
"command": "npx",
"args": []
}
}
}