Allows managing Confluence wiki pages, including creating, updating, deleting, and searching pages. Supports automatic selection of different Confluence knowledge bases based on user queries.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Wiki MCP Servercreate a new page in the GSNA knowledge base about our Q4 project status"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π Wiki MCP Server
An MCP (Model Context Protocol) Server implementation for managing Confluence wiki pages.
Supports:
Creating new wiki pages
Updating existing wiki pages
Deleting wiki pages
Searching wiki pages by keyword
Auto-selecting correct Confluence knowledge base (
alm,wpb, etc.) based on user query
Built with FastAPI, following MCP Server Best Practices, and ready for production deployment.
π Tech Stack
Python 3.10+
FastAPI
MCP SDK
Requests (for Confluence API interaction)
ContextVars (for session management)
Related MCP server: mediawiki-mcp-server
π¦ Project Structure
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βοΈ Installation
Clone the repository:
git clone https://your-repo-url/wiki_mcp_server.git
cd wiki_mcp_serverInstall dependencies:
pip install -r requirements.txt(Optional) Configure your environment variables if needed.
π Running Locally
Run the server:
cd src
uvicorn wiki_mcp_server.server:app --host 0.0.0.0 --port 9999 --reloadAfter startup, you can visit:
OpenAPI docs (Swagger UI): http://localhost:9999/docs
ReDoc docs: http://localhost:9999/redoc
π§ͺ Example Request
Headers Required:
Key | Example Value |
user_name | |
alm_confluence_base_url | |
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.
Example: Create Page
POST /create_page
{
"space_key": "TEST",
"title": "Test Page Created by MCP Server",
"content": "<p>Hello, World!</p>",
"user_query": "Please create a page in GSNA knowledge base."
}Behavior:
Server will infer
wiki_type=almfrom user_query.Create the page in Confluence and return page metadata.
π§ Auto Inference Logic
If the query mentions
gsna,global,alm-confluenceβ almIf the query mentions
wpb,wealthβ wpbOtherwise default to alm
(You can also manually specify wiki_type in input)
π³ Docker (Optional)
Build and run containerized server:
docker build -t wiki-mcp-server .
docker run -d -p 9999:9999 --name wiki-mcp-server wiki-mcp-serverπ License
MIT License.
π Contact
For issues or collaboration requests, please contact:
Developer: Shawn
Email: gsqasxb@gmail.com
Project maintained by internal MCP Working Group
---# wiki_mcp_server