home / mcp / confluence mcp server
Provides Confluence REST API interactions: search, fetch, create, update, and delete Confluence pages via MCP.
Configuration
View docs{
"mcpServers": {
"masna-ai-mcp-confluence-server": {
"command": "mcp",
"args": [
"dev",
"confluence.py"
],
"env": {
"CONFLUENCE_API_BASE": "http://localhost:8090/rest/api",
"CONFLUENCE_PASSWORD": "your_password",
"CONFLUENCE_USERNAME": "your_username"
}
}
}
}This MCP server lets you interact with Confluence Data Center through REST APIs by exposing a set of endpoints that AI models can call to query, create, update, and delete Confluence pages. It’s useful for automating content management, retrieving page data, and building workflows that integrate Confluence with other tools.
You run the MCP server through the MCP command-line tool in development mode. Start it and connect your MCP client to test and use the Confluence endpoints. The server exposes operations to search, fetch, create, update, and delete Confluence pages, so you can build natural-language prompts that translate into concrete Confluence actions.
Prerequisites: Python must be installed on your system. You also need the Python package manager to install dependencies.
Step 1: Install dependencies
pip install -r requirements.txtConfiguration is done by creating a .env file in the project root with your Confluence REST API details and credentials.
CONFLUENCE_API_BASE=http://localhost:8090/rest/api
CONFLUENCE_USERNAME=your_username
CONFLUENCE_PASSWORD=your_passwordUse the MCP CLI to run the server in development mode. This starts the MCP Inspector UI for testing and debugging.
mcp dev confluence.pyIf you prefer to run the script directly, you can start the server with Python for basic testing, though this is not the standard deployment path.
python confluence.pyIf you are using Claude Desktop, you can install this server for use within that environment.
mcp install confluence.pyExecute a CQL query against Confluence to find pages that match the given criteria.
Retrieve the content of a Confluence page by its ID.
Fetch a page along with its body content for full page details.
Find pages within a specific Confluence space by key, with optional expansion of properties.
Find a page by its title within a specific space.
Create a new Confluence page with a title, content, and optional parent.
Update an existing Confluence page with new content and optionally change its title or space.
Delete a Confluence page by its ID.