mcpField
A
Atlassian Confluence Data Center MCP Server (Go)

Atlassian Confluence Data Center MCP Server (Go)

Local
github.com/anudeepdMemory & Knowledge0Updated 42w ago

About Atlassian Confluence Data Center MCP Server (Go)

A Go MCP server for teams using Atlassian Confluence Data Center. It supports CQL search and content retrieval alongside page and blog post creation and updates.

Key features

  1. 01Search content with CQL
  2. 02Retrieve content by ID
  3. 03Create pages and blog posts
  4. 04Update existing content
  5. 05List and search spaces

Use cases

  1. 01Find Confluence pages with a CQL query
  2. 02Retrieve a page using its content ID
  3. 03Create or revise pages and blog posts
  4. 04Browse spaces by name or description

MCP support

Exposes Confluence Data Center search, retrieval, content management, and space-listing tools to MCP clients. It authenticates with a bearer token.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

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

Usage Modes (MCP Configuration)

If you are unsure which option to choose:

  • Use Pre-built Binary if you don’t use Go
  • Use go install if you are a Go developer

This MCP server can be used in three supported ways. Choose one based on how you want to install and run it.

Option 1: Using a Pre-Built Binary (Recommended for non-Go users)
Install

Download the appropriate binary from the Releases page and place it somewhere on your system (e.g. /usr/local/bin).

chmod +x atlassian-confluence-dc-go-mcp
MCP Configuration
{
  "mcpServers": {
    "confluence": {
      "command": "/usr/local/bin/atlassian-confluence-dc-go-mcp",
      "env": {
        "CONFLUENCE_API_TOKEN": "your-api-token",
        "CONFLUENCE_BASE_URL": "https://confluence.example.com"
      }
    }
  }
}
Option 2: Using go install (Recommended for Go users)
Install
go install github.com/anudeepd/atlassian-confluence-dc-go-mcp@latest

Ensure $GOBIN (or ~/go/bin) is in your PATH.

export PATH="$HOME/go/bin:$PATH"
MCP Configuration

Because the binary is on your PATH, you only need the command name:

{
  "mcpServers": {
    "confluence": {
      "command": "atlassian-confluence-dc-go-mcp",
      "env": {
        "CONFLUENCE_API_TOKEN": "your-api-token",
        "CONFLUENCE_BASE_URL": "https://confluence.example.com"
      }
    }
  }
}
Option 3: Running from Source (Development / Contribution)
Run directly
git clone https://github.com/anudeepd/atlassian-confluence-dc-go-mcp.git
cd atlassian-confluence-dc-go-mcp
go run .
MCP Configuration (not recommended for production)
{
  "mcpServers": {
    "confluence-dev": {
      "command": "go",
      "args": ["run", "."],
      "cwd": "/path/to/atlassian-confluence-dc-go-mcp",
      "env": {
        "CONFLUENCE_API_TOKEN": "your-api-token",
        "CONFLUENCE_BASE_URL": "https://confluence.example.com"
      }
    }
  }
}

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"

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)
Building with older Go versions

If you are using an older version of Go (e.g., 1.24) and cannot upgrade, you can modify the go.mod file:

  1. Clone the repository:

    git clone https://github.com/anudeepd/atlassian-confluence-dc-go-mcp.git
    cd atlassian-confluence-dc-go-mcp
    
  2. Edit the Go version in go.mod:

    go mod edit -go=1.24
    
  3. Tidy the modules:

    go mod tidy
    
  4. Build the project:

    go build .
    

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.2
  • Added documentation for building with older Go versions
v1.0.1 [Deprecated]
  • Fixed incorrect module path in go.mod
  • Note: This version is deprecated due to configuration issues. Please use v1.0.2+.
v1.0.0 (Initial Release) [Deprecated]
  • Complete Go rewrite of the TypeScript implementation
  • Support for all core Confluence operations
  • Multi-platform build support
  • MCP protocol compliance
  • Note: This version is deprecated due to incorrect module configuration. Please use v1.0.2+.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.