loading…
Search for a command to run...
loading…
🚀 Token-efficient MCP server for Confluence. Reduces LLM costs by 76% via Markdown conversion. Supports listing, searching, and fetching pages.
🚀 Token-efficient MCP server for Confluence. Reduces LLM costs by 76% via Markdown conversion. Supports listing, searching, and fetching pages.
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
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.
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:
This means:
# Clone the repository
git clone https://github.com/mazhar480/awesome-confluence-mcp.git
cd awesome-confluence-mcp
# Install with pip
pip install -e .
# Copy the example file
cp .env.example .env
# Edit .env with your credentials
CONFLUENCE_URL=https://your-domain.atlassian.net
[email protected]
CONFLUENCE_API_TOKEN=your_api_token_here
Add to your claude_desktop_config.json:
{
"mcpServers": {
"confluence": {
"command": "python",
"args": ["-m", "server"],
"cwd": "/path/to/awesome-confluence-mcp",
"env": {
"CONFLUENCE_URL": "https://your-domain.atlassian.net",
"CONFLUENCE_EMAIL": "[email protected]",
"CONFLUENCE_API_TOKEN": "your_api_token_here"
}
}
}
}
Add to your MCP settings:
{
"confluence": {
"command": "python",
"args": ["-m", "server"],
"cwd": "/path/to/awesome-confluence-mcp"
}
}
Make sure your .env file is configured in the project directory.
list_spacesList all Confluence spaces you have access to.
Parameters:
limit (optional): Maximum number of spaces to return (1-100, default: 25)Example:
List my Confluence spaces
Returns:
{
"total": 3,
"spaces": [
{
"key": "DOCS",
"name": "Documentation",
"type": "global",
"id": "123456",
"url": "https://your-domain.atlassian.net/wiki/spaces/DOCS"
}
]
}
search_pagesSearch 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:
Search for pages about "API documentation" in the DOCS space
Returns:
{
"total": 5,
"query": "API documentation",
"space_key": "DOCS",
"pages": [
{
"id": "789012",
"title": "REST API Documentation",
"type": "page",
"space": {
"key": "DOCS",
"name": "Documentation"
},
"version": 12,
"url": "https://your-domain.atlassian.net/wiki/spaces/DOCS/pages/789012"
}
]
}
fetch_page_markdownFetch a page and convert it to Markdown format.
Parameters:
page_id (required): The Confluence page IDExample:
Fetch page 789012 as markdown
Returns:
# REST API Documentation
**Space:** Documentation (DOCS)
**Version:** 12
**URL:** https://your-domain.atlassian.net/wiki/spaces/DOCS/pages/789012
**Labels:** api, rest, documentation
---
## Overview
This page documents our REST API endpoints...
### Authentication
All requests require an API token...
1. "List my Confluence spaces"
2. "Search for 'onboarding' pages in the HR space"
3. "Fetch page 123456 as markdown"
"Search for pages about 'authentication' and fetch the top 3 results as markdown"
The MCP server will:
.env file to version control# Install with dev dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Format code
black .
# Lint code
ruff check .
Want to test the tools without writing a full client? FastMCP includes a built-in MCP Inspector:
npx @modelcontextprotocol/inspector python server.py
This launches a web interface where you can:
Perfect for: Quick testing, debugging, and demonstrating the server to others.
If this MCP server saves you time and tokens, consider sponsoring its development:
Why sponsor?
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ for the MCP community
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"awesome-confluence-mcp": {
"command": "npx",
"args": []
}
}
}