A Model Context Protocol (MCP) server for Atlassian Confluence with complete asset download capabilities, smart collaborative editing, and perfect Markdown export with embedded images.
- 📎 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)
npm install
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
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"
}
}
}
}
@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.
@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.
@copilot Download confluence page [PAGE_ID] with all attachments and save as Markdown with embedded images to confluence_content folder
- Visit: https://id.atlassian.com/manage-profile/security/api-tokens
- Create new token with label "VS Code Confluence MCP"
- Copy token immediately (shown only once)
- Add to
.env
file - Keep secure - never commit to version control
npm test
Safe test with mocked API calls - no real Confluence requests.
➡️ USAGE_GUIDE.md - Complete usage guide with all features and prompts
➡️ ASSET_DOWNLOAD_GUIDE.md - Perfect asset download and export strategies
➡️ USAGE_EXAMPLES.md - Real-world examples and workflows
➡️ PATCH_UPDATE_GUIDE.md - Safe collaborative editing strategies
- Downloads actual binary image data (not just metadata)
- Converts Confluence image markup to proper Markdown syntax
- Creates

references - Self-contained documentation that works offline
- 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
- 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
- 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.