agentdocs-mcp
agentdocs-mcp lets an AI client work with AgentDocs documentation: authenticate, browse/search, read/write pages, manage comments, versions, trash, shares, and images.
Identify the user and credential scope, then list accessible workspaces and spaces.
Browse page trees and read full Markdown pages, optionally with comments, child pages, and embedded images.
Search by keyword or natural-language semantic search (Pro workspaces; falls back to full-text).
Create, update, append to, move, and delete pages; bulk-create up to 500 pages or idempotently import Markdown folders.
List, read, and restore earlier page versions.
List and restore deleted pages from the trash.
Create public share links with web and raw-Markdown URLs.
List, add, edit/resolve, and delete threaded comments.
Upload PNG/JPEG/GIF/WebP images (max 5 MB) and get Markdown to embed them.
Use account or space-scoped tokens; space-scoped tokens restrict access to one space and hide workspace-level tools. The local stdio package omits hosted proposal-change tools.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agentdocs-mcp get the onboarding page from main space"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP server for AgentDocs — the collaborative documentation platform where AI agents are first-class citizens.
This package runs the server locally (stdio), for clients that launch one: Claude Code, Claude Desktop, Cursor, Zed and others. It gives them native tools to read, search, create, update, and share AgentDocs pages.
Most apps need no install and no token. Add
https://agentdocs.eu/mcpto your AI app as a custom connector or MCP server, then sign in when your browser opens. AgentDocs implements OAuth 2.1 with dynamic client registration, so this works in Claude.ai, Claude Desktop, Claude mobile, ChatGPT, Grok, Grok Bot, Cursor, VS Code, Claude Code, Codex, Gemini CLI, Zed, opencode and Devin Desktop. The grant covers your documents only and can be revoked any time at agentdocs.eu → Settings → Connected apps. The hosted endpoint has 33 tools: the 25 below plus eight for proposed changes, context collections and page review. Steps for each app are under Setup.
Listed on the official MCP registry as
io.github.hoornet/agentdocs-mcp.
Setup
Hosted: add the URL and sign in
No package to install, nothing to keep updated, and no token to copy. Leave any authentication fields empty, or choose OAuth if the app asks; your browser then opens an AgentDocs consent page where you sign in and approve.
App | How to add |
Claude.ai, Claude Desktop, Claude mobile | Settings → Connectors → Add custom connector (leave Advanced settings empty) |
ChatGPT | chatgpt.com/plugins → + → Add custom MCP server → Server URL, Authentication: OAuth → Create as a plugin, then install it |
Grok Bot | Ask it in chat: "Add this MCP server: https://agentdocs.eu/mcp" |
Grok | grok.com/connectors → New Connector → Custom |
Claude Code |
|
Codex CLI |
|
Gemini CLI |
|
Cursor |
|
VS Code (Copilot) | Command Palette → MCP: Add Server → HTTP → the URL |
Zed |
|
opencode |
|
Devin Desktop (formerly Windsurf) |
|
These steps follow each vendor's own documentation as of November 2026, and app menus change often. Claude, Claude Code, ChatGPT, Grok and Grok Bot are tested end to end. More detail: agentdocs.eu/docs/agents.
Hosted, with a token
Use a token where sign-in isn't offered or isn't what you want: apps that only take an API key or header, scripts and CI, or an agent you want to keep inside one space.
https://agentdocs.eu/mcp (Streamable HTTP)
Authorization: Token <your-token># Claude Code
claude mcp add --transport http agentdocs https://agentdocs.eu/mcp \
--header "Authorization: Token <your-token>"Bearer <api_token> is accepted here as well as Token <api_token>, because several clients
only offer a "Bearer" field. Account tokens and space-scoped tokens both work — a space token
confines the session to its own space, exactly as it does over REST.
Local (stdio): this package
The local server always uses an AgentDocs API token:
Account token — agentdocs.eu → Profile → Regenerate API Token (full access to everything you own), or
Space token — open a space → Connect an agent. It reaches exactly one space, with the permission you pick: Read only, Read and propose edits, or Read and edit directly. The server detects it and scopes itself to that space, which is the recommended way to sandbox an agent. This package has no proposal tools, so give a propose-only agent the hosted endpoint instead.
Claude Code (local stdio)
claude mcp add agentdocs --env AGENTDOCS_TOKEN=<your-token> -- npx -y agentdocs-mcpCodex CLI
codex mcp add agentdocs --env AGENTDOCS_TOKEN=<your-token> -- npx -y agentdocs-mcpor in ~/.codex/config.toml:
[mcp_servers.agentdocs]
command = "npx"
args = ["-y", "agentdocs-mcp"]
[mcp_servers.agentdocs.env]
AGENTDOCS_TOKEN = "<your-token>"Claude Desktop / Cursor / Windsurf / Gemini CLI / generic MCP config
In claude_desktop_config.json / .cursor/mcp.json /
~/.codeium/windsurf/mcp_config.json / ~/.gemini/settings.json respectively:
{
"mcpServers": {
"agentdocs": {
"command": "npx",
"args": ["-y", "agentdocs-mcp"],
"env": { "AGENTDOCS_TOKEN": "<your-token>" }
}
}
}VS Code (Copilot)
Same server block, but .vscode/mcp.json uses a top-level "servers" key:
{
"servers": {
"agentdocs": {
"command": "npx",
"args": ["-y", "agentdocs-mcp"],
"env": { "AGENTDOCS_TOKEN": "<your-token>" }
}
}
}Zed
In settings.json:
{
"context_servers": {
"agentdocs": {
"command": "npx",
"args": ["-y", "agentdocs-mcp"],
"env": { "AGENTDOCS_TOKEN": "<your-token>" }
}
}
}Opencode
In opencode.json (project root) or ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"agentdocs": {
"type": "local",
"command": ["npx", "-y", "agentdocs-mcp"],
"environment": { "AGENTDOCS_TOKEN": "<your-token>" }
}
}
}pi / oh-my-pi
Base pi ships without MCP support — use the
Skill or the plain
REST API there. The
oh-my-pi (omp) fork does support MCP and
inherits servers from configs already on disk (.claude, .cursor, .codex,
.vscode, …) — add the standard mcpServers block above to one of those (e.g.
.cursor/mcp.json) and restart omp.
Windows
Many MCP clients can't spawn npx directly on Windows (spawn npx ENOENT).
Wrap the command in cmd /c:
"command": "cmd",
"args": ["/c", "npx", "-y", "agentdocs-mcp"]Catalog-based MCP gateways (e.g. the Docker MCP gateway) only run servers from their curated catalog and can't launch arbitrary npx servers — agentdocs-mcp isn't listed there yet. Use the hosted endpoint instead:
https://agentdocs.eu/mcp(Streamable HTTP, 33 tools, nothing to install) — see Hosted, with a token above. Failing that, the REST API has full parity.
Configuration
Env var | Default | Purpose |
| contents of | API token (account or space-scoped) |
|
| Override the API base URL. Advanced — only set this if you've been given a different endpoint |
Updating
The setup commands above are unpinned (npx -y agentdocs-mcp), so they always
resolve the latest published version. To pick up a new release, just restart
your MCP client — the client only re-launches the server process on restart.
The server prints its version on startup (stderr): agentdocs-mcp vX.Y.Z: connected ….
If npx serves a stale cached copy, force a refresh:
npx -y agentdocs-mcp@latest # or: npm cache clean --forceRelated MCP server: @openindex/openindexwiki
Tools
Tool | Description |
| Identify the user and credential scope |
| List accessible workspaces ¹ |
| List spaces in a workspace ¹ |
| Page tree of a space (without content) |
| Full-text (keyword) search across a workspace, or one |
| Natural-language search ranked by meaning, optionally in one |
| Read a page (full Markdown + version); optional |
| Create a Markdown page (nestable) |
| Update title/content, with optional optimistic version check |
| Append Markdown — ideal for logs and session reports |
| Import a folder of Markdown files; paths become the page hierarchy. Idempotent — re-import reuses by source path (no duplicates); |
| Move a page and its child pages to the trash |
| Move a page (and its children) under another page, to the top level, or to another space in the same workspace |
| Create up to 500 pages atomically with explicit structure |
| Deleted pages in a space that can still be restored |
| Bring a deleted page (and the children deleted with it) back, by UUID from |
| A page's history: version, date, author, which app made each edit, text length (no text) |
| The full text of one earlier version |
| Restore an earlier version's text; the replaced text stays in the history |
| Create a public magic link (web + raw-Markdown URLs) |
| List a page's threaded comments (ids, authors, parents) |
| Post a comment / threaded reply (with |
| Edit a comment or mark its thread resolved (author/admin) |
| Delete a comment (author/admin) |
| Attach a PNG/JPEG/GIF/WebP to a space and get Markdown to embed it — from |
¹ Hidden when running with a space-scoped token.
² path reads a file from the machine this server runs on, so it works on the stdio
server only. The hosted agentdocs.eu/mcp endpoint refuses it — there, the "machine"
is AgentDocs' production server, and honouring a caller-supplied path would be
arbitrary file read. Use source_url or data there.
Pages, spaces, and workspaces are addressable by UUID or human-readable slug
path — get_page accepts "my-workspace/my-space/my-page", create_page accepts
"my-workspace/my-space", etc. (Slug paths require an account token.)
Notes
Saves are kept in the page's version history on the server. Read it with
list_page_versionsandget_page_version, and bring old text back withrestore_page_version(or from the AgentDocs UI). A run of saves through one connection within ten minutes is kept as one version.The hosted instance may take ~15 s to respond to the first request after being idle (database cold start) — the server absorbs this with a 35 s timeout and one retry.
Free-tier API limits surface as clear messages with an upgrade link.
Development
npm install
npm run build
# End-to-end smoke tests (hit a real AgentDocs instance with YOUR data):
SMOKE_TESTBED_SPACE="workspace-slug/scratch-space-slug" \
SMOKE_KNOWN_PAGE="workspace-slug/space-slug/page-slug" \
node test/smoke.mjs # account token: all tools
AGENTDOCS_TOKEN=<space-token> node test/smoke-space-token.mjs # space-token modeThe testbed space is written to (pages created and deleted) — use a scratch space.
Security
See SECURITY.md. Report vulnerabilities privately to contact@agentdocs.eu.
License
MIT
Available Tools
25 toolsadd_commentAdd commentAInspect
Post a comment on a page. Set parent_comment_id to reply within an existing thread. The returned 'mentions' array echoes @name tokens parsed from the body — it is informational only; posting a comment does NOT currently notify the mentioned user.
Inputs: page (required), content (required), parent_comment_id.
append_to_pageAppend to pageAInspect
Append Markdown to the end of an existing page (read-modify-write; creates a new version). Ideal for logs, reports, and running notes.
Inputs: page (required), content (required), separator.
bulk_create_pagesBulk create pagesAInspect
Create up to 500 pages in one atomic call (all succeed or all fail) with an explicitly specified structure (titles, slugs, parent_page_id). To import a folder of Markdown files and derive the hierarchy from file paths, use import_markdown instead. With a space-scoped token, omit "space" to use the token's space.
Inputs: pages (required), space.
create_pageCreate pageAInspect
Create a Markdown page in a space. The slug is derived from the title unless given. With a space-scoped token, omit "space" to use the token's space.
Inputs: title (required), content (required), slug, space, +1 more.
delete_commentDelete commentADestructiveInspect
Permanently delete a comment. Only the comment's author (or an admin) may delete it. There is no undo via the API.
Inputs: comment (required).
delete_pageDelete pageADestructiveInspect
Delete a page and all its child pages by moving them to the trash. They can be brought back with restore_page (find the id with list_trash) until the trash retention period ends, after which they are deleted for good.
Inputs: page (required).
get_pageGet pageARead-onlyInspect
Read a page including its full Markdown content and current version number. The page carries comment_count / unresolved_comment_count / last_comment_at — if comment_count > 0 there is a discussion; set include_comments to read it. include_children returns the page's child pages (titles + slugs, no content) — useful for 'folder' pages whose own content is empty but which organise sub-pages. include_images returns any images embedded in the page as viewable image blocks, so you can actually SEE a screenshot the page references instead of only its URL.
Inputs: page (required), include_images, include_children, include_comments.
get_page_versionGet page versionARead-onlyInspect
Read the full Markdown text of one earlier version of a page, with its author and which app made it. Find version numbers with list_page_versions. Page titles are not versioned, so only the text is returned.
Inputs: page (required), version (required).
import_markdownImport a markdown folderAIdempotentInspect
Import a folder of Markdown files and let the folder structure become the page hierarchy. Each file is { path, content } where path is a relative file path like "guides/setup.md". Folders become parent pages; an index.md or README.md inside a folder supplies that folder page's content; titles come from the first # H1, falling back to the file name. Ideal for an Obsidian vault, a Notion markdown export, or a repo's docs/ folder. Up to 500 files per call. IDEMPOTENT: pages are matched by source path, so re-running an import — or chunking a large vault across several calls — reuses existing pages instead of creating duplicates (response reports created/reused/updated counts). By default existing pages keep their content; set overwrite_existing to re-sync content from the files. Use parent_page to nest the whole import under an existing page. Use bulk_create_pages instead when you want to specify the page tree explicitly. With a space-scoped token, omit "space" to use the token's space.
Inputs: files (required), space, parent_page, overwrite_existing.
list_commentsList commentsARead-onlyInspect
List the threaded comments on a page, returning each comment's id, content, author and parent. Use this to find a comment's id before update_comment / delete_comment. (get_page with include_comments returns the same thread alongside the page content.)
Inputs: page (required).
list_pagesList pagesARead-onlyInspect
List the pages in a space as a tree (content omitted — use get_page to read a page). Pages with a discussion carry comment_count / unresolved_comment_count / last_comment_at — comments do NOT bump a page's updated_at, so check last_comment_at to spot new replies. With a space-scoped token, omit "space" to use the token's space.
Inputs: space.
list_page_versionsList page versionsARead-onlyInspect
List a page's saved versions, newest first: version number, date, author, which app made the edit (edited_via: web, api_token, space_token or oauth; token_name: the token or app name) and the text length. The text itself is left out; read one version with get_page_version. Several saves by the same author through the same app within 10 minutes share one entry, so version numbers can skip.
Inputs: page (required), limit.
list_spacesList spacesARead-onlyInspect
List the spaces in a workspace.
Inputs: workspace (required).
list_trashList trashARead-onlyInspect
List the deleted pages in a space that can still be restored, most recently deleted first. Each entry is a page that was deleted directly; descendant_count says how many of its child pages went with it and come back with it. Pages stay in the trash for retention_days, then they are deleted for good. Restore one with restore_page and its id. With a space-scoped token, omit "space" to use the token's space.
Inputs: space.
list_workspacesList workspacesARead-onlyInspect
List all AgentDocs workspaces the user can access. Workspaces contain spaces; spaces contain pages.
Inputs: no named parameters.
move_pageMove pageAIdempotentInspect
Move a page, with its child pages, under another page or to the top level of its space. Give parent_page to nest it, or top_level: true to put it at the top. To move it into another space of the same workspace, also give space; the new parent must then be in that space (or use top_level). Space-scoped tokens can only move pages within their own space.
Inputs: page (required), space, top_level, parent_page.
restore_pageRestore pageAInspect
Bring a deleted page back from the trash, with the child pages that were deleted with it. Takes the page's UUID from list_trash: deleted pages can't be found by their path. If the slug was taken meanwhile the page gets a new one (slug_changed), and if its parent page is still deleted it comes back at the top level of its space (reparented_to_root).
Inputs: page_id (required).
restore_page_versionRestore page versionADestructiveInspect
Replace a page's text with the text of an earlier version. The restore is saved as a new version, and the text it replaces stays in the history as its own version, so nothing is lost and a restore can itself be undone. Only the text is restored; the title stays as it is.
Inputs: page (required), version (required).
search_docsSearch docsARead-onlyInspect
Full-text (keyword) search across the pages in a workspace, or in one of its spaces. Matches in the returned content_preview are delimited with << >> markers. For natural-language questions, prefer semantic_search.
Inputs: query (required), workspace (required), space.
semantic_searchSemantic searchARead-onlyInspect
Search a workspace by meaning, not keywords — ask a natural-language question (e.g. "how do we handle billing retries?") and get the most relevant pages ranked by similarity. Pages are embedded automatically after each save. Requires a Pro workspace; the response 'mode' is "semantic" when active, or "fulltext_fallback" if semantic search is not configured on the instance (results are still returned).
Inputs: query (required), workspace (required), space.
update_commentUpdate commentADestructiveInspect
Edit a comment's body and/or mark its thread resolved. Only the comment's author (or an admin) may update it. Provide at least one of content / resolved.
Inputs: comment (required), content, resolved.
update_pageUpdate pageADestructiveInspect
Update a page's title and/or content. Earlier text stays in the page history (list_page_versions) and can be brought back with restore_page_version. Pass expected_version to fail instead of overwriting concurrent edits.
Inputs: page (required), title, content, expected_version.
upload_imageUpload imageAInspect
Attach an image to a space and get back the Markdown to embed it in a page. Use this to put screenshots and diagrams into the pages you write, so whoever reads the page later — human or agent — can see what you saw. ACCEPTS: PNG, JPEG, GIF, WebP. Max 5 MB. SVG is rejected (script-injection vector). The format is detected from the file's own bytes, not its name. HOW TO SUPPLY THE IMAGE — give exactly one of: • path — absolute path to an image file on this machine. Prefer this: the bytes never pass through the conversation. • data — base64 of the file's bytes (a "data:image/png;base64,..." URI is also accepted). • source_url — a public http(s) URL; the server fetches it. If you can only SEE an image (e.g. a screenshot another tool returned), you cannot re-encode it from what you see — you need the file. Save it to disk, then pass its "path". Counts against the workspace's image storage quota (Free 50 MB, Pro 5 GB).
Inputs: data, path, space, alt_text, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 25 tools
Most tools target a distinct resource+action, and overlapping pairs (import_markdown vs bulk_create_pages, search_docs vs semantic_search, restore_page vs restore_page_version, list_pages vs get_page) are explicitly cross-referenced in their descriptions. The only residual risk is a first-time agent choosing between the search tools or between create_page/append_to_page under time pressure, but the boundaries are documented.
Nearly everything follows a clear verb_noun snake_case pattern (list_pages, create_page, update_comment, restore_page_version). Minor deviations: whoami has no verb, search_docs uses a different noun ('docs') than the rest of the page-centric surface, and bulk_create_pages/import_markdown are the only non-standard verbs.
All 25 tools map to real, non-duplicated operations, so none is filler. Still, 25 tools is a heavy surface for an agent to navigate, and several infrequent areas (version history, trash, workspaces/spaces, sharing) could plausibly be folded or deferred.
Coverage is strong: full page CRUD plus move/append, comment lifecycle, version history with restore, trash list/restore, dual search, bulk import, image upload and sharing. Gaps are minor — no way to revoke a share link (no unshare_page), no create_space/create_workspace, no page duplication — and agents can work around them.
Maintenance
Related MCP Connectors
Search and manage your team's knowledge from MCP clients.
Manage, share, and collaborate on Markdown-based documents with team members and agents.
Team docs served to AI agents over MCP - search, Markdown reads, version pinning, read audit.
Shared project wiki for AI agents: read and write pages, next actions, and activity logs over MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to query and manage a document knowledge base via MCP, with RAG-powered search and grounded answers with citations.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to read, search, and write to a public wiki knowledge base via MCP.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to read, search, list, create, and update Markdown wiki articles with tags, knowledge-graph links, backlinks, and version history under a shared permission model. All access is scoped by per-article read/write permissions and requires MFA-authenticated logins.1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to publish markdown as shareable pages with permanent links, update existing pages in place, and read or manage page content, versions, and collections through MCP tools.MIT