This guide provides detailed instructions for AI assistants like Cline to install and configure the Confluence Cloud MCP server. Following these steps will enable seamless integration with Atlassian Confluence Cloud.
- Docker installed on the host system
- Atlassian Confluence Cloud account with API access
- Confluence API token (generated from Atlassian account)
- Node.js v20+ (only if installing from source)
{
"mcpServers": {
"confluence": {
"command": "docker",
"args": ["run", "--rm", "-i",
"ghcr.io/aaronsb/confluence-cloud-mcp:latest"],
"env": {
"CONFLUENCE_DOMAIN": "your-domain.atlassian.net",
"CONFLUENCE_EMAIL": "your-email@domain.com",
"CONFLUENCE_API_TOKEN": "your-api-token"
},
"disabled": false,
"autoApprove": []
}
}
}- Clone the repository:
git clone https://github.com/aaronsb/confluence-cloud-mcp.git
cd confluence-cloud-mcp- Build the Docker image:
./scripts/build-local.sh- Add to MCP configuration:
{
"mcpServers": {
"confluence": {
"command": "docker",
"args": ["run", "--rm", "-i", "confluence-cloud-mcp:local"],
"env": {
"CONFLUENCE_DOMAIN": "your-domain.atlassian.net",
"CONFLUENCE_EMAIL": "your-email@domain.com",
"CONFLUENCE_API_TOKEN": "your-api-token"
},
"disabled": false,
"autoApprove": []
}
}
}- Clone the repository:
git clone https://github.com/aaronsb/confluence-cloud-mcp.git
cd confluence-cloud-mcp- Install dependencies and build:
npm install
npm run build- Add to MCP configuration:
{
"mcpServers": {
"confluence": {
"command": "node",
"args": ["/path/to/confluence-cloud-mcp/build/index.js"],
"env": {
"CONFLUENCE_DOMAIN": "your-domain.atlassian.net",
"CONFLUENCE_EMAIL": "your-email@domain.com",
"CONFLUENCE_API_TOKEN": "your-api-token"
},
"disabled": false,
"autoApprove": []
}
}
}- Log in to your Atlassian account at https://id.atlassian.com/manage-profile/security/api-tokens
- Click "Create API token"
- Enter a label for your token (e.g., "MCP Server")
- Click "Create" and copy the generated token
- Use this token as the
CONFLUENCE_API_TOKENvalue - Use your Atlassian account email as the
CONFLUENCE_EMAILvalue - Use your Confluence Cloud instance URL (e.g., "your-domain.atlassian.net") as the
CONFLUENCE_DOMAINvalue
| Variable | Required | Description |
|---|---|---|
| CONFLUENCE_API_TOKEN | Yes | Your Atlassian API token |
| CONFLUENCE_EMAIL | Yes | Your Atlassian account email |
| CONFLUENCE_DOMAIN | No | Your Confluence Cloud domain (defaults to "your-domain.atlassian.net") |
| MCP_MODE | No | Set to "true" by default in Docker container |
| LOG_FILE | No | Path to log file (defaults to "/app/logs/confluence-cloud-mcp.log" in Docker) |
If you encounter connection issues:
- Verify your API token is valid and not expired
- Ensure your email address matches the one associated with the API token
- Check that your Confluence host URL is correct
- Confirm network connectivity to Atlassian's servers
If you encounter permission errors:
- Verify your Atlassian account has appropriate permissions in Confluence
- Check that your API token has not been revoked
- Ensure you're not hitting API rate limits
If you encounter Docker-related issues:
- Ensure Docker is running on your system
- Verify you have permission to run Docker containers
- Check if the Docker image exists locally or can be pulled from the registry
Once installed, the following tools will be available:
list_confluence_spaces: List all spaces in Confluenceget_confluence_space: Get details about a specific space
list_confluence_pages: List pages in a spaceget_confluence_page: Get a specific page with its content (includes Markdown conversion)create_confluence_page: Create a new page in a spaceupdate_confluence_page: Update an existing page
search_confluence_pages: Search Confluence content using CQLget_confluence_labels: Get labels for a pageadd_confluence_label: Add a label to a pageremove_confluence_label: Remove a label from a page
Note: All tool names follow the [verb]confluence[noun] naming convention for consistency and clarity.