Confluence
A FastMCP-based server that provides seamless integration with Confluence's REST API, enabling programmatic access to Confluence spaces, pages, and content search functionality.
claude mcp add --transport stdio mahithchigurupati-confluence-mcp-server python confluence.py \ --env USERNAME="your.email@company.com" \ --env API_TOKEN="your-api-token-here" \ --env CONFLUENCE_BASE_URL="https://your-instance.atlassian.net/wiki/rest/api"
How to use
This MCP server provides programmatic access to a Confluence instance via a FastMCP-based API. Through the available Python-based endpoints, you can list spaces, fetch and manage page content, perform Confluence Query Language (CQL) searches, and navigate the page hierarchy inside specific spaces. The server authenticates requests using a token-based system and exposes methods such as list_spaces, get_page_content, search_content, and list_pages_in_space, enabling you to integrate Confluence data into your workflows or chat-based assistants. To start, configure your environment with your Confluence instance URL, a user email, and an API token, then run the server with python confluence.py. You can then invoke the exposed methods from your client or MCP-enabled tooling to retrieve spaces, page data, or search results in a structured format.
How to install
Prerequisites:
- Python 3.8 or newer
- pip installed
- Access to a Confluence instance with API permissions
Installation steps:
-
Clone the repository git clone https://github.com/MahithChigurupati/Confluence-MCP-Server.git cd Confluence-MCP-Server
-
(Recommended) Create and activate a virtual environment python -m venv venv source venv/bin/activate # macOS/Linux .\venv\Scripts\activate # Windows
-
Install dependencies pip install -r requirements.txt
-
Create and configure environment variables cp .env.example .env Edit .env to set CONFLUENCE_BASE_URL, USERNAME, API_TOKEN
-
Run the server python confluence.py
Optional Smithery-based installation steps (if using Smithery): npx -y @smithery/cli install @MahithChigurupati/confluence-mcp-server --client claude
Additional notes
Notes and tips:
- Ensure CONFLUENCE_BASE_URL points to the Confluence REST API endpoint for your instance (commonly /rest/api).
- The API token should be generated from your Atlassian account and kept secure; avoid exposing it in logs or repository files.
- If you encounter 401/403 errors, verify that USERNAME matches the Atlassian account email and that the API token is valid.
- For CI environments, consider using environment variables securely rather than storing credentials in files.
- The server relies on standard Confluence permissions; ensure the authenticated user has access to the spaces and pages you query.
- If you change the base URL or tokens, restart the MCP server to apply changes.
Related MCP Servers
mcp-vegalite
MCP server from isaacwasserman/mcp-vegalite-server
github-chat
A Model Context Protocol (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API.
nautex
MCP server for guiding Coding Agents via end-to-end requirements to implementation plan pipeline
pagerduty
PagerDuty's official local MCP (Model Context Protocol) server which provides tools to interact with your PagerDuty account directly from your MCP-enabled client.
futu-stock
mcp server for futuniuniu stock
mcp -boilerplate
Boilerplate using one of the 'better' ways to build MCP Servers. Written using FastMCP