MetorialDocs

Set up Confluence in Metorial for Claude, ChatGPT and Cursor

Share Confluence with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or API token sign-in, 33 tools (17 read-only).

To give your team Confluence in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Confluence integration in a Metorial portal, and each person signs in to Confluence with their own account. Agents can create, read, update, and delete pages, blog posts, comments, and attachments in Confluence spaces. The integration has 33 tools, 17 read-only, 9 write and 7 destructive, plus 6 triggers.

What you'll learn

  • How an admin shares Confluence in a portal and how each person connects
  • The 43 OAuth scopes Confluence can request, and what each one allows
  • How to keep the 17 read-only tools and reject the other 16

Before you start

Sign-in methods

MethodTypeWhat a person provides
OAuth 2.0 (Confluence Cloud) (default)OAuthSigns in to Confluence
API Token (Confluence Cloud)API tokenemail, token and domain
Personal Access Token (Data Center)API tokentoken and baseUrl

The portal and metorial setup use OAuth 2.0 (Confluence Cloud) unless someone picks another method.

OAuth 2.0 (Confluence Cloud)

People sign in to Confluence and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
read:confluence-content.allRead ContentRead all Confluence content including page and blog post bodies
read:confluence-content.summaryRead Content SummaryRead Confluence content summaries
write:confluence-contentWrite ContentCreate and update pages, blog posts, and comments
write:confluence-spaceWrite SpaceCreate and manage Confluence spaces
read:confluence-space.summaryRead Space SummaryRead Confluence space summaries
write:confluence-fileWrite FileUpload and manage file attachments
read:confluence-propsRead PropertiesRead content properties
write:confluence-propsWrite PropertiesCreate and update content properties
search:confluenceSearchSearch Confluence content using CQL
read:confluence-content.permissionRead Content PermissionsView content permissions in Confluence
read:confluence-userRead UserRead user profile information
read:confluence-groupsRead GroupsRead group information and membership
write:confluence-groupsWrite GroupsCreate and manage groups
manage:confluence-configurationManage ConfigurationManage global Confluence configuration settings
readonly:content.attachment:confluenceRead AttachmentsDownload file attachments
offline_accessOffline AccessEnable refresh tokens for long-lived access
read:page:confluenceRead Pages (v2)Read pages via the Confluence v2 API
write:page:confluenceWrite Pages (v2)Create and update pages via the Confluence v2 API
delete:page:confluenceDelete Pages (v2)Delete pages via the Confluence v2 API
read:blogpost:confluenceRead Blog Posts (v2)Read blog posts via the Confluence v2 API
write:blogpost:confluenceWrite Blog Posts (v2)Create and update blog posts via the Confluence v2 API
delete:blogpost:confluenceDelete Blog Posts (v2)Delete blog posts via the Confluence v2 API
read:space:confluenceRead Spaces (v2)Read spaces via the Confluence v2 API
read:content:confluenceRead Content (v2)Read content including blog posts via the Confluence v2 API
write:content:confluenceWrite Content (v2)Create and update content via the Confluence v2 API
delete:content:confluenceDelete Content (v2)Delete content via the Confluence v2 API
read:comment:confluenceRead Comments (v2)Read comments via the Confluence v2 API
write:comment:confluenceWrite Comments (v2)Create and delete comments via the Confluence v2 API
delete:comment:confluenceDelete Comments (v2)Delete comments via the Confluence v2 API
read:attachment:confluenceRead Attachments (v2)Read attachments via the Confluence v2 API
write:attachment:confluenceWrite Attachments (v2)Upload and update attachments via the Confluence APIs
delete:attachment:confluenceDelete Attachments (v2)Delete attachments via the Confluence v2 API
read:content-details:confluenceRead Content Metadata (v2)Read content metadata via the Confluence v2 API
read:hierarchical-content:confluenceRead Hierarchical Content (v2)Read page children and other content tree relationships
read:label:confluenceRead Labels (v2)Read labels on Confluence content
write:label:confluenceWrite Labels (v2)Add and remove labels on Confluence content
read:content.property:confluenceRead Content Properties (v2)Read content properties via the Confluence v2 API
write:content.property:confluenceWrite Content Properties (v2)Create, update, and delete content properties via the Confluence v2 API
read:content.restriction:confluenceRead Content RestrictionsRead content restrictions
write:content.restriction:confluenceWrite Content RestrictionsCreate, update, and delete content restrictions
read:content.permission:confluenceRead Content PermissionsCheck content permissions via the Confluence API
read:user:confluenceRead Users (v2)Read user details via the Confluence API
read:group:confluenceRead Groups (v2)Read group details via the Confluence API

API Token (Confluence Cloud)

To connect, a person enters these values:

  • email: Atlassian account email address
  • token: API token generated from https://id.atlassian.com/manage-profile/security/api-tokens
  • domain: Atlassian domain (e.g., "mycompany" for mycompany.atlassian.net)

Personal Access Token (Data Center)

