Enables secure integration with Atlassian Cloud services to access documentation through API token authentication.
Provides tools to browse spaces, search for pages by title or content, and fetch Confluence documentation converted into token-efficient Markdown.
π Awesome Confluence MCP Server
The most token-efficient way for AI agents to browse and analyze Confluence documentation.
Topics: mcp-server python confluence-api ai-agents token-optimization markdown fastmcp
π Token Savings at a Glance
Typical Confluence Page (2,000 words):
Format | Tokens (Avg) | Cost (GPT-4o) | Savings |
Raw HTML | 2,500 | $0.075 | - |
Your Markdown | 600 | $0.018 | 76% |
Save 60-80% on LLM tokens by converting Confluence pages to clean Markdown format.
A professional Model Context Protocol (MCP) server that provides token-efficient Confluence integration. Fetch, search, and convert Confluence pages to Markdown, dramatically reducing token consumption while preserving formatting and structure.
π‘ Why Markdown Matters
The Token-Saving Advantage:
When working with LLMs, every token counts. Confluence pages in raw HTML format consume 3-5x more tokens than the same content in Markdown:
HTML Format: ~2,500 tokens for a typical page
Markdown Format: ~500-800 tokens for the same page
Savings: 60-80% reduction in token usage
This means:
β Lower API costs - Fewer tokens = less money spent
β Faster responses - Less data to process
β Better context - Fit more pages in your context window
β Cleaner output - Markdown is easier for LLMs to understand and work with
β¨ Features
π List Spaces - Browse all accessible Confluence spaces
π Search Pages - Find pages by title or content with optional space filtering
π Fetch as Markdown - Convert any Confluence page to clean, token-efficient Markdown
π Secure Authentication - Uses Atlassian API tokens (never store passwords)
β‘ Fast & Reliable - Built with FastMCP for optimal performance
π‘οΈ Error Handling - Comprehensive validation and helpful error messages
π Quick Start
1. Installation
2. Get Your Atlassian API Token
Go to Atlassian API Tokens
Click Create API token
Give it a name (e.g., "MCP Server")
Copy the token (you won't see it again!)
3. Configure Environment
4. Configure Your MCP Client
For Claude Desktop
Add to your claude_desktop_config.json:
For Cline (VS Code Extension)
Add to your MCP settings:
Make sure your .env file is configured in the project directory.
π§ Available Tools
list_spaces
List all Confluence spaces you have access to.
Parameters:
limit(optional): Maximum number of spaces to return (1-100, default: 25)
Example:
Returns:
search_pages
Search for pages by title or content.
Parameters:
query(required): Search term to match against titles and contentspace_key(optional): Limit search to a specific spacelimit(optional): Maximum results to return (1-50, default: 10)
Example:
Returns:
fetch_page_markdown
Fetch a page and convert it to Markdown format.
Parameters:
page_id(required): The Confluence page ID
Example:
Returns:
π― Usage Examples
Example 1: Find and Read Documentation
Example 2: Research a Topic
The MCP server will:
Search for relevant pages
Return the search results
Fetch each page and convert to Markdown
Provide clean, token-efficient content for analysis
π Security Best Practices
β Never commit your
.envfile to version controlβ Use API tokens instead of passwords
β Rotate tokens regularly
β Limit token scope to only what's needed
β Store tokens securely in environment variables
π οΈ Development
π§ͺ Testing with MCP Inspector
Want to test the tools without writing a full client? FastMCP includes a built-in MCP Inspector:
This launches a web interface where you can:
β Test all three tools interactively
β See real-time request/response data
β Validate your Confluence credentials
β Experiment with different parameters
Perfect for: Quick testing, debugging, and demonstrating the server to others.
π° Sponsorship & Support
If this MCP server saves you time and tokens, consider sponsoring its development:
Individual Developers: GitHub Sponsors
Corporate Teams: I support GitHub Invoiced Billing for bulk sponsorships. Contact me for custom MCP development and enterprise support.
Why sponsor?
Priority bug fixes and feature requests
Custom tool development for your workflow
Direct support and consultation
Help maintain this free, open-source tool
π€ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Acknowledgments
Built with FastMCP
Powered by Atlassian Confluence API
Markdown conversion by markdownify
π Support
Issues: GitHub Issues
Discussions: GitHub Discussions
Made with β€οΈ for the MCP community