Skip to main content

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.

Python 3.10+ License: MIT PyPI

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-mcp is not in your system PATH, use the full path to the executable (e.g., the output of where docmost-mcp on Windows or which docmost-mcp on Linux).

Technical Details

  • Architecture: Built with FastMCP for the server layer and httpx for 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

MIT

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

docmost_mcp-1.2.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docmost_mcp-1.2.0-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

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

Hashes for docmost_mcp-1.2.0.tar.gz
Algorithm Hash digest
SHA256 8a2e336d0789037b9d0cd210b2360d022711d1a3b20eb06b3d728a26e5619c41
MD5 a5373ec9ba2bbf813cf48068eaadf212
BLAKE2b-256 7bb5f523b31bf5c3c7608551535ccc80a03fbd06730fbb658e7a9e4eed2663c6

See more details on using hashes here.

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

Hashes for docmost_mcp-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 17c5d9c32e3a744902663ed3e32c345efbb8138926b1605762a2f868a55a53c9
MD5 b9dde9624310b989e46b2074889aaf2f
BLAKE2b-256 9c023fb6ae55078b4c8bd89d6d67510da88fbae42303bea704c9ce44ddeefec5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page