Skip to content
managing-confluence logo

Managing Confluence

managing-confluence

Reads, creates, and updates Confluence pages via MCP. Use when working with wiki pages, documentation, knowledge bases, CQL searches, or page hierarchies in Confluence. For Jira issues, use managing-jira instead.

SKILL.md

Full skill instructions

Managing Confluence

Model Context Protocol server for Confluence pages, spaces, and content management.

Overview

The Atlassian MCP server provides 13 tools for Confluence operations through the Model Context Protocol. It automatically connects to your Confluence instance when properly configured.

Configuration

Required Setup

The MCP server requires API credentials in ~/​.atlassian-mcp.json:

{
  "domain": "your-domain.atlassian.net",
  "email": "[email protected]",
  "apiToken": "your-api-token-here"
}

Create an API token: https://id.atlassian.com/manage-profile/security/api-tokens

Set permissions:

chmod 600 ~/​.atlassian-mcp.json

Available Operations

Spaces

List Spaces:

  • View all accessible Confluence spaces
  • Supports pagination for large instances
  • Returns space keys, names, and types

Pages

Create Page:

  • Create new pages in any space
  • Set title, content (in Confluence storage format), and parent page
  • Supports both top-level and nested pages

Get Page:

  • Retrieve page content by ID or title
  • Returns full content including metadata
  • Access page properties and versions

Update Page:

  • Modify existing page content and title
  • Requires page ID and version number
  • Preserves page history

Delete Page:

  • Remove pages from Confluence
  • Requires page ID
  • Moves page to trash (can be restored)

List Child Pages:

  • Get all child pages of a parent page
  • Navigate page hierarchies
  • Returns page IDs and titles

Get Page Ancestors:

  • Retrieve full page ancestor chain
  • Navigate up the page tree
  • Useful for breadcrumb generation

Search

Search Content:

  • Use CQL (Confluence Query Language) for powerful searches
  • Search across pages, spaces, and content
  • Filter by type, space, label, and more

CQL Examples:

type=page and space=MYSPACE
title ~ "meeting notes" and created > now("-30d")
label = "documentation" and space in (SPACE1, SPACE2)

Comments

Create Comment:

  • Add comments to pages
  • Supports threaded discussions
  • Requires page ID

List Comments:

  • View all comments on a page
  • Returns comment content and authors
  • Includes nested replies

Labels

Add Label:

  • Tag pages with labels for organization
  • Supports multiple labels per page
  • Enables label-based search

Remove Label:

  • Delete labels from pages
  • Clean up outdated tags

List Labels:

  • View all labels on a page
  • Useful for content categorization

Users

Search Users:

  • Find users by name, email, or display name
  • Get user account IDs for permissions
  • Returns user profiles

Common Patterns

Creating a New Page

When creating a Confluence page, the MCP server will handle the operation through its available tools. Simply request the creation with the necessary details:

  • Space key: The Confluence space where the page should be created
  • Title: The page title
  • Content: Page content in Confluence storage format (can be HTML or Markdown-like)
  • Parent page ID (optional): For nested pages

Searching for Pages

Use CQL queries to find specific content:

  • Search by title: title ~ "keyword"
  • Search by space: space = SPACEKEY
  • Search by date: created > now("-7d")
  • Combine filters: type=page and space=DOCS and label="important"

Updating Existing Content

To update a page:

  1. First retrieve the page to get its current version
  2. Modify the content as needed
  3. Update the page with new content and incremented version number

Managing Page Hierarchies

Navigate page relationships:

  • List child pages to see what's under a parent
  • Get ancestors to understand page location in the space
  • Create nested pages by specifying a parent page ID

Important Notes

Content Format

Confluence uses storage format for page content:

  • HTML-like structure with Confluence-specific elements
  • Use <ac:structured-macro> for macros
  • Tables, images, and formatting use XHTML syntax

Permissions

  • MCP operations respect Confluence permissions
  • You can only access spaces and pages you have permission to view
  • Create/​update/​delete operations require appropriate permissions

Rate Limiting

  • Atlassian Cloud APIs have rate limits
  • Batch operations carefully to avoid throttling
  • The MCP server handles basic rate limiting

Integration with Work Logs

When documenting Confluence work in dev/​active/ logs:

  • Reference pages by URL and page ID
  • Note space keys for context
  • Include CQL queries used for search operations
  • Document any permission or access issues encountered

Troubleshooting

Authentication Errors

If you get authentication failures:

  1. Verify ~/​.atlassian-mcp.json exists and has correct format
  2. Check API token is valid (not expired)
  3. Confirm email matches your Atlassian account
  4. Ensure domain includes .atlassian.net

Permission Errors

If operations fail due to permissions:

  • Verify you have access to the space in Confluence web UI
  • Check if page restrictions are limiting access
  • Confirm your account has required permissions (view/​edit/​create)

Page Not Found

If pages can't be located:

  • Verify space key is correct (case-sensitive)
  • Check if page was deleted or moved
  • Try searching with CQL to locate the page

Differences from ACLI

Use Atlassian MCP for:

  • ✅ Confluence pages, spaces, and wiki content
  • ✅ CQL search queries
  • ✅ Page hierarchies and navigation
  • ✅ Confluence comments and labels

Use ACLI for:

  • ✅ Jira issues, work items, and tickets
  • ✅ Jira comments and transitions
  • ✅ JQL queries for Jira
  • ✅ Sprints, epics, and Jira-specific features

Resources

More Security skills

supabase logo
Security

supabase

Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...

2.7K 308.9K
View

Comprehensive guides and best practices for Neon Serverless Postgres, covering setup, connection methods, authentication, and platform APIs.

98 216.2K
View

Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.

462 163.8K
View

A skill to evaluate how secure Firestore security rules are. Use this when Firestore security rules are updated to ensure that the generated rules are extremely secure and robust.

462 127.7K
View

Official skill for integrating Firebase AI Logic (Gemini API) into web applications. Covers setup, multimodal inference, structured output, and security.

462 125.1K
View

Complete Better Auth server and client setup with database adapters, session management, plugins, and security configuration.

222 118.2K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View
cloudflare logo
Security

cloudflare

Complete Cloudflare platform integration with decision trees for compute, storage, AI, networking, security, and infrastructure-as-code.

3K 110.7K
View

Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.

253 103K
View
gws-gmail logo
Security

gws-gmail

Send, read, and manage Gmail messages, drafts, labels, and account settings.

31.2K 78.9K
View

Comprehensive website auditing across 230+ rules in 21 categories including SEO, performance, security, and accessibility.

94 72.3K
View
gws-shared logo
Security

gws-shared

Shared authentication, CLI syntax, and output formatting patterns for gws Google Workspace commands.

31.2K 63.4K
View

Security AI tools

StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
GeoSpy logo
Security

GeoSpy

GeoSpy: Pricing, Features, FAQs, and Alternatives for AI Teams

Free
View

Detect AI-generated voices to protect against audio fraud.

Paid
View

Ensure Your Content's Originality with AI Plagiarism Checker

Freemium
View
Img Upscaler logo
Security

Img Upscaler

Upscale images by 400% without quality loss

Freemium
View
AICheatCheck logo
Security

AICheatCheck

Accurately Detect AI-Generated Content with TheChecker.AI

Free
View
D
Security

Detect GPT

Chrome extension that detects and flags AI-generated content

Free
View