MCP server providing Confluence Server/Data Center integration: page management, search, spaces, and more.
Project description
www-confluence-mcp
MCP (Model Context Protocol) server providing Confluence Server/Data Center integration — page management, search, spaces, comments, labels, attachments, and more.
Gives AI assistants (Qoder, Claude Desktop, Cursor, etc.) the ability to read and write Confluence content through a single MCP server with 25 tools.
Note: This server targets Confluence Server/Data Center only (v1 REST API). Confluence Cloud is not supported.
System Requirements
| Requirement | Version |
|---|---|
| uv | Install guide |
| Python | 3.10+ (managed automatically by uv) |
| Confluence | Server 5.6+ / Data Center 6.0+ |
Install uv
macOS / Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
Windows (PowerShell):
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
macOS (Homebrew):
brew install uv
Installation
Option 1: Run directly with uvx (recommended)
No clone needed. Runs from PyPI. Updates automatically on each run:
uvx www-confluence-mcp
MCP client config:
{
"mcpServers": {
"www-confluence-mcp": {
"command": "uvx",
"args": ["www-confluence-mcp"],
"env": {
"CONFLUENCE_URL": "https://confluence.example.com",
"CONFLUENCE_PERSONAL_TOKEN": "your-pat-here"
}
}
}
}
Option 2: Install as a uv tool
# From PyPI
uv tool install www-confluence-mcp
# After installation, the command is available globally:
www-confluence-mcp
To update or reinstall:
uv tool upgrade www-confluence-mcp
# or force reinstall latest:
uv tool install --force www-confluence-mcp@latest
Option 3: Run from local source (for development)
git clone https://github.com/naifs/www-confluence-mcp.git
cd www-confluence-mcp
uv sync
uv run www-confluence-mcp
To update:
git pull && uv sync
MCP client config (local source):
{
"mcpServers": {
"www-confluence-mcp": {
"command": "uv",
"args": [
"run",
"--project",
"/absolute/path/to/www-confluence-mcp",
"www-confluence-mcp"
],
"env": {
"CONFLUENCE_URL": "https://confluence.example.com",
"CONFLUENCE_PERSONAL_TOKEN": "your-pat-here"
}
}
}
}
Option 4: Install from built wheel
cd /path/to/www-confluence-mcp
uv build
uv tool install dist/*.whl
Authentication
The server supports two authentication methods for Confluence Server/Data Center:
| Method | Environment Variables |
|---|---|
| Personal Access Token (PAT) (recommended) | CONFLUENCE_PERSONAL_TOKEN |
| Basic Auth (username + password) | CONFLUENCE_USERNAME + CONFLUENCE_PASSWORD |
PAT takes priority if both are configured. CONFLUENCE_API_TOKEN is accepted as a legacy fallback for CONFLUENCE_PASSWORD.
Environment Variables
| Variable | Description | Default |
|---|---|---|
CONFLUENCE_URL |
Confluence Server/DC base URL (required) | — |
CONFLUENCE_PERSONAL_TOKEN |
Personal Access Token for PAT auth | — |
CONFLUENCE_USERNAME |
Username for Basic auth | — |
CONFLUENCE_PASSWORD |
Password for Basic auth | — |
CONFLUENCE_SSL_VERIFY |
Verify SSL certificates | true |
CONFLUENCE_TIMEOUT |
HTTP request timeout in seconds | 30 |
CONFLUENCE_MAX_RESULTS |
Default max results per query (1..100) | 25 |
CONFLUENCE_READ_ONLY |
Disable write tools (true/false) |
true |
CONFLUENCE_SPACES_FILTER |
Comma-separated space keys to filter searches | — |
CONFLUENCE_HTTP_PROXY |
HTTP proxy URL | — |
CONFLUENCE_HTTPS_PROXY |
HTTPS proxy URL | — |
CONFLUENCE_DEBUG |
Enable debug logging (1/true/yes/on) |
false |
Provided Tools
Read Tools (15)
confluence_search— Search content by text or CQL queryconfluence_get_page— Get page by ID, title+space_key, or URLconfluence_get_page_children— Get child pagesconfluence_get_page_ancestors— Get ancestor pages (breadcrumb)confluence_get_spaces— List spacesconfluence_get_space— Get space by keyconfluence_get_pages_in_space— List pages in a spaceconfluence_get_comments— Get page commentsconfluence_get_labels— Get page labelsconfluence_get_attachments— List page attachmentsconfluence_download_attachment— Download a single attachmentconfluence_download_content_attachments— Download all attachmentsconfluence_get_page_history— Get page version historyconfluence_get_space_page_tree— Get space page hierarchyconfluence_get_page_images— Get page images as base64confluence_search_user— Search for users
Write Tools (10) — only when CONFLUENCE_READ_ONLY=false
confluence_create_page— Create a new pageconfluence_update_page— Update an existing pageconfluence_delete_page— Delete a pageconfluence_move_page— Move page to another space/parentconfluence_add_comment— Add a commentconfluence_reply_to_comment— Reply to a commentconfluence_add_labels— Add labels to a pageconfluence_delete_label— Remove a labelconfluence_upload_attachment— Upload a fileconfluence_upload_attachments— Upload multiple filesconfluence_delete_attachment— Delete an attachment
Quick Verification
# Search Confluence
CONFLUENCE_URL=https://confluence.example.com CONFLUENCE_PERSONAL_TOKEN=your-token \
uv run python -c "
import asyncio
from www_confluence_mcp.server import mcp
asyncio.run(mcp.run(transport='stdio'))
"
# Or just run the server
CONFLUENCE_URL=https://confluence.example.com CONFLUENCE_PERSONAL_TOKEN=your-token \
uv run www-confluence-mcp
Troubleshooting
uv not found
Install uv and reopen your terminal. See System Requirements.
Dependencies missing
uv sync
MCP tools not appearing in client
- Check that the MCP client config JSON is valid.
- Ensure the
--projectpath is absolute and correct. - Reload the MCP client after config changes.
- Check
CONFLUENCE_DEBUG=truefor detailed logs.
Authentication error
- Verify
CONFLUENCE_URLpoints to your Server/DC instance (not*.atlassian.net). - For PAT: ensure the token is valid and not expired.
- For Basic auth: ensure both
CONFLUENCE_USERNAMEandCONFLUENCE_API_TOKENare set.
Wrong project path in config
The --project argument must point to the root directory of www-confluence-mcp (where pyproject.toml is located), not to the src/ subdirectory.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file www_confluence_mcp-1.0.1.tar.gz.
File metadata
- Download URL: www_confluence_mcp-1.0.1.tar.gz
- Upload date:
- Size: 111.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f042320bc2819a0afe71ab73c3cad7a22b4c5e08a833d78200c5ba2e6c6f3d5
|
|
| MD5 |
d9ace06ba1391d4be34148397d0d62bb
|
|
| BLAKE2b-256 |
9740ec405bb4a99749089ae57c5c04f419dce71e545917b66cd2ba1767819704
|
Provenance
The following attestation bundles were made for www_confluence_mcp-1.0.1.tar.gz:
Publisher:
ci-cd.yml on Naifs/www-confluence-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
www_confluence_mcp-1.0.1.tar.gz -
Subject digest:
1f042320bc2819a0afe71ab73c3cad7a22b4c5e08a833d78200c5ba2e6c6f3d5 - Sigstore transparency entry: 1428438830
- Sigstore integration time:
-
Permalink:
Naifs/www-confluence-mcp@5a451eb6e5c7dbf43dddfae1248ddb47dae1af1e -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/Naifs
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@5a451eb6e5c7dbf43dddfae1248ddb47dae1af1e -
Trigger Event:
push
-
Statement type:
File details
Details for the file www_confluence_mcp-1.0.1-py3-none-any.whl.
File metadata
- Download URL: www_confluence_mcp-1.0.1-py3-none-any.whl
- Upload date:
- Size: 31.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffb0eddf17e0777c208d2c456d92bb3c1f5ccaec7ece2252d8fa1c10cb58278b
|
|
| MD5 |
849734882ad05bacd0f37ddb53bccc5b
|
|
| BLAKE2b-256 |
1c59e6a353370bfa1a036bff09a228a98bb281f15d51817b781756299f28c4ef
|
Provenance
The following attestation bundles were made for www_confluence_mcp-1.0.1-py3-none-any.whl:
Publisher:
ci-cd.yml on Naifs/www-confluence-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
www_confluence_mcp-1.0.1-py3-none-any.whl -
Subject digest:
ffb0eddf17e0777c208d2c456d92bb3c1f5ccaec7ece2252d8fa1c10cb58278b - Sigstore transparency entry: 1428438885
- Sigstore integration time:
-
Permalink:
Naifs/www-confluence-mcp@5a451eb6e5c7dbf43dddfae1248ddb47dae1af1e -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/Naifs
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@5a451eb6e5c7dbf43dddfae1248ddb47dae1af1e -
Trigger Event:
push
-
Statement type: