lucasmgraham2/Atlassian-Confluence-MCP-Server
If you are the rightful owner of Atlassian-Confluence-MCP-Server 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.
The Atlassian MCP Server is designed to facilitate the creation of Confluence documentation directly from code using the official Atlassian Python API.
Atlassian MCP Server
MCP server for creating Confluence documentation from code using the official Atlassian Python API.
Features
- Auto-connects to Confluence (credentials built-in)
- Creates documentation pages with syntax highlighting
- Supports function and file-level documentation
- Manages page content (create, append, replace, remove)
- Lists spaces and finds existing pages
Setup
1. Install dependencies:
pip install -r requirements.txt
2. Add to your MCP client configuration:
For Q Developer:
- Name: Atlassian
- Transport: stdio
- Command: py
- Arguments: \path\to\mcp\server\
For Copilot (mcp.json):
{
"servers": {
"atlassian-confluence": {
"type": "stdio",
"command": "py",
"args": ["Path\\To\\Atlassian-Confluence-MCP-Server\\atlassian_mcp_server.py"],
"env": {}
}
},
"inputs": []
}
Usage Examples
List Available Spaces
Prompt: "What Confluence spaces are available?"
- Uses
list_spacestool automatically - Shows all spaces you can create pages in
Create Simple Documentation Page
Prompt: "Create a Confluence page in the AUC space called 'User Authentication System' describing all of our user authentication specifics"
- Uses
create_pagetool - Creates sections of content to describe the topic at hand
- Creates formatted page with syntax highlighting
Create Detailed Code Documentation
Prompt: "Document this login function in AUC space - it handles user authentication by checking credentials against the database and returns a JWT token"
- Uses
create_code_documentationtool - Creates detailed documentation with explanations
- Perfect for specific functions or code blocks
Find Existing Pages
Prompt: "Find pages about 'authentication' in the AUC space"
- Uses
find_pagetool - Searches page titles for matches
Add Content to Existing Page
Prompt: "Add this new function documentation to page ID 12345"
- Uses
append_to_pagetool - Preserves existing content
Update Page Content
Prompt: "Replace the old login method with this new implementation on page 12345"
- Uses
replace_contenttool - Finds and replaces specific content
Real AI Prompting Examples
Instead of JSON configurations or any complex prompting, just talk naturally:
- "Show me what Confluence spaces I can use"
- "Create docs for this authentication module in the DEV space"
- "Document this calculate_tax function - it takes income and returns tax owed"
- "Add this error handling code to the existing API documentation page"
- "Find any pages about database connections in the TECH space"
Available Tools
Core Tools
list_spaces- Show available Confluence spacescreate_page- Create basic documentation pagecreate_code_documentation- Create detailed code documentation
Page Management
get_pages- List pages in a spacefind_page- Search pages by titleget_page_content- View page contentappend_to_page- Add content to existing pagereplace_content- Replace specific contentremove_content- Remove specific content
Configuration
Modify these values in the .py file to your actual credentials:
CONFLUENCE_URLCONFLUENCE_USERNAMECONFLUENCE_TOKEN
Get API tokens from: https://id.atlassian.com/manage-profile/security/api-tokens