Skip to main content

Confluence Data Center MCP

Typed Python MCP server for Confluence Data Center raw storage operations.

Requirements

  • Python 3.11+
  • uv
  • Confluence Data Center REST API access
  • Either a Confluence Personal Access Token or username/password auth

Setup

uv sync
cp .env.example .env

Set the values in .env, then run:

set -a
source .env
set +a
uv run confluence-dc-mcp

Run with uvx

After the package is published, it can be run without cloning the repository:

CONFLUENCE_BASE_URL="https://confluence.example.com" \
CONFLUENCE_PAT="replace-with-token" \
uvx confluence-dc-mcp

Or with username/password authentication:

CONFLUENCE_BASE_URL="https://confluence.example.com" \
CONFLUENCE_USERNAME="alice" \
CONFLUENCE_PASSWORD="replace-with-password" \
uvx confluence-dc-mcp

For an MCP client using uvx with a Personal Access Token:

{
  "mcpServers": {
    "confluence-data-center": {
      "command": "uvx",
      "args": ["confluence-dc-mcp"],
      "env": {
        "CONFLUENCE_BASE_URL": "https://confluence.example.com",
        "CONFLUENCE_PAT": "replace-with-token"
      }
    }
  }
}

For an MCP client using uvx with username/password authentication:

{
  "mcpServers": {
    "confluence-data-center": {
      "command": "uvx",
      "args": ["confluence-dc-mcp"],
      "env": {
        "CONFLUENCE_BASE_URL": "https://confluence.example.com",
        "CONFLUENCE_USERNAME": "alice",
        "CONFLUENCE_PASSWORD": "replace-with-password"
      }
    }
  }
}

For MCP clients that pass environment variables directly, use:

{
  "mcpServers": {
    "confluence-data-center": {
      "command": "uv",
      "args": [
        "--directory",
        "/Users/mikhail/Projects/mcp-atlassian-confluence-raw-storage",
        "run",
        "confluence-dc-mcp"
      ],
      "env": {
        "CONFLUENCE_BASE_URL": "https://confluence.example.com",
        "CONFLUENCE_PAT": "replace-with-token"
      }
    }
  }
}

Environment

CONFLUENCE_BASE_URL is required and must be the root Confluence URL.

Use one authentication mode:

  • CONFLUENCE_PAT
  • CONFLUENCE_USERNAME and CONFLUENCE_PASSWORD

Optional settings:

  • CONFLUENCE_VERIFY_SSL, defaults to true
  • CONFLUENCE_TIMEOUT_SECONDS, defaults to 30

Tools

  • health_check: validates server configuration.
  • search_pages: searches content with CQL and returns page summaries.
  • get_page_storage: returns raw storage-format XHTML for a content ID.
  • get_page_storage_by_title: returns raw storage-format XHTML for a unique page title in a space.
  • get_page_children: returns direct child page summaries for a content ID.
  • get_page_history: returns page version history entries for a content ID.
  • create_page: creates a page from raw storage-format XHTML.
  • move_page: moves a page before, after, or under a target page.
  • get_comments: returns page comments with storage-format bodies.
  • add_comment: adds a storage-format comment to a page.
  • reply_to_comment: replies to an existing comment with storage-format XHTML.
  • get_labels: returns labels for a content ID.
  • add_label: adds a label to a content ID.
  • search_user: searches Confluence users through CQL-backed site search.
  • get_attachment_list: returns attachment metadata for a page content ID.
  • download_attachment: downloads an attachment as an embedded MCP resource for LLM analysis.
  • upload_attachment: uploads a local file as a page attachment.
  • upload_attachments: uploads multiple local files as page attachments.
  • download_attachment_to_file: downloads an attachment to a local file path.
  • get_page_images: downloads image attachments from a page as embedded MCP resources.
  • update_page_storage: replaces raw storage-format XHTML and increments the Confluence version.

Development

uv run ruff check .
uv run mypy
uv run pytest
uv build

CI and Release

GitHub Actions run linting, strict type checking, tests, and package build on push and pull requests.

Publishing runs when a GitHub Release is published. The workflow uses PyPI Trusted Publishing, so configure a PyPI trusted publisher for this repository with:

  • workflow: publish.yml
  • environment: pypi
  • package name: confluence-dc-mcp

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

confluence_dc_mcp-0.5.0.tar.gz (74.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

confluence_dc_mcp-0.5.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file confluence_dc_mcp-0.5.0.tar.gz.

File metadata

  • Download URL: confluence_dc_mcp-0.5.0.tar.gz
  • Upload date:
  • Size: 74.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for confluence_dc_mcp-0.5.0.tar.gz
Algorithm Hash digest
SHA256 50ccf3252da57b3cc7cb519f01e81ec8cea746324bbbfabd3dd6949cf24434af
MD5 7eafec2a5c25743ea1c4b4d2ecb986ee
BLAKE2b-256 13c1394b0e8a013a3e89503d5530934cc115974e462bd9722b18b5f1ba76c2da

See more details on using hashes here.

Provenance

The following attestation bundles were made for confluence_dc_mcp-0.5.0.tar.gz:

Publisher: publish.yml on mishannn/confluence-dc-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file confluence_dc_mcp-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for confluence_dc_mcp-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 085f11a609922f27c308b6f618eec20b39a268ea80568762378ed63c2892dca2
MD5 1dcdfd449745be74c1a008be5ab129ba
BLAKE2b-256 ab3dccf00d17f8fada9e6f1abe7c2f9e4263c2caa8c10642b3a87dcc89a33c0d

See more details on using hashes here.

Provenance

The following attestation bundles were made for confluence_dc_mcp-0.5.0-py3-none-any.whl:

Publisher: publish.yml on mishannn/confluence-dc-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.0.0

2 files

This release

0.5.0 This release

2 files

0.4.0

2 files

0.2.3

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page