akashbhardwaj/confluence-mcp
If you are the rightful owner of confluence-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
A Model Context Protocol (MCP) server for Confluence that allows AI assistants to interact with Confluence data.
Confluence MCP Server
A Model Context Protocol (MCP) server for Confluence that allows AI assistants to interact with Confluence data.
Quick Start with Docker
Get started quickly using the pre-built Docker image:
docker run -d \
--name confluence-mcp \
-e JIRA_BASE_URL=https://your-domain.atlassian.net/wiki \
-e JIRA_API_TOKEN=your-api-key \
-e JIRA_API_USER=your-email@example.com \
--restart unless-stopped \
ghcr.io/akashbhardwaj/confluence-mcp:latest
Replace the environment variables with your actual Confluence credentials. See the Docker Deployment section for more details.
Features
- Access Confluence spaces, pages, and content
- Search Confluence content
- Create, update, and delete pages
- Authentication using Confluence API tokens
- Docker support for easy deployment
Prerequisites
- Confluence Cloud instance
- Confluence API token
For local development:
- Python 3.10+
- UV for dependency management
Setup
- Clone this repository
- Install dependencies with UV:
uv venv uv pip install -e . - Set up your environment variables in your shell configuration (e.g.,
~/.zshrcor~/.bashrc):export JIRA_BASE_URL=https://your-domain.atlassian.net/wiki export JIRA_API_TOKEN=your-api-key export JIRA_API_USER=your-email@example.com export DEBUG=false # Optional: set to true for debug logging - Reload your shell configuration:
source ~/.zshrc # or source ~/.bashrc - Run the server:
python -m src.confluence_mcp.main
Configuration
The server requires the following environment variables:
JIRA_BASE_URL: Your Confluence Cloud URL (e.g.,https://your-domain.atlassian.net/wiki)JIRA_API_TOKEN: Your Confluence API tokenJIRA_API_USER: Email address associated with the API tokenDEBUG: (Optional) Set totrueto enable debug logging
Usage
Once the server is running, you can configure your VS Code settings to use it:
"mcp": {
"servers": {
"Confluence": {
"url": "http://localhost:3846/sse"
}
}
}
Available Functions
- Spaces: List spaces, get space details
- Pages: List, get, create, update, and delete pages
- Search: Search for content across Confluence
Development
To run tests:
# Run all tests
pytest
# Run with coverage
pytest --cov=src
Docker Deployment
Pre-built Docker images are available at ghcr.io/akashbhardwaj/confluence-mcp.
Using Pre-built Image (Recommended)
docker run -d \
--name confluence-mcp \
-e JIRA_BASE_URL=https://your-domain.atlassian.net/wiki \
-e JIRA_API_TOKEN=your-api-key \
-e JIRA_API_USER=your-email@example.com \
--restart unless-stopped \
ghcr.io/akashbhardwaj/confluence-mcp:latest
Building Locally
chmod +x build_docker.sh
./build_docker.sh
docker run -d \
--name confluence-mcp \
-e JIRA_BASE_URL=https://your-domain.atlassian.net/wiki \
-e JIRA_API_TOKEN=your-api-key \
-e JIRA_API_USER=your-email@example.com \
--restart unless-stopped \
confluence-mcp:latest