D

Docmost MCP Remote

by bbik52 · io.github.bbik52/docmost-mcp-remote

Enables AI clients to read and edit a self-hosted wiki as each member’s own account, with mandatory OAuth 2.1 or bearer-token authentication, scoped write/delete permissions, encrypted pre-change snapshots, and safe page/comment operations.

oci Unknown transport GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-bbik52-docmost-mcp-remote": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "DOCMOST_URL=<YOUR_VALUE>",
        "-e",
        "DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "SECRET_KEY=<YOUR_VALUE>",
        "-e",
        "HOST=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "IMAGE_TAG=<YOUR_VALUE>",
        "-e",
        "LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "RELOGIN_MODE=<YOUR_VALUE>",
        "-e",
        "ALLOWED_EMAILS=<YOUR_VALUE>",
        "-e",
        "ALLOWED_SPACES=<YOUR_VALUE>",
        "-e",
        "MAX_PAGE_CHARS=<YOUR_VALUE>",
        "-e",
        "FORWARDED_ALLOW_IPS=<YOUR_VALUE>",
        "-e",
        "SECRET_KEY_PREVIOUS=<YOUR_VALUE>",
        "-e",
        "AUDIT_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "TOOL_CALLS_PER_MINUTE=<YOUR_VALUE>",
        "-e",
        "DOCMOST_TIMEOUT_SECONDS=<YOUR_VALUE>",
        "-e",
        "SNAPSHOT_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "DOCMOST_MAX_RESPONSE_BYTES=<YOUR_VALUE>",
        "-e",
        "DOCMOST_ALLOW_INSECURE_HTTP=<YOUR_VALUE>",
        "ghcr.io/bbik52/docmost-mcp-remote:1.3.0"
      ]
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-bbik52-docmost-mcp-remote": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "DOCMOST_URL=<YOUR_VALUE>",
        "-e",
        "DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "SECRET_KEY=<YOUR_VALUE>",
        "-e",
        "HOST=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "IMAGE_TAG=<YOUR_VALUE>",
        "-e",
        "LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "RELOGIN_MODE=<YOUR_VALUE>",
        "-e",
        "ALLOWED_EMAILS=<YOUR_VALUE>",
        "-e",
        "ALLOWED_SPACES=<YOUR_VALUE>",
        "-e",
        "MAX_PAGE_CHARS=<YOUR_VALUE>",
        "-e",
        "FORWARDED_ALLOW_IPS=<YOUR_VALUE>",
        "-e",
        "SECRET_KEY_PREVIOUS=<YOUR_VALUE>",
        "-e",
        "AUDIT_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "TOOL_CALLS_PER_MINUTE=<YOUR_VALUE>",
        "-e",
        "DOCMOST_TIMEOUT_SECONDS=<YOUR_VALUE>",
        "-e",
        "SNAPSHOT_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "DOCMOST_MAX_RESPONSE_BYTES=<YOUR_VALUE>",
        "-e",
        "DOCMOST_ALLOW_INSECURE_HTTP=<YOUR_VALUE>",
        "ghcr.io/bbik52/docmost-mcp-remote:1.3.0"
      ]
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-bbik52-docmost-mcp-remote": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "DOCMOST_URL=<YOUR_VALUE>",
        "-e",
        "DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "SECRET_KEY=<YOUR_VALUE>",
        "-e",
        "HOST=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "IMAGE_TAG=<YOUR_VALUE>",
        "-e",
        "LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "RELOGIN_MODE=<YOUR_VALUE>",
        "-e",
        "ALLOWED_EMAILS=<YOUR_VALUE>",
        "-e",
        "ALLOWED_SPACES=<YOUR_VALUE>",
        "-e",
        "MAX_PAGE_CHARS=<YOUR_VALUE>",
        "-e",
        "FORWARDED_ALLOW_IPS=<YOUR_VALUE>",
        "-e",
        "SECRET_KEY_PREVIOUS=<YOUR_VALUE>",
        "-e",
        "AUDIT_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "TOOL_CALLS_PER_MINUTE=<YOUR_VALUE>",
        "-e",
        "DOCMOST_TIMEOUT_SECONDS=<YOUR_VALUE>",
        "-e",
        "SNAPSHOT_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "DOCMOST_MAX_RESPONSE_BYTES=<YOUR_VALUE>",
        "-e",
        "DOCMOST_ALLOW_INSECURE_HTTP=<YOUR_VALUE>",
        "ghcr.io/bbik52/docmost-mcp-remote:1.3.0"
      ]
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-bbik52-docmost-mcp-remote": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "DOCMOST_URL=<YOUR_VALUE>",
        "-e",
        "DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "SECRET_KEY=<YOUR_VALUE>",
        "-e",
        "HOST=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "IMAGE_TAG=<YOUR_VALUE>",
        "-e",
        "LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "RELOGIN_MODE=<YOUR_VALUE>",
        "-e",
        "ALLOWED_EMAILS=<YOUR_VALUE>",
        "-e",
        "ALLOWED_SPACES=<YOUR_VALUE>",
        "-e",
        "MAX_PAGE_CHARS=<YOUR_VALUE>",
        "-e",
        "FORWARDED_ALLOW_IPS=<YOUR_VALUE>",
        "-e",
        "SECRET_KEY_PREVIOUS=<YOUR_VALUE>",
        "-e",
        "AUDIT_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "TOOL_CALLS_PER_MINUTE=<YOUR_VALUE>",
        "-e",
        "DOCMOST_TIMEOUT_SECONDS=<YOUR_VALUE>",
        "-e",
        "SNAPSHOT_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "DOCMOST_MAX_RESPONSE_BYTES=<YOUR_VALUE>",
        "-e",
        "DOCMOST_ALLOW_INSECURE_HTTP=<YOUR_VALUE>",
        "ghcr.io/bbik52/docmost-mcp-remote:1.3.0"
      ]
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-bbik52-docmost-mcp-remote": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "DOCMOST_URL=<YOUR_VALUE>",
        "-e",
        "DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "SECRET_KEY=<YOUR_VALUE>",
        "-e",
        "HOST=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "IMAGE_TAG=<YOUR_VALUE>",
        "-e",
        "LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "RELOGIN_MODE=<YOUR_VALUE>",
        "-e",
        "ALLOWED_EMAILS=<YOUR_VALUE>",
        "-e",
        "ALLOWED_SPACES=<YOUR_VALUE>",
        "-e",
        "MAX_PAGE_CHARS=<YOUR_VALUE>",
        "-e",
        "FORWARDED_ALLOW_IPS=<YOUR_VALUE>",
        "-e",
        "SECRET_KEY_PREVIOUS=<YOUR_VALUE>",
        "-e",
        "AUDIT_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "TOOL_CALLS_PER_MINUTE=<YOUR_VALUE>",
        "-e",
        "DOCMOST_TIMEOUT_SECONDS=<YOUR_VALUE>",
        "-e",
        "SNAPSHOT_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "DOCMOST_MAX_RESPONSE_BYTES=<YOUR_VALUE>",
        "-e",
        "DOCMOST_ALLOW_INSECURE_HTTP=<YOUR_VALUE>",
        "ghcr.io/bbik52/docmost-mcp-remote:1.3.0"
      ]
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-bbik52-docmost-mcp-remote": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "DOCMOST_URL=<YOUR_VALUE>",
        "-e",
        "DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "SECRET_KEY=<YOUR_VALUE>",
        "-e",
        "HOST=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "IMAGE_TAG=<YOUR_VALUE>",
        "-e",
        "LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "RELOGIN_MODE=<YOUR_VALUE>",
        "-e",
        "ALLOWED_EMAILS=<YOUR_VALUE>",
        "-e",
        "ALLOWED_SPACES=<YOUR_VALUE>",
        "-e",
        "MAX_PAGE_CHARS=<YOUR_VALUE>",
        "-e",
        "FORWARDED_ALLOW_IPS=<YOUR_VALUE>",
        "-e",
        "SECRET_KEY_PREVIOUS=<YOUR_VALUE>",
        "-e",
        "AUDIT_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "TOOL_CALLS_PER_MINUTE=<YOUR_VALUE>",
        "-e",
        "DOCMOST_TIMEOUT_SECONDS=<YOUR_VALUE>",
        "-e",
        "SNAPSHOT_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "DOCMOST_MAX_RESPONSE_BYTES=<YOUR_VALUE>",
        "-e",
        "DOCMOST_ALLOW_INSECURE_HTTP=<YOUR_VALUE>",
        "ghcr.io/bbik52/docmost-mcp-remote:1.3.0"
      ]
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
PUBLIC_URL Yes Public https URL of this server Default: http://localhost:8000
DOCMOST_URL Yes Base URL of your Docmost
DATABASE_URL secret Yes Postgres URL (postgresql://user:password@host/db)
SECRET_KEY secret Yes At least 32 characters; encrypts stored Docmost sessions and signs cookies
HOST No Listen address Default: 0.0.0.0
PORT No Listen port Default: 8000
IMAGE_TAG No Image tag used by compose.yaml Default: 1
LOG_LEVEL No debug, info, warning or error Default: info
RELOGIN_MODE No ask: members sign in again when their Docmost session expires; stored_password: the password is kept encrypted and used to sign in again Default: ask
ALLOWED_EMAILS No Comma-separated emails allowed to sign in; empty allows every Docmost user
ALLOWED_SPACES No Comma-separated space slugs or ids members may use through this server; empty allows all
MAX_PAGE_CHARS No Longest page body returned; longer bodies are truncated Default: 60000
FORWARDED_ALLOW_IPS No Proxies trusted for X-Forwarded-For (* in the compose file) Default: 127.0.0.1
SECRET_KEY_PREVIOUS No The old key during a rotation
AUDIT_RETENTION_DAYS No Days an audit log entry is kept Default: 90
TOOL_CALLS_PER_MINUTE No Tool calls one member may make per minute, over all their clients Default: 60
DOCMOST_TIMEOUT_SECONDS No Timeout for one request to Docmost Default: 15
SNAPSHOT_RETENTION_DAYS No Days a snapshot of a page body is kept Default: 30
DOCMOST_MAX_RESPONSE_BYTES No Largest Docmost response the server reads Default: 5242880
DOCMOST_ALLOW_INSECURE_HTTP No Allow an http:// DOCMOST_URL on a trusted private network Default: false

Similar servers