Skip to main content
Glama

confluence-mcp

A local MCP server for Confluence (Data Center/Server compatible) with token-based auth.

This server exposes a compact set of tools for page lookup, CQL search, page creation/updates, comments, and space discovery.

What this server provides

  • confluence_get_page — get a page by ID, or by spaceKey + title

  • confluence_search — search content with CQL

  • confluence_create_page — create a page

  • confluence_update_page — update a page's title/body (auto-increments version)

  • confluence_add_comment — add a comment to a page

  • confluence_list_spaces — list spaces (useful to discover space keys)

Related MCP server: inhouse_confluence_mcp

Requirements

  • Node.js >=20

  • Confluence account with API access

  • Space/page permissions matching your actions (create, update, comment, etc.)

Configuration

Set environment variables (for example in .env):

# Required
CONFLUENCE_BASE_URL=https://your-confluence-host

# Optional (defaults shown)
CONFLUENCE_AUTH_TYPE=bearer
CONFLUENCE_DEFAULT_SPACE_KEY=

# For bearer auth (Data Center/Server personal access token)
CONFLUENCE_PAT=

# For basic auth (Confluence Cloud email + API token)
CONFLUENCE_EMAIL=
CONFLUENCE_API_TOKEN=

Auth modes

  • CONFLUENCE_AUTH_TYPE=bearer (default)

    • Requires CONFLUENCE_PAT (Data Center/Server personal access token)

  • CONFLUENCE_AUTH_TYPE=basic

    • Requires CONFLUENCE_EMAIL + CONFLUENCE_API_TOKEN

Page and comment bodies use Confluence storage format (XHTML-based), for example <p>Hello world</p>.

Install and run

npm install
npm run build
npm start

Development mode:

npm run dev

Smoke test:

npm run test:confluence

MCP client config example

{
	"mcpServers": {
		"confluence": {
			"command": "node",
			"args": ["/absolute/path/to/confluence-mcp/dist/index.js"],
			"env": {
				"CONFLUENCE_BASE_URL": "https://confluence.your-company.local",
				"CONFLUENCE_AUTH_TYPE": "bearer",
				"CONFLUENCE_PAT": "your-personal-access-token",
				"CONFLUENCE_DEFAULT_SPACE_KEY": "YOUR_SPACE_KEY"
			}
		}
	}
}

Tool inputs

confluence_get_page

By ID:

{ "pageId": "123456" }

By space + title:

{ "spaceKey": "YOUR_SPACE_KEY", "title": "Sprint Planning Notes" }

Input:

{
	"cql": "space = YOUR_SPACE_KEY AND type = page ORDER BY lastmodified DESC",
	"start": 0,
	"limit": 20
}

confluence_create_page

Required fields:

  • title

  • body (storage format)

Optional fields:

  • spaceKey (falls back to CONFLUENCE_DEFAULT_SPACE_KEY)

  • parentId (create as a child page)

Example input:

{
	"title": "[MCP] Example page",
	"body": "<p>Created from confluence-mcp</p>",
	"parentId": "123456"
}

confluence_update_page

Provide at least one of title or body. The current version is fetched automatically and incremented.

{
	"pageId": "123456",
	"body": "<p>Updated content</p>"
}

confluence_add_comment

Input:

{
	"pageId": "123456",
	"comment": "<p>Investigation started</p>"
}

confluence_list_spaces

Input:

{ "limit": 25 }

Troubleshooting

  • Update fails with version conflict (409)

    • Another edit happened concurrently. Re-fetch the page (confluence_get_page) and retry.

  • Create page fails with space permission errors (403)

    • These are Confluence permission-scheme restrictions for your user/token, not MCP runtime errors.

  • CQL search returns no results

    • Confirm the space key casing and that type = page (or type = comment, etc.) matches what you expect.

Available Tools

6 tools
confluence_add_commentC

Add a comment to a Confluence page.

ParametersJSON Schema
NameRequiredDescriptionDefault
pageIdYes
commentYes

TDQS

C2.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only says 'Add a comment to a Confluence page,' with no mention of side effects, required permissions, error handling, or whether the comment is appended or replaces existing comments. As a mutation tool, this lack of detail is a significant gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence with no unnecessary words. It is perfectly concise and front-loaded, stating the core action immediately. Every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no annotations, no output schema, and zero parameter descriptions, the description is too minimal. It lacks information about return values, error conditions, authentication requirements, and how this action fits with sibling tools. The tool is likely simple, but the description does not provide enough context for reliable invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0% description coverage, and the description does not mention either parameter (pageId or comment). It adds no meaning beyond the parameter names, which are already self-explanatory. The description does not compensate for the schema's lack of semantic detail.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action: add a comment to a Confluence page. It names the specific verb and resource, making the purpose obvious. However, it does not explicitly distinguish from sibling tools like create_page or update_page, although the verb 'add' and object 'comment' are specific enough for basic selection.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description offers no guidance on when to use this tool versus alternatives. There is no mention of prerequisites, context, or exclusions. The tool's purpose is implied by its name, but explicit usage instructions are absent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

confluence_create_pageC

Create a Confluence page.

ParametersJSON Schema
NameRequiredDescriptionDefault
bodyYes
titleYes
parentIdNo
spaceKeyNo

TDQS

