atlassian-custom-mcp

sdLaksh/atlassian-custom-mcp

3.1

If you are the rightful owner of atlassian-custom-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Enhanced Confluence MCP Server is a specialized server designed for Atlassian Confluence, offering advanced features like complete asset downloads, smart collaborative editing, and perfect Markdown export capabilities.

Enhanced Confluence MCP Server

A Model Context Protocol (MCP) server for Atlassian Confluence with complete asset download capabilities, smart collaborative editing, and perfect Markdown export with embedded images.

โœจ Key Features

  • ๐Ÿ“Ž Complete Asset Download: Download all images, documents, and attachments with proper embedding
  • ๐Ÿ”ง Smart Collaborative Editing: Patch-based updates with conflict detection
  • ๐Ÿ“„ Perfect Markdown Export: Clean Markdown files with embedded images
  • ๐ŸŒณ Hierarchical Downloads: Export entire page trees and spaces
  • ๐Ÿ›ก๏ธ Safe Operations: Read-only by default, intelligent conflict prevention
  • ๐Ÿ” Advanced Search: Query pages using Confluence Query Language (CQL)

๐Ÿš€ Quick Setup

1. Install Dependencies

npm install

2. Configure Environment

Copy .env.template to .env and fill in your details:

cp .env.template .env

Edit .env:

CONFLUENCE_URL=https://your-instance.atlassian.net/
ATLASSIAN_USERNAME=your-email@company.com
ATLASSIAN_API_TOKEN=your-api-token-here

3. Add to VS Code Settings

Add to ~/Library/Application Support/Code/User/settings.json:

{
  "mcp": {
    "servers": {
      "atlassian-custom-mcp": {
        "command": "node",
        "args": ["/path/to/your/atlassian-custom-mcp/mcp-server-stdio.js"],
        "cwd": "/path/to/your/atlassian-custom-mcp"
      }
    }
  }
}

4. Restart VS Code & Test

@copilot Download page tree with all child pages and attachments from confluence page 123456789 to confluence_content folder. Create Markdown files with embedded images referencing attachments/ folder.

๐ŸŽฏ Perfect Prompts for Complete Export

For Documentation Export:

@copilot Download page tree with all child pages and attachments from confluence page [PAGE_ID] to confluence_content folder. Create Markdown files with embedded images referencing attachments/ folder. Make it a complete self-contained export.

For Single Page with Assets:

@copilot Download confluence page [PAGE_ID] with all attachments and save as Markdown with embedded images to confluence_content folder

๐Ÿ”‘ Get Your API Token

  1. Visit: https://id.atlassian.com/manage-profile/security/api-tokens
  2. Create new token with label "VS Code Confluence MCP"
  3. Copy token immediately (shown only once)
  4. Add to .env file
  5. Keep secure - never commit to version control

๐Ÿงช Verify Installation

npm test

Safe test with mocked API calls - no real Confluence requests.

๐Ÿ“š Complete Documentation

โžก๏ธ - Complete usage guide with all features and prompts

โžก๏ธ - Perfect asset download and export strategies

โžก๏ธ - Real-world examples and workflows

โžก๏ธ - Safe collaborative editing strategies

๐Ÿ’ก What Makes This Special

๐Ÿ–ผ๏ธ Perfect Image Embedding

  • Downloads actual binary image data (not just metadata)
  • Converts Confluence image markup to proper Markdown syntax
  • Creates ![image.png](attachments/image.png) references
  • Self-contained documentation that works offline

๐ŸŒณ Intelligent Content Discovery

  • Finds complete page hierarchies automatically
  • Searches for child pages and related content
  • Handles both folder structures and space-wide exports
  • Avoids duplicates and manages large spaces gracefully

๐Ÿ“„ Clean Markdown Output

  • Converts Confluence storage format to readable Markdown
  • Preserves formatting (headings, bold, italic, code)
  • Includes complete metadata (page IDs, versions, dates)
  • Creates navigable file structure with meaningful names

๐Ÿ”’ Zero Risk Operations

  • READ-ONLY: Never modifies your Confluence instance
  • Smart conflict detection for collaborative editing
  • Comprehensive input validation and XSS protection
  • Extensive testing with mocked API calls

โœจ Ready! See the usage guide for all features and examples.