docmost-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DOCMOST_URL | Yes | Instance URL, e.g. https://docs.example.com. Required. | |
| DOCMOST_EMAIL | No | Community login email, used together with DOCMOST_PASSWORD (one auth method). Email/password is preferred. | |
| DOCMOST_PASSWORD | No | Community login password, used together with DOCMOST_EMAIL (one auth method). | |
| DOCMOST_TOOLSETS | No | Comma list of tool groups to expose: pages, spaces, comments, search, workspace, attachments, labels, members, favorites, admin. Unset means all tools. An unknown name stops startup. | |
| DOCMOST_HTTP_HOST | No | Bind address for Streamable HTTP. Default 127.0.0.1 (loopback). | |
| DOCMOST_HTTP_PATH | No | MCP endpoint path (a leading / is added if missing). Default /mcp. | |
| DOCMOST_HTTP_PORT | No | TCP port for Streamable HTTP. Default 3001. | |
| DOCMOST_READ_ONLY | No | true / 1 / yes / on — mutating tools return an error; they stay listed. A typo fails at startup. | |
| DOCMOST_TRANSPORT | No | stdio (default) or http (Streamable HTTP). Aliases: streamable-http, streamable_http. | |
| DOCMOST_AUTH_TOKEN | No | authToken cookie from the browser (alternative auth method). Use this for MFA accounts, which cannot complete login here. | |
| DOCMOST_HTTP_TOKEN | No | If set, every request needs Authorization: Bearer <token>. Compared in constant time. | |
| DOCMOST_SESSION_PATH | No | Session cache file. The JWT is cached under ~/.docmost-mcp-server/session.json by default and refreshed on 401. | |
| DOCMOST_VERIFY_WRITES | No | Re-read after a body write to confirm it persisted (catches COLLAB_DISABLE_REDIS). Default true. | |
| DOCMOST_BUSY_WINDOW_MS | No | Refuse a full replace if someone else saved within this window. Default 60000; 0 disables. | |
| DOCMOST_UNTRUSTED_WRAP | No | Wrap page bodies, comments and search snippets in <docmost-untrusted-content> to mark them as data. Default true. | |
| DOCMOST_HTTP_MAX_SESSIONS | No | Concurrent session limit; new handshakes get 503 when full. Default 50. | |
| DOCMOST_HTTP_ALLOWED_HOSTS | No | Comma-separated Host-header allowlist for DNS rebinding protection. | |
| DOCMOST_HTTP_JSON_RESPONSE | No | Reply with plain JSON instead of an SSE stream. Default false. | |
| DOCMOST_HTTP_SESSION_TTL_MS | No | Idle session timeout; minimum 1000, 0 disables expiry. Default 1800000. | |
| DOCMOST_DETECT_MARKDOWN_LOSS | No | Add markdown_loses to get_page when Markdown drops tables/callouts/mentions/colours. Default true. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_pagesB | Full-text search for pages the authenticated user can access. Optionally scope to a space. |
| get_pageA | Get page metadata and Markdown body (format=json for ProseMirror). To read less: outline=true lists headings, heading returns one section, max_chars+offset page the body (follow next_offset). |
| create_pageB | Create a page in a space from Markdown, optionally under a parent. |
| update_pageA | Update a page title, icon, and/or Markdown body (operation: replace default, append, prepend). For partial edits use edit_page. dry_run previews the change without writing. |
| edit_pageA | Edit parts of a page, leaving the rest as is. edits run in order, written once; if any fails nothing is written. Modes: replace_text (old_text must match once in one paragraph, or use replace_all), replace_section (keeps the heading, replaces what is under it), insert_after_section (after its subsections), insert_in_section (at=start, or at=end, the default: end of its own body before any subsection), delete_section. heading is the text, or '## Text' to pin the level. |
| list_pagesA | List pages in a space. view=recent (default) is recently updated pages, not the sidebar tree; view=tree is space-root pages in sidebar order. Use list_child_pages for children. |
| list_child_pagesA | List direct child pages of a page, in sidebar order. Omit page_id and pass space_id for space-root pages. |
| duplicate_pageA | Duplicate a page and its accessible sub-pages within the same space. |
| copy_page_to_spaceA | Copy a page and its accessible sub-pages into a different space. |
| move_pageA | Move a page under a new parent or to the space root. Position is computed unless you pass an explicit 5-12 character key. |
| move_page_to_spaceA | Move a page and its accessible sub-pages to a different space. |
| delete_pageA | Move a page to trash, or permanently delete it. Permanent delete requires space admin. |
| restore_pageA | Restore a soft-deleted page from trash. |
| list_trashB | List soft-deleted pages in a space. |
| get_page_historyC | List revision history for a page. |
| get_history_versionB | Get a specific page history version by history ID. |
| get_breadcrumbsA | Get the ancestor path from space root to a page. |
| get_backlinksB | List incoming or outgoing page links. |
| get_backlinks_countA | Count incoming and outgoing links for a page without listing them. |
| export_pageB | Export a page to output_path or a temp file and return the path. Without children usually .md/.html; include_children gives a zip. |
| get_page_treeA | Read the page hierarchy of a space in one call (recursive sidebar tree). max_depth and max_nodes bound the result; truncated=true when a bound stops the walk. Each level reads at most 100 sibling pages. |
| list_spacesA | List spaces the authenticated user can access. Archived spaces are hidden by default; set include_archived to show them. |
| get_spaceA | Get details for a space, including the current user's membership. |
| create_spaceB | Create a space. Slug is generated from the name if omitted. Requires permission to manage spaces. |
| update_spaceC | Update a space name, slug, or description. |
| delete_spaceA | Delete a space and its pages. This cannot be undone. |
| export_spaceB | Export a whole space as a zip of Markdown or HTML. Writes to output_path or a temp file. |
| check_space_healthA | Find likely wiki hygiene issues in a space: stale pages, empty/very short pages and duplicate titles. Metadata only by default; min_chars > 0 fetches each scanned page body. Bounded by max_pages. |
| get_commentsA | List page-level comments. Content is returned as Markdown. Each comment is re-fetched so edits are not stale. |
| create_commentA | Add a page-level comment. Inline selection comments are not supported. |
| update_commentB | Replace a comment body. You can update your own comments. |
| resolve_commentC | Resolve or reopen a page comment. |
| delete_commentB | Delete a comment. Owners can delete their own; space admins can delete any comment. |
| search_attachmentsA | Search attachments by name or text. Enterprise only: Community gets 403. Prefer get_attachment_info when you have an id. |
| search_suggestC | Typeahead suggestions. Pages are included by default (set include_pages=false to skip). Users and groups default to off. |
| get_current_userA | Get the authenticated user and workspace context, detected Docmost version, and whether this session is read-only. |
| get_workspace_infoA | Get workspace details and the plan's enabled features (entitlements). |
| list_workspace_membersC | List workspace members. |
| upload_attachmentA | Upload a local file to a page. Returns attachment metadata including the /api/files/:id/:name URL path. |
| get_attachment_infoC | Get metadata for an uploaded attachment. |
| list_page_labelsC | List labels on a page. |
| add_page_labelsA | Add one or more labels to a page. Names are normalized to lowercase kebab-case. |
| remove_page_labelC | Remove a label from a page by label ID. |
| list_space_membersB | List members and groups in a space. |
| add_space_membersC | Add users and/or groups to a space with a role. |
| remove_space_memberC | Remove a user or group from a space. |
| update_space_member_roleC | Change a space member or group's role. |
| list_favoritesB | List the ids of the authenticated user's favorites of a given type. |
| add_favoriteB | Add a page, space or template to the authenticated user's favorites. |
| remove_favoriteA | Remove a page, space or template from the authenticated user's favorites. |
| archive_spaceA | Archive a space (hides it from the default list_spaces). Reversible with unarchive_space. |
| unarchive_spaceC | Restore an archived space. |
| set_space_homepageA | Set a space's home page. The page must be accessible to the current user. |
| get_my_profileA | Get the current user's profile and preferences (locale, timezone, edit mode, notifications). |
| update_my_profileB | Update the current user's preferences. Only supplied fields change. |
| get_my_recent_pagesC | Pages recently visited/created by the current user. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| summarize_page | Summary of one page: purpose, key points, what looks outdated. |
| summarize_space | What a space covers, how it is organised, and its gaps. |
| answer_from_wiki | Answer a question only from wiki pages, with links to them. |
| whats_new | What changed in the wiki or one space recently, page by page. |
| draft_page | Draft a page on a topic after checking for existing ones. |
| tidy_page | Improve a page's structure and wording without changing its facts. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| agent-guide | How to read and write Docmost pages safely through this MCP server. |
| toolset-map | Which DOCMOST_TOOLSETS value exposes which tools. |
TDQS
Scored across 56 tools
Descriptions do a lot of work to separate tools (e.g. update_page vs edit_page, list_pages vs get_page_tree vs list_child_pages), but the set still contains multiple near-duplicate pairs: move_page vs move_page_to_space, get_backlinks vs get_backlinks_count, get_current_user vs get_my_profile, search_pages vs search_suggest. Several of these could be merged via parameters, leaving an agent to guess which variant applies in edge cases.
The dominant convention is snake_case verb_noun (get_page, create_page, list_spaces, archive_space, add_page_labels), applied consistently across the vast majority of tools. A few outliers break the pattern mildly: search_suggest (verb_verb), check_space_health (verb_noun_noun), and get_history_version which omits the resource noun.
56 tools is well past the point where a single agent can hold the surface in mind, and the domain (a wiki with pages, spaces, comments, labels, members) does not justify that many distinct entry points. Many pairs are thin variants of each other and could be consolidated into fewer parameterized tools.
Coverage is genuinely broad: page CRUD plus history, trash, export, hierarchy, backlinks, labels; full space lifecycle and membership; comment CRUD with resolve; attachments; favorites and profile. Gaps are minor but real — no attachment deletion/download tool, no template tools despite favorites supporting template types, and inline comments are explicitly unsupported.