C2.4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden, but it only restates the basic create action. It does not disclose behavioral traits such as space/parent requirements, validation rules, side effects, or return behavior, which is insufficient for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single short sentence, which is concise, but it essentially restates the tool name. It is under-specified rather than usefully concise, providing minimal value beyond the name itself.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description is far too sparse for a tool with 4 parameters, no annotations, and no output schema. It doesn't explain required fields, how pages are nested, what spaceKey and parentId mean, or what happens on success/failure, making it incomplete for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema contains four properties with no descriptions, and the tool description does not mention any of them. With 0% schema description coverage, the description fails to compensate, leaving the agent to guess what body, title, parentId, and spaceKey mean.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses the specific verb 'Create' and the resource 'a Confluence page,' clearly distinguishing it from siblings like get, search, update, add_comment, and list_spaces. It directly states the action, so purpose is clear.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. There is no mention of context, prerequisites, exclusions, or situations where a different tool would be more appropriate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

confluence_get_pageA

Get a Confluence page by ID, or by spaceKey + title.

ParametersJSON Schema
NameRequiredDescriptionDefault
titleNo
pageIdNo
spaceKeyNo

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. 'Get' implies a read-only operation, which is transparent. However, it does not disclose error behavior, return format, or precedence rules when multiple parameters are provided. This is minimal but adequate for a simple read tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The entire description is one concise sentence that states the purpose and the two modes of lookup without any filler. Every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a get-by-identifier tool, the description is reasonably complete, but the combination of three optional parameters with no required fields and no output schema creates ambiguity about precedence and combined usage. The description does not address these edge cases, leaving minor but important gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate. It adds meaning by indicating that 'spaceKey + title' are paired together as an alternative to 'pageId'. However, it fails to clarify whether parameters are mutually exclusive, what happens if both are given, or whether spaceKey alone is valid. Some semantics added, but incomplete.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Get' and the resource 'Confluence page', and specifies two lookup methods: by ID or by spaceKey + title. This distinguishes it sharply from siblings like search, create, update, and comment, which have different actions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context: use this tool when you have a page ID or a spaceKey/title pair. It does not explicitly mention alternatives or when not to use it (e.g., use search when you lack identifiers), but the context is sufficiently clear. Missing explicit exclusions prevents a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

confluence_list_spacesA

List Confluence spaces (useful to discover valid space keys).

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNo
startNo

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden of disclosing behavior. It explicitly indicates a read operation ('List') and suggests a practical use case, but it fails to mention pagination behavior, return format, or whether results are limited to keys only. This is moderate transparency, lacking depth.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, compact sentence that front-loads the core action ('List Confluence spaces') and adds a useful parenthetical note. Every word earns its place; there is no filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple list tool, the description is adequate but sparse. It doesn't describe the output schema or pagination details, which are not covered elsewhere. However, given the simplicity of the tool and the presence of limit/start parameters in the schema, a 3 is fair—it meets the minimum but leaves gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema provides no descriptions for the parameters, and the description does not mention 'limit' or 'start' at all. While the names are somewhat self-explanatory, the description adds zero semantic value beyond the schema, which is a significant gap given the 0% schema description coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states a specific action ('List') and resource ('Confluence spaces'), making the tool's purpose immediately obvious. The parenthetical 'useful to discover valid space keys' adds practical context and distinguishes this from sibling tools like page retrieval or search.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'useful to discover valid space keys' provides clear context for when to use this tool (e.g., before other operations requiring space keys). However, it does not explicitly contrast with alternatives or state exclusions, so it falls short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

confluence_update_pageA

Update a Confluence page's title and/or body. Automatically increments the page version.

ParametersJSON Schema
NameRequiredDescriptionDefault
bodyNo
titleNo
pageIdYes

TDQS

A3.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description discloses an important side-effect: automatic version increment. However, with no annotations, it does not mention required permissions, behavior if the page does not exist, or whether the body is fully replaced. This leaves several behavioral aspects unexplained.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two concise sentences, front-loaded with the action, and includes the useful versioning side-effect without any waste. Every word contributes to understanding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple update tool, the description covers the core purpose and a key side-effect, but lacks details about permissions, error handling, and return value. With no output schema or annotations, these omissions mean the description is adequate but not fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds meaning to the title and body parameters by saying 'title and/or body', indicating they are the updatable fields. However, it does not explain the pageId parameter or provide format constraints (e.g., body markup), and with 0% schema coverage, the description only partially compensates for the lack of parameter documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action (update), the resource (Confluence page), and the specific fields affected (title and/or body). This distinguishes it from sibling tools like create_page, get_page, and search by specifying the exact mutation scope.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The verb 'update' implies this tool is for modifying existing pages, which differentiates it from create_page, but the description does not explicitly state when to use it versus alternatives or provide exclusions. There is no guidance about prerequisites like the page needing to exist.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 6 tool updatesv0.1.0
    • First observedconfluence_add_comment
    • First observedconfluence_create_page
    • First observedconfluence_get_page
    • First observedconfluence_list_spaces
    • First observedconfluence_search
    • First observedconfluence_update_page

TDQS

B3.4/5.0
Disambiguation5/5

Each tool has a clear, distinct purpose: retrieving, searching, creating, updating, commenting, and listing spaces. There is no overlap or ambiguity between them.

Naming Consistency4/5

Most tools follow the verb_noun pattern (get_page, create_page, update_page, add_comment, list_spaces), but 'search' lacks a noun complement, creating a minor inconsistency.

Tool Count5/5

With 6 tools, the server is well-scoped for Confluence operations without being bloated or sparse. Each tool covers an essential action.

Completeness4/5

The set covers core page lifecycle (create, read, update) and adds useful search, comment, and space discovery capabilities. However, there is no delete page operation, a notable gap in CRUD completeness.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/YOSSTM/confluence-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server