confluence-mcp-server
v1.3.3Confluence MCP server for Cloud/Server/Data Center search/read/create/update
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
confluence_configure_connection
Configure the Confluence connection for this MCP server process. Use this when CONF_* env vars were not set or when switching to another Confluence site.
| Parameter | Type | Description |
|---|---|---|
authMode | string | Authentication mode (default auto). Cloud always uses Basic. |
baseUrl | string | Confluence base URL, for example https://confluence.example.com. Required for first configuration; omitted values inherit the current connection. |
defaultSpace | string | Default Confluence space key used when a tool omits spaceKey. |
mode | string | Deployment mode (default server). dc/datacenter map to server. |
password | string | Password. Server auto/basic mode uses this with username. |
token | string | Access token. Cloud treats this as an API token; Server auto mode treats it as Bearer. |
username | string | Login username or Cloud email address. |
verify | boolean | Verify credentials by calling whoami after configuring (default true). |
confluence_get_connection_status
Get the current Confluence connection status without returning secrets.
confluence_get_current_user
Get current authenticated Confluence user (whoami).
confluence_search_pages
Search Confluence pages by keyword. Returns unified fields: id, type, title, spaceKey, url, version.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max results to return (default 10, max 25) |
query | string | Search keywords (optional, empty string means only space/type filter) |
spaceKey | string | Confluence space key (uses CONF_DEFAULT_SPACE if omitted) |
confluence_execute_cql_search
Execute raw Confluence CQL search. Returns unified fields: id, type, title, spaceKey, url, version.
| Parameter | Type | Description |
|---|---|---|
cql * | string | Raw Confluence CQL expression |
expand | string | Comma-separated expand fields (default: space,version) |
limit | integer | Max results to return (default 10, max 50) |
confluence_get_page
Get a Confluence page by ID. Returns unified fields and bodyStorageValue.
| Parameter | Type | Description |
|---|---|---|
pageId * | string | Confluence page ID |
expand | string | Comma-separated expand fields (default: body.storage,version,space) |
confluence_get_page_outline
Get a page outline by parsing headings from body.storage. Returns unified fields plus headings[] for low-token navigation.
| Parameter | Type | Description |
|---|---|---|
pageId * | string | Confluence page ID |
confluence_get_page_section
Get a single page section by heading. The server fetches full storage internally but only returns the matched section to save tokens.
| Parameter | Type | Description |
|---|---|---|
heading * | string | Heading text used to locate the target section |
pageId * | string | Confluence page ID |
includeHeading | boolean | Include the heading tag in the returned section (default true) |
matchMode | string | Heading match mode: exact or contains (default exact) |
occurrence | integer | When the same heading appears multiple times, choose which occurrence (default 1) |
confluence_get_page_anchor_block
Get a page block between two invisible anchor macros. Returns only the matched block to save tokens.
| Parameter | Type | Description |
|---|---|---|
endAnchor * | string | End anchor name |
pageId * | string | Confluence page ID |
startAnchor * | string | Start anchor name |
confluence_create_page
Create a Confluence page. Supports optional parentId. Returns unified fields.
| Parameter | Type | Description |
|---|---|---|
bodyStorageValue * | string | Page body in Confluence storage format (XHTML) |
title * | string | Page title |
parentId | string | Optional parent page ID (ancestor) |
spaceKey | string | Confluence space key (uses CONF_DEFAULT_SPACE if omitted) |
confluence_update_page
Update a Confluence page content. Auto increments version. Returns unified fields.
| Parameter | Type | Description |
|---|---|---|
bodyStorageValue * | string | New page body in Confluence storage format (XHTML) |
pageId * | string | Confluence page ID |
message | string | Version update message / change comment |
minorEdit | boolean | Whether this is a minor edit (default true) |
title | string | New page title (keeps current title if omitted) |
confluence_update_page_section
Update one page section by heading. The server fetches full storage internally, replaces the matched range, and writes back the whole page so the model only sends the section content.
| Parameter | Type | Description |
|---|---|---|
heading * | string | Heading text used to locate the target section |
pageId * | string | Confluence page ID |
sectionStorageValue * | string | Replacement storage XHTML for the target section |
includeHeading | boolean | When true replace from the heading tag itself; when false only replace the body below it (default true) |
matchMode | string | Heading match mode: exact or contains (default exact) |
message | string | Version update message / change comment |
minorEdit | boolean | Whether this is a minor edit (default true) |
occurrence | integer | When the same heading appears multiple times, choose which occurrence (default 1) |
title | string | New page title (keeps current title if omitted) |
confluence_preview_page_section_update
Preview a heading-based section update. Returns the currently matched section, the proposed replacement, and a hash that must be echoed to the confirmed update call.
| Parameter | Type | Description |
|---|---|---|
heading * | string | Heading text used to locate the target section |
pageId * | string | Confluence page ID |
sectionStorageValue * | string | Proposed replacement storage XHTML for the target section |
includeHeading | boolean | Include the heading tag in the previewed replace range (default true) |
matchMode | string | Heading match mode: exact or contains (default exact) |
occurrence | integer | When the same heading appears multiple times, choose which occurrence (default 1) |
confluence_update_page_section_confirmed
Confirm a heading-based section update after preview. The server re-reads the page and only updates when the preview hash still matches current content.
| Parameter | Type | Description |
|---|---|---|
expectedCurrentHash * | string | Hash returned by confluence_preview_page_section_update |
heading * | string | Heading text used to locate the target section |
pageId * | string | Confluence page ID |
sectionStorageValue * | string | Replacement storage XHTML for the target section |
includeHeading | boolean | When true replace from the heading tag itself; when false only replace the body below it (default true) |
matchMode | string | Heading match mode: exact or contains (default exact) |
message | string | Version update message / change comment |
minorEdit | boolean | Whether this is a minor edit (default true) |
occurrence | integer | When the same heading appears multiple times, choose which occurrence (default 1) |
title | string | New page title (keeps current title if omitted) |
confluence_stage_page_update
Stage a full-page update in MCP server memory without writing to Confluence. Use list/get to review, commit to save, or discard to drop it.
| Parameter | Type | Description |
|---|---|---|
bodyStorageValue * | string | Proposed new page body in Confluence storage format (XHTML) |
pageId * | string | Confluence page ID |
title | string | Proposed new page title (keeps current title if omitted) |
confluence_stage_page_section_update
Stage a heading-based section update in MCP server memory without writing to Confluence. Returns a draftId plus old/new/diff content for review.
| Parameter | Type | Description |
|---|---|---|
heading * | string | Heading text used to locate the target section |
pageId * | string | Confluence page ID |
sectionStorageValue * | string | Proposed replacement storage XHTML for the target section |
includeHeading | boolean | When true replace from the heading tag itself; when false only replace the body below it (default true) |
matchMode | string | Heading match mode: exact or contains (default exact) |
occurrence | integer | When the same heading appears multiple times, choose which occurrence (default 1) |
title | string | Proposed new page title (keeps current title if omitted) |
confluence_stage_page_anchor_block_update
Stage an anchor-based block update in MCP server memory without writing to Confluence. Returns a draftId plus old/new/diff content for review.
| Parameter | Type | Description |
|---|---|---|
blockStorageValue * | string | Proposed replacement storage XHTML between the two anchors |
endAnchor * | string | End anchor name |
pageId * | string | Confluence page ID |
startAnchor * | string | Start anchor name |
title | string | Proposed new page title (keeps current title if omitted) |
confluence_list_pending_page_updates
List staged page updates kept in MCP server memory. These drafts have not been written to Confluence.
| Parameter | Type | Description |
|---|---|---|
pageId | string | Only list pending updates for this Confluence page ID |
confluence_get_pending_page_update
Get one staged page update by draftId. The draft has not been written to Confluence.
| Parameter | Type | Description |
|---|---|---|
draftId * | string | Draft ID returned by a stage tool |
confluence_discard_pending_page_update
Discard one staged page update by draftId without writing it to Confluence.
| Parameter | Type | Description |
|---|---|---|
draftId * | string | Draft ID returned by a stage tool |
confluence_commit_pending_page_update
Commit one staged page update to Confluence by draftId after re-reading and hash-checking the current content.
| Parameter | Type | Description |
|---|---|---|
draftId * | string | Draft ID returned by a stage tool |
message | string | Version update message / change comment |
minorEdit | boolean | Whether this is a minor edit (default true) |
confluence_add_anchor_block_to_section
Insert invisible start/end anchor macros around a heading-based section so later updates can target a stable block instead of relying on heading matching.
| Parameter | Type | Description |
|---|---|---|
endAnchor * | string | End anchor name to insert after the section |
heading * | string | Heading text used to locate the section |
pageId * | string | Confluence page ID |
startAnchor * | string | Start anchor name to insert before the section |
matchMode | string | Heading match mode: exact or contains (default exact) |
message | string | Version update message / change comment |
minorEdit | boolean | Whether this is a minor edit (default true) |
occurrence | integer | When the same heading appears multiple times, choose which occurrence (default 1) |
title | string | New page title (keeps current title if omitted) |
confluence_preview_page_anchor_block_update
Preview an anchor-based block update. Returns the current block, the proposed replacement, and a hash that must be echoed to the confirmed update call.
| Parameter | Type | Description |
|---|---|---|
blockStorageValue * | string | Proposed replacement storage XHTML between the two anchors |
endAnchor * | string | End anchor name |
pageId * | string | Confluence page ID |
startAnchor * | string | Start anchor name |
confluence_update_page_anchor_block_confirmed
Confirm an anchor-based block update after preview. The server re-reads the page and only updates when the preview hash still matches current content.
| Parameter | Type | Description |
|---|---|---|
blockStorageValue * | string | Replacement storage XHTML between the two anchors |
endAnchor * | string | End anchor name |
expectedCurrentHash * | string | Hash returned by confluence_preview_page_anchor_block_update |
pageId * | string | Confluence page ID |
startAnchor * | string | Start anchor name |
message | string | Version update message / change comment |
minorEdit | boolean | Whether this is a minor edit (default true) |
title | string | New page title (keeps current title if omitted) |
confluence_upload_attachment
Upload an attachment to a Confluence page. Supports local filePath or base64Data; same-name files are updated by default. Returns attachment fields and image storage markup when applicable.
| Parameter | Type | Description |
|---|---|---|
pageId * | string | Confluence page ID |
base64Data | string | Base64 file content, optionally as a data URL |
comment | string | Attachment version comment |
contentType | string | MIME type such as image/png. Inferred from fileName when omitted |
fileName | string | Attachment file name. Required for base64Data; defaults to basename(filePath) |
filePath | string | Local file path to upload from the MCP server machine |
minorEdit | boolean | Whether this attachment version is a minor edit (default true) |
overwrite | boolean | Update same-name attachment as a new version when true (default true); fail on duplicates when false |