Sponsored by Deepsite.site

Atlassian Confluence Data Center MCP Server (Go)

Created By
anudeepda month ago
A Go implementation of the Model Context Protocol (MCP) server for Atlassian Confluence Data Center
Content

Atlassian Confluence Data Center MCP Server (Go)

Go Version MCP License

A Model Context Protocol (MCP) server implementation in Go for interacting with Atlassian Confluence Data Center edition. This server enables AI assistants and other MCP clients to read, search, create, and update Confluence content programmatically.

Note: This is a Go rewrite of the original TypeScript implementation. Special thanks to b1ff/atlassian-dc-mcp for the original implementation that inspired this project.

Features

  • Search & Retrieve: Search for content using CQL (Confluence Query Language) and retrieve content by ID
  • Content Management: Create new pages and blog posts, update existing content
  • Space Management: List and search Confluence spaces
  • Secure Authentication: Bearer token authentication support
  • High Performance: Built with Go for speed and efficiency
  • Zero Dependencies: Minimal external dependencies, uses standard library where possible

Tools

The server provides the following MCP tools:

confluence_get_content

Get Confluence content by ID from the Confluence Data Center edition instance.

Arguments:

  • contentId (string, required): Confluence Data Center content ID
  • expand (string, optional): Comma-separated list of properties to expand

confluence_search_content

Search for content in Confluence Data Center edition instance using CQL.

Arguments:

  • cql (string, required): Confluence Query Language (CQL) search string for Confluence Data Center
  • limit (number, optional): Maximum number of results to return (default: 25)
  • start (number, optional): The starting index of the results to return
  • expand (string, optional): Comma-separated list of properties to expand

confluence_create_content

Create new content in Confluence Data Center edition instance.

Arguments:

  • title (string, required): The title of the new content
  • spaceKey (string, required): The key of the space where content will be created
  • content (string, required): The content of the page in Confluence storage format
  • type (string, optional): The type of content (page or blogpost)
  • parentId (string, optional): The ID of the parent content

confluence_update_content

Update existing content in Confluence Data Center edition instance.

Arguments:

  • contentId (string, required): The ID of the content to update
  • version (number, optional): The new version number (defaults to current version + 1)
  • title (string, optional): New title for the content
  • content (string, optional): New content in storage format
  • versionComment (string, optional): A comment for the new version

confluence_list_spaces

List and search for spaces in Confluence Data Center edition instance.

Arguments:

  • searchText (string, optional): Text to search for in space names or descriptions (returns all spaces if omitted)
  • limit (number, optional): Maximum number of spaces to return
  • start (number, optional): The starting index of the results to return
  • expand (string, optional): Comma-separated list of properties to expand

Installation

Prerequisites

  • Go 1.25.5 or higher
  • Access to a Confluence Data Center instance
  • Confluence API token

Download Binaries

Download the latest pre-built binaries for your system from the Releases page.

From Source

# Clone the repository
git clone https://github.com/anudeepd/atlassian-confluence-dc-go-mcp.git
cd atlassian-confluence-dc-go-mcp

# Build the binary
go build .

# Or build for a specific platform (e.g., linux-amd64, windows-amd64, macos-arm64)
./build.sh linux-amd64

# Or install directly to your GOPATH
go install

Using Go Install

go install github.com/anudeepd/atlassian-confluence-dc-go-mcp@latest

Configuration

The server requires the following environment variables:

Required Variables

  • CONFLUENCE_API_TOKEN: Your Confluence API token (Bearer token)
  • CONFLUENCE_BASE_URL: The base URL of your Confluence instance (e.g., https://confluence.example.com)

Alternative URL Variables

You can also use one of these instead of CONFLUENCE_BASE_URL:

  • CONFLUENCE_API_BASE_PATH: Full API path
  • CONFLUENCE_HOST: Just the hostname (will be prefixed with https://)

The server will automatically append /rest/api to the base URL if not present.

Example Configuration

export CONFLUENCE_API_TOKEN="your-api-token-here"
export CONFLUENCE_BASE_URL="https://confluence.example.com"

Usage

Using with Claude Desktop / Claude Code

Add the following to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Linux: ~/.config/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "confluence": {
      "command": "/path/to/atlassian-confluence-dc-go-mcp",
      "env": {
        "CONFLUENCE_API_TOKEN": "your-api-token",
        "CONFLUENCE_BASE_URL": "https://confluence.example.com"
      }
    }
  }
}

Using with Other MCP Clients

The server communicates via stdio using the MCP protocol. Any MCP-compatible client can connect to it by spawning the process and communicating over stdin/stdout.

Development

Running Tests

# Run all tests
go test -v

# Run tests with coverage
go test -v -cover

# Generate coverage report
go test -coverprofile=coverage.out
go tool cover -html=coverage.out

Building

# Build for current platform
go build .

# Build for multiple platforms
./build.sh

The build.sh script creates binaries for:

  • Linux (amd64, arm64)
  • macOS (amd64, arm64)
  • Windows (amd64, arm64)

Project Structure

.
├── main.go           # Main server implementation
├── main_test.go      # Comprehensive test suite
├── go.mod            # Go module dependencies
├── go.sum            # Dependency checksums
├── build.sh          # Multi-platform build script
└── README.md         # This file

API Reference

Confluence REST API

This server uses the Confluence Data Center REST API v1. For more information about the API endpoints and CQL syntax, see:

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Support

For issues, questions, or contributions, please open an issue on GitHub.

Changelog

v1.0.0 (Initial Release)

  • Complete Go rewrite of the TypeScript implementation
  • Support for all core Confluence operations
  • Multi-platform build support
  • MCP protocol compliance

Server Config

{
  "mcpServers": {
    "confluence": {
      "command": "/path/to/atlassian-confluence-dc-go-mcp",
      "env": {
        "CONFLUENCE_API_TOKEN": "your-api-token",
        "CONFLUENCE_BASE_URL": "https://confluence.example.com"
      }
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Serper MCP ServerA Serper MCP Server
CursorThe AI Code Editor
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
ChatWiseThe second fastest AI chatbot™
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Tavily Mcp
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Playwright McpPlaywright MCP server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
DeepChatYour AI Partner on Desktop
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
WindsurfThe new purpose-built IDE to harness magic
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Amap Maps高德地图官方 MCP Server