Confluence MCP Server
Provides tools for interacting with Atlassian Confluence, enabling AI agents to search, create, read, update, and delete pages and spaces via the Confluence API.
Click on "Deploy 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 Serversearch for project onboarding documents"
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 implementation for Atlassian Confluence. This server provides a set of tools for interacting with Confluence through the MCP protocol, allowing AI agents to seamlessly work with Confluence content. Built with Flask for easy deployment to Cloud Run.
Features
Search pages and spaces using Confluence Query Language (CQL)
List all available Confluence spaces
Create, read, update, and delete Confluence pages
Rich metadata support for Confluence resources
Flask-based server for Cloud Run deployment
MCP tools for AI agent integration
Related MCP server: Confluence MCP Server
Installation
Clone the repository
Install dependencies:
pip install -r requirements.txtConfiguration
Create a .env file in the project root with the following variables:
CONFLUENCE_URL=https://your-instance.atlassian.net/wiki
CONFLUENCE_ACCESS_TOKEN=your_access_token
PORT=8080 # Optional, defaults to 8080To get an access token:
Log in to your Atlassian account
Go to Account Settings > Security > Create and manage API tokens
Create a new API token and copy it
Available Tools
The server provides the following MCP tools:
1. Search Content
@tool("search_confluence")
def search(query: str) -> Dict[str, Any]2. Get Spaces
@tool("get_spaces")
def get_spaces() -> Dict[str, Any]3. Get Page Content
@tool("get_page_content")
def get_page_content(space_key: str, page_id: str) -> Dict[str, Any]4. Create Page
@tool("create_page")
def create_page(space_key: str, title: str, content: str) -> Dict[str, Any]5. Update Page
@tool("update_page")
def update_page(space_key: str, page_id: str, content: str) -> Dict[str, Any]6. Delete Page
@tool("delete_page")
def delete_page(space_key: str, page_id: str) -> Dict[str, Any]Running Locally
Run the server locally:
python example.pyThe server will start on http://localhost:8080
Cloud Run Deployment
Build the Docker image:
docker build -t confluence-mcp .Tag and push to Google Container Registry:
docker tag confluence-mcp gcr.io/[PROJECT-ID]/confluence-mcp
docker push gcr.io/[PROJECT-ID]/confluence-mcpDeploy to Cloud Run:
gcloud run deploy confluence-mcp \
--image gcr.io/[PROJECT-ID]/confluence-mcp \
--platform managed \
--allow-unauthenticated \
--set-env-vars="CONFLUENCE_URL=[YOUR_URL],CONFLUENCE_ACCESS_TOKEN=[YOUR_TOKEN]"Error Handling
All tools include proper error handling and will return appropriate error messages in the response. The response format includes:
Success case: Relevant data in the specified format
Error case:
{"error": "error message"}
Security Considerations
Always use environment variables for sensitive data
Consider using Cloud Run's built-in secret management
Implement proper authentication for your endpoints
Keep your Confluence access token secure
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect to Atlassian Jira, Confluence, Loom, and more to search, create, and manage your work.
Your workspace as agent tools — docs, canvases, slides, sheets, projects, tickets, and a shell.
- hiveWikiOAuthai.hivewiki
Shared project wiki for AI agents: read and write pages, next actions, and activity logs over MCP.
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with Atlassian Confluence Cloud by providing tools to create, update, search, and delete pages. It facilitates seamless content management within Confluence spaces using Markdown and the Confluence REST API.6MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI models to interact with Confluence knowledge bases by searching, reading, and creating pages through the Confluence REST API. It provides a suite of tools for space management, document retrieval, and content creation, including a mock mode for local testing.-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Atlassian Confluence and Jira for searching, updating, and managing content and issues.MIT
- AlicenseNot gradedqualityBmaintenanceEnables reading, searching, creating, updating, and deleting Confluence pages and managing spaces via natural language, with automatic Markdown conversion.MIT