Confluence Integration
STDIOModel Context Protocol server for interacting with Confluence Data Center via REST API.
Model Context Protocol server for interacting with Confluence Data Center via REST API.
A Model Context Protocol (MCP) server for interacting with Confluence Data Center via REST API. This server provides a set of tools that allow AI models to interact with Confluence content.
This MCP server provides the following operations for Confluence:
pip install -r requirements.txt
Create a .env
file in the project root with the following variables:
CONFLUENCE_API_BASE=http://localhost:8090/rest/api
CONFLUENCE_USERNAME=your_username
CONFLUENCE_PASSWORD=your_password
Adjust the values to match your Confluence instance.
The proper way to run an MCP server is using the MCP CLI tool with the development mode. This will start the MCP Inspector UI which allows you to test and debug the server:
mcp dev confluence.py
This will start the MCP Inspector at http://127.0.0.1:6274 by default.
MCP servers are designed to be run with the MCP CLI tool or integrated with Claude Desktop. Direct execution with Python is not the standard way to run an MCP server, but the script includes a fallback mode for testing:
python confluence.py
However, this mode has limited functionality and is only intended for basic testing.
To install the server in Claude Desktop:
mcp install confluence.py
Execute a CQL query on Confluence to search pages.
Parameters:
cql
: CQL query stringlimit
: Number of results to return (default: 10)Get the content of a Confluence page.
Parameters:
pageId
: Confluence Page IDGet a page with its body content.
Parameters:
pageId
: Confluence Page IDFind pages by space key.
Parameters:
spaceKey
: Confluence Space Keylimit
: Maximum number of results to return (default: 10)expand
: Optional comma-separated list of properties to expandFind a page by title and space key.
Parameters:
title
: Page titlespaceKey
: Confluence Space KeyCreate a new page in Confluence.
Parameters:
title
: Page titlespaceKey
: Confluence Space Keycontent
: Page content in storage format (HTML)parentId
: Optional parent page IDUpdate an existing page in Confluence.
Parameters:
pageId
: Confluence Page IDcontent
: New page content in storage format (HTML)title
: Optional new title for the pagespaceKey
: Optional space key (only needed if changing space)Delete a page by ID.
Parameters:
pageId
: Confluence Page IDOnce the server is running and connected to an AI model, you can interact with Confluence using natural language. For example:
Notes from our meeting
'"Updated meeting notes
'"MIT