Confluence MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Confluence MCP ServerList all Confluence spaces"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Confluence MCP Server
A Model Context Protocol (MCP) server for integrating Confluence with AI applications like Claude.
Overview
This MCP server provides tools to interact with Confluence spaces and pages, enabling AI applications to:
List and search Confluence spaces
Browse pages and page content
Search across Confluence
Get Confluence instance information
Related MCP server: confluence-mcp-server
Features
The server exposes the following tools:
list_spaces: List all Confluence spaces
get_space_details: Get detailed information about a specific space
list_pages: List pages in a specific space
get_page_content: Get the content of a page by title
search_pages: Search for pages using CQL (Confluence Query Language)
get_confluence_info: Get information about the Confluence instance
Installation
Prerequisites
Python 3.10 or higher
uv (recommended) or pip for package management
Setup
Clone or create the project directory
Install dependencies using uv:
\\bash uv sync \\
Or with pip:
\\bash pip install -r requirements.txt \\
Configuration
Copy the example configuration:
\\bash cp .env.example .env \\
Edit .env and add your Confluence credentials:
For Confluence Cloud:
\\env CONFLUENCE_URL=https://your-domain.atlassian.net CONFLUENCE_USERNAME=your-email@example.com CONFLUENCE_TOKEN=your-api-token \\
Get your API token from: https://id.atlassian.com/manage-profile/security/api-tokens
For Confluence Server/Data Center:
\\env CONFLUENCE_URL=https://confluence.company.com CONFLUENCE_USERNAME=your-username CONFLUENCE_PASSWORD=your-password \\
Running the Server
With uv:
\\bash uv run confluence_server.py \\
With Python directly:
\\bash python confluence_server.py \\
With MCP Inspector (for testing):
\\bash
Terminal 1: Start the server
uv run confluence_server.py
Terminal 2: Run the inspector
npx -y @modelcontextprotocol/inspector \\
Then connect to http://localhost:8000/mcp in the inspector.
Integration with Claude Desktop
macOS/Linux:
Edit your Claude Desktop config:
\\bash code ~/Library/Application Support/Claude/claude_desktop_config.json \\
Add the server configuration:
\\json { "mcpServers": { "confluence": { "command": "uv", "args": [ "--directory", "/ABSOLUTE/PATH/TO/python-mcp-server", "run", "confluence_server.py" ] } } } \\
Restart Claude Desktop
Windows:
Edit your Claude Desktop config:
\
code %APPDATA%\Claude\claude_desktop_config.json
\\
Add the server configuration with forward slashes:
\\json { "mcpServers": { "confluence": { "command": "uv", "args": [ "--directory", "C:/Dev/Confluence MCP Hackathon/python-mcp-server", "run", "confluence_server.py" ] } } } \\
Restart Claude Desktop
Example Usage
Once integrated with Claude Desktop, you can ask:
"What spaces do we have in Confluence?"
"Show me the pages in the Engineering space"
"Search for documentation about API"
"Get the content of the Getting Started page in our main space"
"What Confluence version are we running?"
Architecture
The server uses:
mcp[cli]: The official Python MCP SDK with FastMCP
atlassian-python-api: Python library for Confluence API interaction
FastMCP: Simplified MCP server framework with automatic tool discovery
Tool Details
list_spaces(limit: int = 25)
Lists Confluence spaces with pagination support.
get_space_details(space_key: str)
Returns detailed information about a space including name, key, type, and description.
list_pages(space_key: str, limit: int = 10)
Lists pages in a specific space with pagination.
get_page_content(space_key: str, page_title: str)
Retrieves the content of a specific page by its title.
search_pages(query: str, limit: int = 10)
Searches for pages using CQL (Confluence Query Language). Example queries:
\ ext ~ "keyword"\
\space = KEY AND type = page\
\created <= -1d\
get_confluence_info()
Returns information about the Confluence instance including version and URL.
Error Handling
The server handles common errors gracefully:
Missing credentials
Connection failures
Invalid space keys or page titles
API rate limiting
All errors are returned as readable messages to the AI client.
Troubleshooting
Connection Issues
Verify CONFLUENCE_URL is correct
Check credentials are valid
Ensure your Confluence instance is accessible from your machine
For Cloud, verify your API token hasn't expired
Tool Not Showing Up in Claude
Restart Claude Desktop
Check the logs in Claude Server > Server Logs
Verify the .env file contains valid credentials
Security
Important: Never commit your .env file to version control. The .env.example file shows the required variables without sensitive data.
For production deployments:
Use environment variables or secure credential management
Consider using OAuth2 authentication
Restrict API token permissions to minimum required
Development
To extend the server with additional Confluence functionality:
Edit confluence_server.py
Add new tools using the @mcp.tool() decorator
Test with the MCP Inspector
Restart Claude Desktop to reload changes
References
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Nkanyezikhanyile/Confluence-MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server