albertshao_wiki_mcp_server

albertshao_wiki_mcp_server

3.5

An MCP (Model Context Protocol) Server implementation for managing Confluence wiki pages.

The Wiki MCP Server is a robust implementation designed to manage Confluence wiki pages efficiently. It supports creating, updating, deleting, and searching wiki pages by keyword. The server is built using FastAPI and adheres to MCP Server Best Practices, making it suitable for production deployment. It features auto-selection of the correct Confluence knowledge base based on user queries, ensuring seamless integration with different Confluence environments. The server is developed with Python 3.10+ and utilizes the MCP SDK for enhanced functionality. It also incorporates session management using ContextVars and interacts with the Confluence API through the Requests library.

Features

  • Create, update, and delete Confluence wiki pages.
  • Search wiki pages by keyword.
  • Auto-selects the correct Confluence knowledge base based on user query.
  • Built with FastAPI for high performance and scalability.
  • Follows MCP Server Best Practices for production readiness.

MCP Tools

  • tools.py: Defines MCP tool functionalities for interacting with Confluence.

MCP Resources

  • {'name': 'resources.py', 'description': 'Contains MCP resource definitions for managing Confluence interactions.'}

Usage with Different Platforms

local

bash
cd src
uvicorn wiki_mcp_server.server:app --host 0.0.0.0 --port 9999 --reload

docker

bash
docker build -t wiki-mcp-server .
docker run -d -p 9999:9999 --name wiki-mcp-server wiki-mcp-server

Frequently Asked Questions

What happens if required headers are missing?

The server will return an HTTP 400 error if required headers are missing or invalid.

How does the server infer the correct wiki type?

The server uses keywords in the user query to infer the wiki type, defaulting to 'alm' if no specific keywords are found.