home / mcp / confluence mcp server
Confluence MCP Server
Configuration
View docs{
"mcpServers": {
"alirezarezvani-confluence-mcp-server": {
"command": "confluence-mcp",
"args": [],
"env": {
"CONFLUENCE_EMAIL": "[email protected]",
"CONFLUENCE_BASE_URL": "https://your-org.atlassian.net",
"CONFLUENCE_API_TOKEN": "your-api-token-here",
"CONFLUENCE_SPACE_KEY": "YOUR_SPACE_KEY"
}
}
}
}You run a Confluence MCP Server to let AI assistants interact with your Confluence documentation. It lets you search pages, retrieve content with formatting, explore spaces and page hierarchies, and find pages by exact title, all integrated for smooth AI-powered workflows.
You connect an MCP client to the Confluence MCP Server to perform practical actions. Start by ensuring your MCP client is configured to talk to your local or remote MCP endpoint. Once connected, you can search for Confluence pages using natural language or Confluence query syntax, retrieve full page content with formatting intact, explore pages within a space, inspect parentβchild relationships between pages, and locate pages by exact title. These capabilities enable AI assistants to fetch relevant documentation on demand and present it to you in context.
Prerequisites you need before installing include Node.js version 18.0.0 or higher, npm version 8.0.0 or higher, a Confluence Cloud account with API access, and Claude Desktop for AI integration.
# Clone the repository
git clone https://github.com/alirezarezvani/confluence-mcp-server.git
cd confluence-mcp-server
# Install dependencies
npm install
# Build the project
npm run build
# Install globally for easy access (recommended)
npm run install-globalConfigure your environment by providing the Confluence access details and the target space key. Create a file named ".env" in the project root with the following variables:
CONFLUENCE_BASE_URL=https://your-org.atlassian.net
[email protected]
CONFLUENCE_API_TOKEN=your-api-token-here
CONFLUENCE_SPACE_KEY=YOUR_SPACE_KEYTo enable Claude Desktop to use the Confluence MCP Server, configure Claude with one or both MCP server entries shown here. You can use a global installation or a local installation depending on your setup.
{
"mcpServers": {
"confluence": {
"command": "confluence-mcp",
"env": {
"CONFLUENCE_BASE_URL": "https://your-org.atlassian.net",
"CONFLUENCE_EMAIL": "[email protected]",
"CONFLUENCE_API_TOKEN": "your-api-token",
"CONFLUENCE_SPACE_KEY": "YOUR_SPACE_KEY"
}
}
}
}If you prefer running from the local build, use the following configuration that launches the built server via Node.
{
"mcpServers": {
"confluence": {
"command": "node",
"args": ["/full/path/to/confluence-mcp-server/dist/confluence-mcp-server.js"],
"env": {
"CONFLUENCE_BASE_URL": "https://your-org.atlassian.net",
"CONFLUENCE_EMAIL": "[email protected]",
"CONFLUENCE_API_TOKEN": "your-api-token",
"CONFLUENCE_SPACE_KEY": "YOUR_SPACE_KEY"
}
}
}
}Search for pages using text queries or CQL. This tool enables natural language or structured search across your Confluence content.
Retrieve full content of a specific Confluence page, preserving formatting.
List all pages within a specified Confluence space, with options to filter by recency or other criteria.
Explore parent-child relationships between pages to understand structure and navigation.
Find pages by exact title match to quickly locate named documents.