Model Context Protocol server for managing Confluence wiki pages with capabilities to create, update, delete, and search pages, featuring automatic knowledge base selection based on user queries and built for scalable production deployment.
Unlock the full potential of Wiki MCP Server through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Free tier available • No credit card required
Discover shared experiences
An MCP (Model Context Protocol) Server implementation for managing Confluence wiki pages.
Supports:
alm
, wpb
, etc.) based on user queryBuilt with FastAPI, following MCP Server Best Practices, and ready for production deployment.
wiki_mcp_server/ ├── src/wiki_mcp_server/ │ ├── server.py # MCP server entry point │ ├── service.py # Business logic (Confluence API interactions) │ ├── tools.py # MCP tool definitions │ ├── prompts.py # MCP prompt definitions │ ├── resources.py # MCP resource definitions │ ├── utils.py # Helper functions (wiki_type inference etc.) │ ├── utils/session_context.py # Session context manager │ └── middleware.py # Authentication and session initialization middleware ├── Dockerfile # Container configuration ├── requirements.txt # Python dependencies ├── README.md # Project documentation ├── smithery.yaml # Smithery integration config (optional) └── pyproject.toml # Python project metadata
git clone https://your-repo-url/wiki_mcp_server.git cd wiki_mcp_server
pip install -r requirements.txt
Run the server:
cd src uvicorn wiki_mcp_server.server:app --host 0.0.0.0 --port 9999 --reload
After startup, you can visit:
Key | Example Value |
---|---|
user_name | john.doe@domain.com |
alm_confluence_base_url | https://your-confluence-site/wiki/rest/api |
alm_confluence_api_token | your-api-token |
wpb_confluence_base_url | (optional if available) |
wpb_confluence_api_token | (optional if available) |
⚠️ If headers are missing or invalid, server will return HTTP 400 error.
POST /create_page
{ "space_key": "TEST", "title": "Test Page Created by MCP Server", "content": "Hello, World!", "user_query": "Please create a page in GSNA knowledge base." }
Behavior:
wiki_type=alm
from user_query.gsna
, global
, alm-confluence
→ almwpb
, wealth
→ wpb(You can also manually specify wiki_type
in input)
Build and run containerized server:
docker build -t wiki-mcp-server . docker run -d -p 9999:9999 --name wiki-mcp-server wiki-mcp-server
MIT License.
For issues or collaboration requests, please contact:
---# wiki_mcp_server
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!