Confluence Attachment
FreeNot checkedMCP server for AI assistants to download Confluence attachments
About
MCP server for AI assistants to download Confluence attachments
README
A Model Context Protocol (MCP) server that enables AI assistants to download and read attachments from Confluence pages.
Features
- 🔍 Page Search: Search Confluence pages by title
- 📄 Page Information: Get page details and attachment count
- 📎 Attachment Management: List and download attachments
- ⬇️ Batch Download: Download all attachments from a page
- 📖 Content Reading: Read and analyze downloaded files
- 📁 File Management: List and manage downloaded files
- 🐳 Docker Optimized: Multi-stage build with Alpine Linux
- 🔧 Modular Architecture: Clean, maintainable code structure
- 🛡️ Security: Non-root user execution
- 📊 Health Checks: Built-in container health monitoring
Quick Start
Prerequisites
- Python 3.11+
- Docker (recommended)
- Confluence API access
Docker Image
- Image Name:
confluence-attachment-mcp:latest - Size: ~183MB (optimized Alpine Linux)
- Base: Python 3.11-alpine
- Architecture: Multi-stage build for optimization
Environment Setup
Create a .env file:
CONFLUENCE_URL=https://your-domain.atlassian.net
[email protected]
CONFLUENCE_API_TOKEN=your-api-token
CONFLUENCE_SPACE_KEY=YOUR_SPACE_KEY
MCP_SERVER_NAME=confluence-attachments
MCP_SERVER_VERSION=1.0.0
Docker (Recommended)
# Build and run
./scripts/run.sh
# Or manually
docker build -f config/Dockerfile -t confluence-attachment-mcp:latest .
docker run -d --name confluence-mcp \
-e CONFLUENCE_URL="https://your-domain.atlassian.net/wiki" \
-e CONFLUENCE_USERNAME="[email protected]" \
-e CONFLUENCE_API_TOKEN="your-api-token" \
-e CONFLUENCE_SPACE_KEY="YOUR_SPACE_KEY" \
-v $(pwd)/downloads:/app/downloads \
confluence-attachment-mcp:latest
Local Development
# Install dependencies
pip install -r requirements.txt
# Run server
python main.py
MCP Configuration
Cursor Integration
Add to your Cursor MCP configuration:
{
"mcpServers": {
"confluence-attachments": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--name",
"confluence-attachments-mcp",
"-e",
"CONFLUENCE_URL",
"-e",
"CONFLUENCE_USERNAME",
"-e",
"CONFLUENCE_API_TOKEN",
"-e",
"CONFLUENCE_SPACE_KEY",
"-v",
"${workspaceFolder}/downloads:/app/downloads",
"confluence-attachment-mcp:latest"
],
"env": {
"MCP_VERBOSE": "true",
"CONFLUENCE_URL": "https://your-domain.atlassian.net/wiki",
"CONFLUENCE_USERNAME": "[email protected]",
"CONFLUENCE_API_TOKEN": "your-api-token-here",
"CONFLUENCE_SPACE_KEY": "YOUR_SPACE_KEY"
}
}
}
}
Available Tools
| Tool | Description | Parameters |
|---|---|---|
confluence_search_pages_by_title |
Search pages by title | title, space_key |
confluence_get_page_info |
Get page details | page_id |
confluence_get_page_attachments |
List page attachments | page_id |
confluence_download_attachment |
Download single attachment | page_id, attachment_title, filename |
confluence_download_all_attachments |
Download all attachments | page_id |
confluence_read_attachment_content |
Read file content | filename |
confluence_list_downloaded_files |
List downloaded files | None |
Usage Examples
Search for Project Documents
confluence_search_pages_by_title("Project Plan", "DEV")
Download Specific Attachment
confluence_download_attachment("12345", "pdf-test.pdf")
Download All Attachments
confluence_download_all_attachments("12345")
Read File Content
confluence_read_attachment_content("project_plan.pdf")
Project Structure
confluence-attachment-mcp/
├── src/
│ ├── mcp_server/ # MCP server implementation
│ ├── confluence/ # Confluence integration
│ └── utils/ # Utility classes
├── config/ # Configuration files
├── scripts/ # Build and deployment scripts
├── docs/ # Documentation
├── examples/ # Usage examples
├── main.py # Entry point
├── requirements.txt # Python dependencies
├── pyproject.toml # Project configuration
└── README.md # This file
Development
Setup Development Environment
# Install development dependencies
pip install -r requirements.txt
pip install -e .
# Run tests
pytest
# Code formatting
black src/
flake8 src/
mypy src/
Building Docker Image
# Build image
docker build -f config/Dockerfile -t confluence-attachment-mcp:latest .
# Run container
docker run -it --rm confluence-attachment-mcp:latest
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
- Create an issue for bugs or feature requests
- Check the documentation in the
docs/folder - Review existing issues for solutions
Changelog
v1.0.0
- Initial release
- Basic MCP server functionality
- Confluence attachment management
- Docker support
- Modular code architecture
- Multi-stage Docker optimization
- Security improvements (non-root user)
- Health check implementation
- Enhanced error handling
- File type detection and content reading
Installing Confluence Attachment
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/choipureum/confluence-attachment-mcp-serverFAQ
Is Confluence Attachment MCP free?
Yes, Confluence Attachment MCP is free — one-click install via Unyly at no cost.
Does Confluence Attachment need an API key?
No, Confluence Attachment runs without API keys or environment variables.
Is Confluence Attachment hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Confluence Attachment in Claude Desktop, Claude Code or Cursor?
Open Confluence Attachment on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Opencode Omniroute Plugin
OpenCode plugin for the OmniRoute AI Gateway. Drives dynamic model discovery, /connect auth flow, and multi-instance OmniRoute providers via the official @openc
by GitHub ActionsRoblox Studio
Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce
by paralovAntigravity Drawio
MCP server that enables AI assistants to create, parse, render, and validate Draw.io diagrams programmatically.
by S-SUJAN-SFetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
by lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
Compare Confluence Attachment with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
