A Model Context Protocol (MCP) server for Docmost — the open-source collaborative wiki.
Project description
Docmost MCP Server
An implementation of the Model Context Protocol (MCP) that allows LLM-based tools (like Claude, Cursor, or Windsurf) to interact with a Docmost wiki.
Features
The server enables the following documentation management capabilities:
Space Management
- Space Discovery: List and browse all accessible spaces where teams and projects store their documentation.
- Space Details: Retrieve comprehensive information about specific spaces, including member counts and user permissions.
Page Discovery
- Global Search: Perform full-text searches across all page titles and content in the workspace.
- Hierarchical Navigation: Browse pages in a structured sidebar format, supporting both root-level and nested child pages.
Content & Metadata
- Reading Content: Retrieve full page details, including content formatted for modern web editors.
- Importing & Creating: Seamlessly create new pages or update existing ones by importing Markdown content.
- Metadata Management: Manage page titles and icons to keep documentation organized and visually distinct.
- Page Lifecycle: Support for creating blank page skeletons and permanently deleting or trashing unwanted content.
Integration with MCP Clients
Add the server to your mcpServers configuration:
{
"mcpServers": {
"docmost": {
"command": "docmost-mcp",
"env": {
"DOCMOST_BASE_URL": "https://your-docmost-url.com",
"DOCMOST_API_TOKEN": "your-api-token"
}
}
}
}
Note: If
docmost-mcpis not in your system PATH, use the full path to the executable (e.g., the output ofwhere docmost-mcpon Windows orwhich docmost-mcpon Linux).
Technical Details
- Architecture: Built with
FastMCPfor the server layer andhttpxfor asynchronous API communication. - Validation: Uses Pydantic for environment variable validation, ensuring failures happen at startup if the configuration is invalid.
- Auth Lifecycle: Automatically manages session persistence for Community Edition and token-based authentication for Enterprise.
- Error Handling: Specifically catches API errors (404s, 401s) and returns human-readable summaries to the LLM instead of raw crash data.
Development
# Clone and setup
git clone https://github.com/Dev789/docmost-mcp-server.git
cd docmost-mcp-server
python -m venv venv
source venv/bin/activate # venv\Scripts\activate on Windows
# Editable install
pip install -e .
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file docmost_mcp-1.2.0.tar.gz.
File metadata
- Download URL: docmost_mcp-1.2.0.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a2e336d0789037b9d0cd210b2360d022711d1a3b20eb06b3d728a26e5619c41
|
|
| MD5 |
a5373ec9ba2bbf813cf48068eaadf212
|
|
| BLAKE2b-256 |
7bb5f523b31bf5c3c7608551535ccc80a03fbd06730fbb658e7a9e4eed2663c6
|
File details
Details for the file docmost_mcp-1.2.0-py3-none-any.whl.
File metadata
- Download URL: docmost_mcp-1.2.0-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17c5d9c32e3a744902663ed3e32c345efbb8138926b1605762a2f868a55a53c9
|
|
| MD5 |
b9dde9624310b989e46b2074889aaf2f
|
|
| BLAKE2b-256 |
9c023fb6ae55078b4c8bd89d6d67510da88fbae42303bea704c9ce44ddeefec5
|