# Doco > Doco is document infrastructure for humans and AI agents: a shared document and knowledge-base layer accessed through a browser editor, MCP, CLI, Skills and REST APIs. A collaborative rich-text editor with block-level stable addressing, optimistic concurrency control, and an MCP server — agents read and write your knowledge base as safely as a careful human editor. Free during beta. ## For AI agents: connect in one command - Claude Code: `claude mcp add doco -- npx -y --package doco-agent-cli doco mcp` - CLI login (device authorization, like GitHub CLI): `npm i -g doco-agent-cli && doco login` - Cursor / Codex / Gemini CLI / VS Code Copilot: same `doco-agent-cli` package as a stdio MCP server — see the integration page. ## Docs - [Doco](https://doco.page/): shared documents and knowledge bases for humans and AI agents - [Human–agent document infrastructure](https://doco.page/agent-infrastructure/): Doco as an MCP server for documents (tool groups, readOnlyHint/destructiveHint annotations, local read-write stdio server vs read-only hosted https://api.doco.page/mcp), the shared document layer, collaboration contract, workflows and capability boundaries - [How Doco works for agents](https://doco.page/tech/): Doco as a docs MCP server (local read-write stdio `npx -y --package doco-agent-cli doco mcp` vs read-only hosted https://api.doco.page/mcp, client setup for Claude Code, Codex, Cursor, Gemini CLI and Copilot), block addressing, optimistic concurrency (ETag/If-Match, 409 re-read), Markdown round-trip, real-time human–agent co-editing - [Open API reference](https://doco.page/api-docs/): REST API v1, OpenAPI 3.1, Bearer tokens, rate limits - [GitHub — open-source editor (MIT)](https://github.com/songofhawk/doco): editor source code - [npm: doco-agent-cli](https://www.npmjs.com/package/doco-agent-cli): CLI + MCP server in one package ## Use cases - [Agent memory](https://doco.page/use-cases/agent-memory/): durable knowledge people can inspect and correct - [Human–agent team wiki](https://doco.page/use-cases/team-wiki-ai/): one shared knowledge base - [Personal knowledge base](https://doco.page/use-cases/personal-knowledge-base/): editable notes with controlled agent access - [WeChat article formatter / Markdown 转公众号](https://doco.page/wechat-export/): write or import Markdown, pick one of 8 themes, paste into WeChat Official Account; Open API `format=wechat-html` ## Comparisons - [All comparisons](https://doco.page/compare/): honest comparisons of Doco with Notion, Obsidian, Outline, GitBook, AFFiNE, Google Docs, Confluence, HackMD, and Coda. - [Doco vs Notion](https://doco.page/compare/notion/): Compare Doco and Notion for human-agent documents: collaboration, MCP access, data ownership, databases, self-hosting, and an honest Markdown/CSV migration path. - [Doco vs Obsidian](https://doco.page/compare/obsidian/): Compare Doco and Obsidian for AI-agent knowledge: local Markdown, plugins, collaboration, stable block APIs, MCP, version-protected writes, and migration costs. - [Doco vs Outline](https://doco.page/compare/outline/): Compare Doco and Outline: Outline's built-in MCP server (OAuth, Streamable HTTP) vs Doco's block-level MCP, plus wiki editing, permissions and MIT vs BSL. - [Doco vs GitBook](https://doco.page/compare/gitbook/): Compare Doco and GitBook for AI-native documentation: live human-agent editing, Git Sync, published-doc MCP, agent write APIs, GEO, self-hosting, and migration. - [Doco vs AFFiNE](https://doco.page/compare/affine/): Compare Doco and AFFiNE: rich documents, databases, visual canvas, local-first collaboration, MCP, stable block writes, licensing boundaries, and migration. - [Doco vs Google Docs](https://doco.page/compare/google-docs/): Compare Doco and Google Docs: office collaboration, first-party MCP (Developer Preview), revision-checked writes, stable block IDs, Markdown, and self-hosting. - [Doco vs Confluence](https://doco.page/compare/confluence/): Compare official Confluence MCP, enterprise wiki, spaces, permissions, and versioned page updates with Doco’s stable block IDs, Markdown-first MCP/CLI/API, and MIT self-hosting. A Confluence alternative for AI agents sharing documents with people. - [Doco vs HackMD](https://doco.page/compare/hackmd/): A HackMD alternative comparison covering official HackMD MCP, collaborative Markdown, whole-note updates and revision history alongside Doco’s stable block IDs and protected agent edits. - [Doco vs Coda](https://doco.page/compare/coda/): Compare Coda’s docs-as-apps, official beta MCP, and asynchronous REST page updates with Doco’s stable block IDs, If-Match protected agent edits, and MIT self-hosting. ## Integrations - [All MCP integrations](https://doco.page/integrations/): setup guides for connecting AI coding agents to Doco collaborative documents. - [Claude Code integration](https://doco.page/integrations/claude-code/): Claude Code MCP setup with claude mcp add, local/user/project scopes, a command reference, remote endpoint, and connection troubleshooting. - [Cursor integration](https://doco.page/integrations/cursor/): Install Doco from Cursor Directory or add .cursor/mcp.json. Search and cite documents, keep credentials local, and verify one protected block write. - [Windsurf integration](https://doco.page/integrations/windsurf/): Add Doco to Windsurf Cascade through mcp_config.json. Keep the tool set narrow, use local device login, and retain confirmations for document writes. - [Cline integration](https://doco.page/integrations/cline/): Configure Doco in .cline/mcp.json with auto-approval off. Establish read-only evidence, approve one narrow write, and verify the resulting document version. - [Continue integration](https://doco.page/integrations/continue/): Add the Doco stdio server to Continue with a YAML mcpServers block or compatible JSON. Keep credentials out of config and verify protected writes. - [Codex CLI integration](https://doco.page/integrations/codex/): Set up Doco with codex mcp add and config.toml, forward a token with env_vars, connect the remote endpoint, and troubleshoot MCP connection issues. - [Gemini CLI integration](https://doco.page/integrations/gemini-cli/): Configure the Doco MCP server in Gemini CLI settings.json. Keep tool-call confirmations on, search shared documents, and verify version-protected writes. - [VS Code Copilot integration](https://doco.page/integrations/vscode-copilot/): Connect GitHub Copilot in VS Code agent mode to the Doco MCP server. Configure workspace access, search shared documents, and verify protected writes. ## Optional - [Terms of Service](https://doco.page/legal/terms/): terms governing the website, applications, collaboration features and APIs - [Privacy Notice](https://doco.page/legal/privacy/): information processing, purposes and operator contact details - [Acceptable Use Policy](https://doco.page/legal/acceptable-use/): prohibited activities across content, accounts, collaboration, public links, APIs and automation - [AI Supplementary Terms](https://doco.page/legal/ai/): supplementary terms for the currently available AI summary and translation features ## Pricing Doco is free during beta. Sign up at https://doco.page/ with Google or email — no credit card required.