home / mcp / confluence mcp server
Provides direct Confluence access via MCP to spaces, pages, search, and page management.
Configuration
View docs{
"mcpServers": {
"dsazz-mcp-confluence": {
"command": "bunx",
"args": [
"-y",
"@dsazz/mcp-confluence@latest"
],
"env": {
"CONFLUENCE_HOST_URL": "https://your-domain.atlassian.net",
"CONFLUENCE_API_TOKEN": "your-confluence-api-token",
"CONFLUENCE_USER_EMAIL": "[email protected]"
}
}
}
}You can run a Confluence MCP Server to access Confluence spaces, pages, and search capabilities directly from your editor or development environment. This server brings Confluence content and operations to your MCP-enabled tools, so you can browse spaces, view page details, search with text or CQL, and perform create, update, and delete actions without leaving your workflow.
Configure your MCP client to connect to the Confluence Tools server via a local MCP runtime. This server runs as an MCP stdio process, allowing you to execute Confluence operations directly from your editor or IDE. Use the provided configuration examples to enable space browsing, page details, hierarchy navigation, and full CRUD actions on pages.
Once configured, you can ask your MCP client to browse Confluence spaces, fetch page details with content, explore child pages for navigation, and create, update, or delete pages. You can also perform searches using plain text or advanced Confluence Query Language (CQL) to filter by space, content type, and sort results. All results render with readable markdown and direct links to Confluence when supported by your client.
With the server running, you can start experimenting by asking for Confluence spaces and pages, then expanding into page creation or updates as your workflow requires. Your MCP client will route requests to the Confluence MCP server and present the results in your editor alongside your code.
Prerequisites: you need a running MCP-capable client and a runtime that can host MCP servers. The Confluence MCP Server provided here uses Bun and the bunx command for quick start.
1) Install Bun (the runtime used to run bunx commands): install Bun from https://bun.sh and follow the on-screen instructions.
2) Add the Confluence Tools MCP server to your editor or MCP client configuration. Use the Bunx-based command shown to start the server via MCP.
3) Start using the server by loading your MCP client and ensuring the environment variables are set for Confluence access.
Below are configuration examples you can paste into your MCP client settings. Use the host URL for your Confluence instance, your Atlassian account email, and a generated API token.
{
"mcpServers": {
"Confluence Tools": {
"command": "bunx",
"args": ["-y", "@dsazz/mcp-confluence@latest"],
"env": {
"CONFLUENCE_HOST_URL": "https://your-domain.atlassian.net",
"CONFLUENCE_USER_EMAIL": "[email protected]",
"CONFLUENCE_API_TOKEN": "your-confluence-api-token"
}
}
}
}{
"mcpServers": {
"Confluence Tools": {
"command": "npx",
"args": ["-y", "@dsazz/mcp-confluence@latest"],
"env": {
"CONFLUENCE_HOST_URL": "https://your-domain.atlassian.net",
"CONFLUENCE_USER_EMAIL": "[email protected]",
"CONFLUENCE_API_TOKEN": "your-confluence-api-token"
}
}
}
}After adding the configuration, restart your MCP client and test the connection by asking to show your Confluence spaces. For example, say or type a request like βShow me my Confluence spaces.β If the server is running, you will receive a list of accessible spaces with links to each space.
If you are developing or customizing this MCP server, you can run the inspector to test capabilities and inspect JSON traffic. Start the inspector and visit its UI to verify routes and responses.
Common issues include incorrect Confluence host URL, invalid API token, or mismatched user email. Double-check these values in your environment or MCP configuration. If you encounter port conflicts during testing, ensure your editorβs MCP inspector and the Confluence server are not occupying the same port.
Store Confluence credentials securely. Do not hard-code tokens in shared configurations. Use environment variables or secret management features provided by your development environment. Rotate API tokens regularly and limit token permissions to the minimum required for your use case.
NPM Installation Issues
If you encounter a package-not-found error, ensure you are using the exact package name and try installing via the preferred package manager shown in your setup. If needed, install directly from the npm registry.Environment Variables Not Found If the server fails to start due to missing environment variables, create a local environment file or provide the variables in your MCP client configuration. Ensure CONFLUENCE_HOST_URL, CONFLUENCE_USER_EMAIL, and CONFLUENCE_API_TOKEN are set correctly.
API Connection Issues Invalid credentials or URL can prevent connections. Verify the API token and email, and ensure the host URL includes https://. If network policies restrict outbound access, adjust firewall or VPN settings accordingly.
List accessible Confluence spaces with optional filtering and pagination.
Retrieve detailed information about a specific space by its key.
Fetch all pages within a given space, with optional pagination.
Get detailed information about a page, including content when requested.
Obtain child pages for a page to navigate the hierarchy.
Search pages using text queries or advanced CQL with optional filtering and ordering.
Create a new page in a specified space with given content.
Update an existing page with new content and metadata.
Delete a page by its ID and return a confirmation.