To connect, a person enters these values:

  • token: Personal access token for Confluence Data Center
  • baseUrl: Base URL of your Confluence Data Center instance (e.g., https://confluence.example.com)

Setup settings

Whichever method you pick, setup also asks for:

  • cloudId (optional): Confluence Cloud ID. Required for OAuth connections. Obtained from the accessible-resources endpoint after OAuth authorization.
  • baseUrl (optional): Base URL for Confluence Data Center (e.g., https://confluence.example.com). Not needed for Confluence Cloud OAuth connections.

Use your own Confluence OAuth app

With your own OAuth app, people see your company's name on the Confluence consent screen, and the client ID and secret belong to you.

Start the credentials in Metorial

In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Confluence and copy the Redirect URI.

Register the app with Confluence

On developer.atlassian.com, click your profile icon and select Developer console. Select Create, then OAuth 2.0 integration, name the app and choose the OAuth 2.0 (3LO) grant type. Select Authorization, click Configure next to OAuth 2.0 (3LO), paste the redirect URI from Metorial as the Callback URL, and click Save changes. Under Permissions, add the Confluence API and its scopes. Copy the client ID and secret from Settings. One Atlassian app can serve both Confluence and Jira if you add both APIs.

The Personal Access Token (Data Center) method is for Confluence Data Center, which this OAuth app does not cover.

Finish in Metorial

Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Confluence integration.

Admin: share Confluence in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Confluence. Under Auth Method, keep OAuth 2.0 (Confluence Cloud) or pick another. For how members connect, choose Each person connects, so everyone signs in to Confluence as themselves.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Confluence.

Choose who gets it

Add the access groups that should see Confluence. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Confluence integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search confluence

Employee: connect Confluence

In the portal

Open Confluence in the catalog

Sign in to your portal and open Confluence. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. A Confluence sign-in tab opens. Sign in and approve the permissions listed.

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search confluence
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses OAuth 2.0 (Confluence Cloud). To connect with API Token (Confluence Cloud) instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your Confluence connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list confluence
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 17 read-only tools, such as get_page and get_space, and lose the 9 write tools, such as add_labels or add_comment, and the 7 destructive tools, such as delete_page or remove_label.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list confluence
metorial tools <integration-id>
metorial call <integration-id> get_current_user -d '{}'

metorial tools lists the 33 tools, minus any you rejected. get_current_user takes no input. It retrieves the currently authenticated Confluence user's profile information.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (17)

  • get_current_user: Retrieve the currently authenticated Confluence user's profile information.
  • get_page: Retrieve a Confluence page by its ID, with optional body content. Needs pageId.
  • get_labels: Get all labels on a Confluence content item (page, blog post, or attachment). Needs contentId.
  • list_blog_posts: List Confluence blog posts, optionally filtered by space or title.
  • search_content: Search Confluence content.
  • get_page_properties: Retrieve all content properties (key-value metadata) for a Confluence page. Needs pageId.
  • get_attachments: List file attachments on a Confluence page or blog post.
  • get_comments: Retrieve footer comments on a Confluence page. Needs pageId.
  • list_groups: List Confluence groups with pagination support.
  • get_content_restrictions: Get read and update restrictions on a Confluence content item. Needs contentId.
  • get_space: Retrieve a single Confluence space by its ID. Needs spaceId.
  • get_content_versions: Retrieve the version history of a Confluence page or blog post. Needs contentId.
  • list_pages: List Confluence pages, optionally filtered by space, title, or status.
  • list_spaces: List Confluence spaces with optional filtering by space key, type, or status.
  • get_blog_post: Retrieve a single Confluence blog post by ID with optional body content. Needs blogPostId.
  • get_page_children: Retrieve the direct child pages of a Confluence page. Needs pageId.
  • get_attachment: Retrieve a Confluence attachment by ID, including file metadata and its API download link when available. Needs attachmentId.

Write tools (9)

  • update_page: Update an existing Confluence page's title, body, or status. Needs pageId and versionNumber.
  • create_blog_post: Create a new blog post in a Confluence space. Needs spaceId, title and body.
  • add_comment: Add a footer comment to a Confluence page or blog post. Needs contentType, contentId and body.
  • set_page_property: Create or update a content property (key-value metadata) on a Confluence page. Needs pageId, key and value.
  • add_labels: Add one or more labels to a Confluence content item (page, blog post, or attachment). Needs contentId and labels.
  • create_page: Create a new Confluence page in a specified space. Needs spaceId, title and body.
  • update_blog_post: Update an existing Confluence blog post's title, body, or status. Needs blogPostId and versionNumber.
  • update_content_restrictions: Set read or update restrictions on a Confluence content item. Needs contentId and restrictions.
  • upload_attachment: Upload a file attachment to a Confluence page or blog post from base64-encoded content. Needs contentId, fileName and contentBase64.

Destructive tools (7)

  • delete_blog_post: Delete a Confluence blog post by ID (moves to trash). Needs blogPostId.
  • delete_comment: Delete a footer comment by ID. Needs commentId.
  • delete_page_property: Delete a content property from a Confluence page. Needs pageId and propertyId.
  • remove_content_restrictions: Remove all restrictions from a Confluence content item, making it accessible according to space-level permissions. Needs contentId.
  • remove_label: Remove a label from a Confluence content item. Needs contentId and label.
  • delete_page: Delete a Confluence page by ID. Needs pageId.
  • delete_attachment: Delete a Confluence attachment by ID. Needs attachmentId.

Triggers

Confluence has 6 triggers, which fire on events in Confluence:

  • attachment_events: Triggered when attachments are created, updated, removed, trashed, restored, archived, unarchived, or viewed.
  • space_events: Triggered when spaces are created, updated, removed, or when space permissions or logos change.
  • comment_events: Triggered when comments are created or removed on Confluence pages and blog posts.
  • page_events: Triggered when pages are created, updated, moved, copied, trashed, restored, removed, archived, unarchived, viewed, published, or when children are reordered.
  • label_events: Triggered when labels are added to or removed from content, or when labels are created or deleted globally.
  • blog_events: Triggered when blog posts are created, updated, moved, trashed, restored, removed, or viewed.

Next steps