mcpField
πŸ“š
πŸ“š Wiki MCP Server

πŸ“š Wiki MCP Server

Local
github.com/albertshaoMemory & Knowledge2Updated 77w ago

About πŸ“š Wiki MCP Server

Wiki MCP Server lets teams manage Confluence wiki pages through an MCP server. It supports page edits and keyword search, and infers which Confluence knowledge base to use from the query.

Key features

  1. 01Create, update, and delete pages
  2. 02Search pages by keyword
  3. 03Infer Confluence wiki type from query
  4. 04Manually specify wiki type

Use cases

  1. 01Create a page in the selected wiki
  2. 02Revise or remove an existing page
  3. 03Find pages matching a keyword

MCP support

Provides MCP tools, prompts, and resources for working with Confluence wiki pages. MCP clients can use it to create, update, delete, and search pages.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json Β· Universal config
{
"mcpServers": {
"wiki_mcp_server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"build"
]
}
}
}
Run commanddocker run -i --rm build

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
ocibuild

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

πŸ“š 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)

πŸ“¦ 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

  1. Clone the repository:
git clone https://your-repo-url/wiki_mcp_server.git
cd wiki_mcp_server
  1. Install dependencies:
pip install -r requirements.txt
  1. (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 --reload

After startup, you can visit:


πŸ§ͺ Example Request

Headers Required:
KeyExample Value
user_name[email protected]
alm_confluence_base_urlhttps://your-confluence-site/wiki/rest/api
alm_confluence_api_tokenyour-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=alm from user_query.
  • Create the page in Confluence and return page metadata.

🧠 Auto Inference Logic

  • If the query mentions gsna, global, alm-confluence β†’ alm
  • If the query mentions wpb, wealth β†’ wpb
  • Otherwise 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: [email protected]
  • Project maintained by internal MCP Working Group

---# wiki_mcp_server

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.