Docmost MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
git clone https://github.com/aleksvin8888/local-docmost-mcp.git
cd docmost-mcp
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "base_url=${base_url}" -e "email=${email}" -e "password=${password}" docmost-mcp -- node "<FULL_PATH_TO_LOCAL_DOCMOST_MCP>/dist/index.js"

Replace <FULL_PATH_TO_LOCAL_DOCMOST_MCP>/dist/index.js with the actual folder you prepared in step 1.

Required:base_urlemailpassword+ 1 optional
README.md

Access your self-hosted Docmost documentation via AI assistants

Docmost MCP Server

An MCP server that gives AI assistants direct access to your self-hosted Docmost documentation via its API.

Works with any MCP-compatible client, including:

Features

Tool Description
list_spaces List all available documentation spaces with names, slugs, and IDs
search_docs Full-text search across all documentation, with optional space filtering
get_page Retrieve full page content converted from ProseMirror JSON to Markdown

Prerequisites

  • Python 3.10+
  • A running Docmost instance with valid user credentials
  • An MCP-compatible client (Claude Code, Claude Desktop, Cursor, VS Code, etc.)

Installation

1. Clone the repository

git clone https://github.com/aleksvin8888/local-docmost-mcp.git
cd docmost-mcp

2. Create a virtual environment and install dependencies

python3 -m venv venv
source venv/bin/activate   # Linux / macOS
# venv\Scripts\activate    # Windows

pip install -r requirements.txt

This installs two dependencies:

  • `mcp` — official Python SDK for building MCP servers
  • `requests` — HTTP client for Docmost API calls

3. Configure credentials

Copy the example config and fill in your details:

cp config.example.json config.json

Edit config.json:

{
  "base_url": "https://your-docmost-instance.example.com",
  "email": "your-email@example.com",
  "password": "your-password",
  "timeout": 30
}
Parameter Description
base_url URL of your Docmost instance (no trailing slash)
email Email address for Docmost authentication
password Password for Docmost authentication
timeout HTTP request timeout in seconds

Note: config.json contains sensitive credentials and is excluded from version control via .gitignore.

4. Verify the setup

source venv/bin/activate   # if not already active

python docmost_client.py

Expected output:

=== Spaces ===
  My Space (my-space) - 019a2a69-...
  Another Space (another) - 019a5e21-...
  ...

=== Search 'example' ===
  Example Page Title - abc123def
  ...

If you see your spaces and search results, the client is working correctly.

Connecting to an MCP client

The server uses stdio transport, which is supported by all major MCP clients. Below are setup instructions for the most popular ones.

Claude Code

Choose one of the following options.

Important: Use absolute paths to both the Python binary inside venv and mcp_server.py.

Option 1: Global config (recommended)

Add to ~/.claude/settings.json:

{
  "mcpServers": {
    "docmost": {
      "command": "/absolute/path/to/docmost-mcp/venv/bin/python",
      "args": ["/absolute/path/to/docmost-mcp/mcp_server.py"]
    }
  }
}

Option 2: Project-level config

Create .claude/settings.json in your project root:

{
  "mcpServers": {
    "docmost": {
      "command": "/absolute/path/to/docmost-mcp/venv/bin/python",
      "args": ["/absolute/path/to/docmost-mcp/mcp_server.py"]
    }
  }
}

Option 3: CLI command

claude mcp add docmost \
  -c "/absolute/path/to/docmost-mcp/venv/bin/python" \
  -- /absolute/path/to/docmost-mcp/mcp_server.py

After adding the config, restart Claude Code or start a new session.

Claude Desktop

Add the server to your Claude Desktop config file:

  • Linux: ~/.config/claude/claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "docmost": {
      "command": "/absolute/path/to/docmost-mcp/venv/bin/python",
      "args": ["/absolute/path/to/docmost-mcp/mcp_server.py"]
    }
  }
}

Restart Claude Desktop after saving the config.

Cursor / Windsurf / VS Code / Other clients

Most MCP clients use the same configuration format. Add the server with:

  • Command: /absolute/path/to/docmost-mcp/venv/bin/python
  • Args: /absolute/path/to/docmost-mcp/mcp_server.py
  • Transport: stdio

Refer to your client's documentation for the exact config file location and format.

Usage

Once the MCP server is connected, your AI assistant can use the following tools:

List all spaces

Show me all available documentation spaces

Search documentation

Search the documentation for "user permissions"

Search within a specific space

``

Tools (3)

list_spacesList all available documentation spaces with names, slugs, and IDs
search_docsFull-text search across all documentation, with optional space filtering
get_pageRetrieve full page content converted from ProseMirror JSON to Markdown

Environment Variables

base_urlrequiredURL of your Docmost instance (no trailing slash)
emailrequiredEmail address for Docmost authentication
passwordrequiredPassword for Docmost authentication
timeoutHTTP request timeout in seconds

Configuration

claude_desktop_config.json
{"mcpServers": {"docmost": {"command": "/absolute/path/to/docmost-mcp/venv/bin/python", "args": ["/absolute/path/to/docmost-mcp/mcp_server.py"]}}}

Try it

Show me all available documentation spaces in my Docmost instance.
Search the documentation for 'user permissions' and summarize the findings.
Find the page about API authentication and retrieve its content in Markdown.
Search for 'deployment guide' within the 'Engineering' space.

Frequently Asked Questions

What are the key features of Docmost MCP Server?

List all available documentation spaces. Perform full-text search across documentation. Retrieve page content converted to Markdown. Supports space-specific filtering for searches.

What can I use Docmost MCP Server for?

Quickly querying internal documentation without leaving the AI chat interface. Summarizing complex technical documentation pages into concise notes. Cross-referencing information across multiple documentation spaces. Automating the retrieval of specific setup guides or API references.

How do I install Docmost MCP Server?

Install Docmost MCP Server by running: git clone https://github.com/aleksvin8888/local-docmost-mcp.git && cd docmost-mcp && python3 -m venv venv && source venv/bin/activate && pip install -r requirements.txt

What MCP clients work with Docmost MCP Server?

Docmost MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Docmost MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare