confluence-mcp-server

v1.3.3
confluence-mcp-server Checked 2 days ago Published 5 months ago

Confluence 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.

ParameterTypeDescription
authModestringAuthentication mode (default auto). Cloud always uses Basic.
baseUrlstringConfluence base URL, for example https://confluence.example.com. Required for first configuration; omitted values inherit the current connection.
defaultSpacestringDefault Confluence space key used when a tool omits spaceKey.
modestringDeployment mode (default server). dc/datacenter map to server.
passwordstringPassword. Server auto/basic mode uses this with username.
tokenstringAccess token. Cloud treats this as an API token; Server auto mode treats it as Bearer.
usernamestringLogin username or Cloud email address.
verifybooleanVerify 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.

ParameterTypeDescription
limitintegerMax results to return (default 10, max 25)
querystringSearch keywords (optional, empty string means only space/type filter)
spaceKeystringConfluence space key (uses CONF_DEFAULT_SPACE if omitted)

confluence_get_page

Get a Confluence page by ID. Returns unified fields and bodyStorageValue.

ParameterTypeDescription
pageId *stringConfluence page ID
expandstringComma-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.

ParameterTypeDescription
pageId *stringConfluence 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.

ParameterTypeDescription
heading *stringHeading text used to locate the target section
pageId *stringConfluence page ID
includeHeadingbooleanInclude the heading tag in the returned section (default true)
matchModestringHeading match mode: exact or contains (default exact)
occurrenceintegerWhen 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.

ParameterTypeDescription
endAnchor *stringEnd anchor name
pageId *stringConfluence page ID
startAnchor *stringStart anchor name

confluence_create_page

Create a Confluence page. Supports optional parentId. Returns unified fields.

ParameterTypeDescription
bodyStorageValue *stringPage body in Confluence storage format (XHTML)
title *stringPage title
parentIdstringOptional parent page ID (ancestor)
spaceKeystringConfluence space key (uses CONF_DEFAULT_SPACE if omitted)

confluence_update_page

Update a Confluence page content. Auto increments version. Returns unified fields.

ParameterTypeDescription
bodyStorageValue *stringNew page body in Confluence storage format (XHTML)
pageId *stringConfluence page ID
messagestringVersion update message / change comment
minorEditbooleanWhether this is a minor edit (default true)
titlestringNew 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.

ParameterTypeDescription
heading *stringHeading text used to locate the target section
pageId *stringConfluence page ID
sectionStorageValue *stringReplacement storage XHTML for the target section
includeHeadingbooleanWhen true replace from the heading tag itself; when false only replace the body below it (default true)
matchModestringHeading match mode: exact or contains (default exact)
messagestringVersion update message / change comment
minorEditbooleanWhether this is a minor edit (default true)
occurrenceintegerWhen the same heading appears multiple times, choose which occurrence (default 1)
titlestringNew 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.

ParameterTypeDescription
heading *stringHeading text used to locate the target section
pageId *stringConfluence page ID
sectionStorageValue *stringProposed replacement storage XHTML for the target section
includeHeadingbooleanInclude the heading tag in the previewed replace range (default true)
matchModestringHeading match mode: exact or contains (default exact)
occurrenceintegerWhen 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.

ParameterTypeDescription
expectedCurrentHash *stringHash returned by confluence_preview_page_section_update
heading *stringHeading text used to locate the target section
pageId *stringConfluence page ID
sectionStorageValue *stringReplacement storage XHTML for the target section
includeHeadingbooleanWhen true replace from the heading tag itself; when false only replace the body below it (default true)
matchModestringHeading match mode: exact or contains (default exact)
messagestringVersion update message / change comment
minorEditbooleanWhether this is a minor edit (default true)
occurrenceintegerWhen the same heading appears multiple times, choose which occurrence (default 1)
titlestringNew 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.

ParameterTypeDescription
bodyStorageValue *stringProposed new page body in Confluence storage format (XHTML)
pageId *stringConfluence page ID
titlestringProposed 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.

ParameterTypeDescription
heading *stringHeading text used to locate the target section
pageId *stringConfluence page ID
sectionStorageValue *stringProposed replacement storage XHTML for the target section
includeHeadingbooleanWhen true replace from the heading tag itself; when false only replace the body below it (default true)
matchModestringHeading match mode: exact or contains (default exact)
occurrenceintegerWhen the same heading appears multiple times, choose which occurrence (default 1)
titlestringProposed 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.

ParameterTypeDescription
blockStorageValue *stringProposed replacement storage XHTML between the two anchors
endAnchor *stringEnd anchor name
pageId *stringConfluence page ID
startAnchor *stringStart anchor name
titlestringProposed 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.

ParameterTypeDescription
pageIdstringOnly 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.

ParameterTypeDescription
draftId *stringDraft ID returned by a stage tool

confluence_discard_pending_page_update

Discard one staged page update by draftId without writing it to Confluence.

ParameterTypeDescription
draftId *stringDraft 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.

ParameterTypeDescription
draftId *stringDraft ID returned by a stage tool
messagestringVersion update message / change comment
minorEditbooleanWhether 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.

ParameterTypeDescription
endAnchor *stringEnd anchor name to insert after the section
heading *stringHeading text used to locate the section
pageId *stringConfluence page ID
startAnchor *stringStart anchor name to insert before the section
matchModestringHeading match mode: exact or contains (default exact)
messagestringVersion update message / change comment
minorEditbooleanWhether this is a minor edit (default true)
occurrenceintegerWhen the same heading appears multiple times, choose which occurrence (default 1)
titlestringNew 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.

ParameterTypeDescription
blockStorageValue *stringProposed replacement storage XHTML between the two anchors
endAnchor *stringEnd anchor name
pageId *stringConfluence page ID
startAnchor *stringStart 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.

ParameterTypeDescription
blockStorageValue *stringReplacement storage XHTML between the two anchors
endAnchor *stringEnd anchor name
expectedCurrentHash *stringHash returned by confluence_preview_page_anchor_block_update
pageId *stringConfluence page ID
startAnchor *stringStart anchor name
messagestringVersion update message / change comment
minorEditbooleanWhether this is a minor edit (default true)
titlestringNew 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.

ParameterTypeDescription
pageId *stringConfluence page ID
base64DatastringBase64 file content, optionally as a data URL
commentstringAttachment version comment
contentTypestringMIME type such as image/png. Inferred from fileName when omitted
fileNamestringAttachment file name. Required for base64Data; defaults to basename(filePath)
filePathstringLocal file path to upload from the MCP server machine
minorEditbooleanWhether this attachment version is a minor edit (default true)
overwritebooleanUpdate same-name attachment as a new version when true (default true); fail on duplicates when false