Confluence

The Confluence connector enables AI agents to search documentation, read pages, create new content, and manage comments — all via the Confluence REST API using OAuth 2.0. Your credentials are stored encrypted in MCPGate's vault and are never exposed to the AI client.

Required scopes#

MCPGate requests the following OAuth scopes when you connect a Confluence account.

ScopePurpose
read:confluence-space.summaryList and read spaces
read:confluence-content.allRead pages and their content
search:confluenceSearch content using CQL
write:confluence-contentCreate and update pages
write:confluence-spaceWrite to spaces
delete:confluence-contentDelete pages

Tool reference#

The Confluence connector exposes 10 tools. Use the MCP Apps page to enable or disable individual tools per app, and the Guardrails page to add fine-grained rules on top.

ToolCategoryDescription
confluence_list_spacesreadList all Confluence spaces accessible to the user
confluence_get_spacereadGet details of a specific Confluence space
confluence_list_pagesreadList pages in a Confluence space
confluence_get_pagereadGet the content of a specific Confluence page
confluence_searchreadSearch Confluence content using CQL (Confluence Query Language)
confluence_list_commentsreadList comments on a Confluence page
confluence_create_pagewriteCreate a new page in a Confluence space
confluence_update_pagewriteUpdate the content of an existing Confluence page
confluence_add_commentwriteAdd a comment to a Confluence page
confluence_delete_pagedeleteDelete a Confluence page

Page deletion is permanent

confluence_delete_page permanently deletes the page. Confluence moves deleted pages to the trash, where they remain recoverable by an admin for a limited time before being purged. Deny this tool in any app that does not explicitly require it.

Common guardrail recipes#

Read-only access#

Enable only the six read tools and deny all write and delete tools. This is the recommended starting configuration for AI agents that summarise documentation or answer questions from wiki content.

Contribute preset#

Enable read tools plus confluence_create_page, confluence_update_page, and confluence_add_comment. Deny confluence_delete_page. This allows the AI to draft and update documentation without destructive access.

Restrict to specific spaces#

Apply the allow_values template to confluence_create_page and confluence_update_page. Target the space_key field and provide the list of space keys the agent may write to.

Troubleshooting#

  • CQL search returns no resultsconfluence_search uses Confluence Query Language syntax (e.g. space = "ENG" AND text ~ "API"). Ensure your query is valid CQL and the space key is correct.
  • Page version conflictconfluence_update_page requires the current page version number. Fetch the page with confluence_get_page first to obtain the latest version before updating.
  • 403 on a space — Confluence enforces space-level permissions. Ensure the connected user account has at least read access to the target space.