All Guides
indexing
confluence
integrations
mcp

Turn Confluence into an AI Knowledge Base for Your Team

Make your Confluence wiki instantly queryable from Claude Code, Cursor, and Copilot — with incremental sync.

April 6, 2026

Turn Confluence into an AI Knowledge Base for Your Team

Confluence wikis accumulate years of runbooks, architecture decisions, and onboarding guides — but finding anything in them is a different story. Keyword search chokes on natural questions. Searching "how do we handle database migrations?" won't surface a page called "Release Pipeline Runbook," even if that page has exactly the answer you need.

Indexed makes your Confluence wiki semantically searchable from Claude Code, Cursor, or any MCP client. Index once, and your agent can pull real answers from your team's actual documentation instead of guessing.

Prerequisites

  • Indexed installed
  • A Confluence Cloud or Server/Data Center instance
  • An API token (Cloud) or personal access token (Server/DC)

Create a Confluence API token

  1. Go to https://id.atlassian.com/manage-profile/security/api-tokens
  2. Click Create API token
  3. Give it a label (e.g., "Indexed CLI")
  4. Copy the token

Add both the token and your Atlassian email to your environment:

.env
ATLASSIAN_TOKEN=your_token_here
ATLASSIAN_EMAIL=your-email@company.com

Keep tokens out of version control

Add .env to your .gitignore. Never commit API tokens to your repo.

Index your wiki

Use a CQL query to select which pages to index:

Terminal
indexed index create confluence \
  -c team-wiki \
  -u https://company.atlassian.net/wiki \
  -q "space = ENG AND type = page"

The CLI streams progress while it fetches pages and embeds chunks.

Verify it and run a quick test search:

Terminal
indexed index inspect team-wiki
indexed index search "database migration process" -c team-wiki

Hits are ranked per collection, and each result carries the page title plus an excerpt from the matched chunk. A question about the database migration process can come back with a schema-changes guide that tells you to take a backup first and an incident runbook that documents the rollback procedure — even though neither page uses those exact words in its title. That's the practical difference between semantic search and Confluence's built-in search.

Connect your AI agent

Use the standard stdio MCP entry (indexed + mcp + run). Step-by-step paths for Claude, Codex, Cursor, and Copilot are in MCP Setup.

Example: asking your agent

Once connected, your AI agent can pull answers straight from your Confluence wiki:

You: How do we handle database schema migrations?

Agent: Based on your team's Database Schema Changes Guide, the process is:

  1. Generate a migration script using the tool in infra/
  2. Back up the production database before running
  3. Run the migration in staging first
  4. If it fails in production, follow the rollback procedure in the DBA handbook

Grounded in your docs, not generic advice.

CQL, comments, automation, and troubleshooting

The Confluence connector doc is the canonical reference for CQL examples (avoid hard-coded “recent” dates in shared queries), --read-all-comments / --first-level-comments, cron (which indexed), and auth errors.

Next steps