← Back to Confluence MCP Server

Install Confluence MCP Server

Pick your client, copy the command, done.

1

Add it to Claude Code

claude mcp add -e "CONFLUENCE_URL=${CONFLUENCE_URL}" confluence-mcp-d27a -- npx -y @smithery/cli@latest run @enjoyzl/mcp-server-confluence-ts --config "{\"confluenceUrl\":\"your-confluence-url\",\"confluenceUsername\":\"your-username\",\"confluencePassword\":\"your-password\"}"
Required:CONFLUENCE_URL+ 3 optional

Environment Variables

Set these before running Confluence MCP Server.

VariableDescriptionRequired
CONFLUENCE_URLThe base URL of your Confluence instanceYes
CONFLUENCE_ACCESS_TOKENAccess token for authenticationNo
CONFLUENCE_USERNAMEUsername for basic authenticationNo
CONFLUENCE_PASSWORDPassword for basic authenticationNo

Available Tools (8)

Once configured, Confluence MCP Server gives your AI agent access to:

getSpaceRetrieves information about a specific Confluence space.
spaceKey
getPageByPrettyUrlRetrieves a page by its title within a specific space.
spaceKeytitle
managePagesUnified tool to create, update, delete, or retrieve page content.
actionspaceKeytitlecontentparentIdrepresentation
manageCommentsUnified tool to create, update, delete, or reply to standard and inline comments.
actionpageIdcommentIdcontent
getPageCommentsRetrieves all comments for a specific page with pagination support.
pageId
getCommentRetrieves details for a specific comment.
commentId
searchContentPerforms full-text search using CQL syntax.
cql
searchCommentsSearches within comment content, optionally scoped to a space.
queryspaceKey

Try It Out

After setup, try these prompts with your AI agent:

Search for all pages in the DEV space that mention 'API documentation' using CQL.
Create a new page in the DEV space titled 'Project Roadmap' with the provided Markdown content.
Get all comments for the page with ID 123456789 and summarize the feedback.
Update the page 'API Development Guide' to include the latest changes from my local file.
Prerequisites & system requirements
  • An MCP-compatible client (Claude Code, Cursor, Windsurf, Claude Desktop, or Codex)
  • Node.js 18+ with npm/npx installed
  • CONFLUENCE_URL — The base URL of your Confluence instance
Alternative installation methods

Local Node.js

node dist/index.js

Keep this setup from going cold

Save the docs, env vars, and workflow around Confluence MCP Server in Conare so Claude Code, Codex, and Cursor remember it next time.

Remember this setup