{"id":46231871,"url":"https://github.com/dapi/docmost-cli","last_synced_at":"2026-03-08T23:12:18.974Z","repository":{"id":340609671,"uuid":"1166819738","full_name":"dapi/docmost-cli","owner":"dapi","description":"CLI for Docmost documentation platform","archived":false,"fork":false,"pushed_at":"2026-03-03T16:31:32.000Z","size":258,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-03T20:36:26.192Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dapi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-25T16:36:52.000Z","updated_at":"2026-03-03T16:36:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dapi/docmost-cli","commit_stats":null,"previous_names":["dapi/docmost-cli"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dapi/docmost-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapi%2Fdocmost-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapi%2Fdocmost-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapi%2Fdocmost-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapi%2Fdocmost-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dapi","download_url":"https://codeload.github.com/dapi/docmost-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapi%2Fdocmost-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30276607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T20:45:49.896Z","status":"ssl_error","status_checked_at":"2026-03-08T20:45:49.525Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-03-03T18:04:52.025Z","updated_at":"2026-03-08T23:12:18.967Z","avatar_url":"https://github.com/dapi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CI](https://github.com/dapi/docmost-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/dapi/docmost-cli/actions/workflows/ci.yml)\n\n# Docmost MCP Server\n\nA Model Context Protocol (MCP) server for [Docmost](https://docmost.com/), enabling AI agents to search, create, modify, and organize documentation pages and spaces.\n\n## Features\n\n### Core Management\n\n- **`create_page`**: Smart creation tool. Creates content (via import) AND handles hierarchy (nesting under a parent) in one go.\n- **`update_page`**: Update a page's content and/or title. Updates are performed via real-time collaboration (WebSocket).\n- **`delete_page` / `delete_pages`**: Delete single or multiple pages at once.\n- **`move_page`**: Organize pages hierarchically by moving them to a new parent or root.\n\n### Exploration \u0026 Retrieval\n\n- **`search`**: Full-text search across spaces with optional space filtering (`query`, `spaceId`).\n- **`get_workspace`**: Get information about the current Docmost workspace.\n- **`list_spaces`**: View all spaces within the current workspace.\n- **`list_groups`**: View all groups within the current workspace.\n- **`list_pages`**: List pages within a space (ordered by `updatedAt` descending).\n- **`get_page`**: Retrieve full content and metadata of a specific page.\n\n### Technical Details\n\n- **Automatic Markdown Conversion**: Page content is automatically converted from Docmost's internal ProseMirror/TipTap JSON format to clean Markdown for easy agent consumption. Supports all Docmost extensions including callouts, task lists, math blocks, embeds, and more.\n- **Smart Import API**: Uses Docmost's import API to ensure clean Markdown-to-ProseMirror conversion when creating pages.\n- **Child Preservation**: The `update_page` tool creates a new page ID but effectively simulates an in-place update by reparenting existing child pages to the new version.\n- **Pagination Support**: Automatically handles pagination for large datasets (spaces, pages, groups).\n- **Filtered Responses**: API responses are filtered to include only relevant information, optimizing data transfer for agents.\n\n## Installation\n\n### From npm (recommended)\n\n```bash\nnpm install -g @dapi/docmost-cli\n```\n\n### From source\n\n```bash\ngit clone https://github.com/dapi/docmost-cli.git\ncd docmost-cli\nnpm install\nnpm run build\n```\n\n## Configuration\n\nThis server requires the following environment variables:\n\n- `DOCMOST_API_URL`: The full URL to your Docmost API (e.g., `https://docs.example.com/api`).\n- `DOCMOST_EMAIL`: The email address for authentication.\n- `DOCMOST_PASSWORD`: The password for authentication.\n\n## Usage with Claude Desktop / MCP Client\n\nAdd the following to your MCP configuration (e.g. `claude_desktop_config.json`):\n\n### Using npx (recommended)\n\n```json\n{\n  \"mcpServers\": {\n    \"docmost\": {\n      \"command\": \"npx\",\n      \"args\": [\"github:dapi/docmost-mcp\"],\n      \"env\": {\n        \"DOCMOST_API_URL\": \"http://localhost:3000/api\",\n        \"DOCMOST_EMAIL\": \"test@docmost.com\",\n        \"DOCMOST_PASSWORD\": \"test\"\n      }\n    }\n  }\n}\n```\n\n### Using local build\n\n```json\n{\n  \"mcpServers\": {\n    \"docmost\": {\n      \"command\": \"node\",\n      \"args\": [\"./build/index.js\"],\n      \"env\": {\n        \"DOCMOST_API_URL\": \"http://localhost:3000/api\",\n        \"DOCMOST_EMAIL\": \"test@docmost.com\",\n        \"DOCMOST_PASSWORD\": \"test\"\n      }\n    }\n  }\n}\n```\n\n## Development\n\n```bash\n# Watch mode\nnpm run watch\n\n# Build\nnpm run build\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdapi%2Fdocmost-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdapi%2Fdocmost-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdapi%2Fdocmost-cli/lists"}