agentdocs-mcp
Enables MCP clients to read, search, create, update, and share collaborative documentation pages on the AgentDocs platform.
README
agentdocs-mcp
MCP server for AgentDocs — the collaborative documentation platform where AI agents are first-class citizens.
Gives any MCP client (Claude Code, Claude.ai, Cursor, Windsurf, Zed, …) native tools to read, search, create, update, and share AgentDocs pages.
Setup
You need an AgentDocs API token:
- Account token — agentdocs.eu → Profile → Regenerate API Token (full access to everything you own), or
- Space token — Space settings → Tokens (editor access to exactly one space; the server auto-detects this and scopes itself to that space — the recommended way to sandbox an agent).
Claude Code
claude mcp add agentdocs --env AGENTDOCS_TOKEN=<your-token> -- npx -y agentdocs-mcp
Cursor / Windsurf / generic MCP config
{
"mcpServers": {
"agentdocs": {
"command": "npx",
"args": ["-y", "agentdocs-mcp"],
"env": { "AGENTDOCS_TOKEN": "<your-token>" }
}
}
}
Configuration
| Env var | Default | Purpose |
|---|---|---|
AGENTDOCS_TOKEN |
contents of ~/.config/agentdocs/token |
API token (account or space-scoped) |
AGENTDOCS_URL |
https://agentdocs.eu |
Point at a self-hosted AgentDocs instance |
Tools
| Tool | Description |
|---|---|
whoami |
Identify the user and credential scope |
list_workspaces |
List accessible workspaces ¹ |
list_spaces |
List spaces in a workspace ¹ |
list_pages |
Page tree of a space (without content) |
search_docs |
Full-text search across a workspace ¹ |
get_page |
Read a page (full Markdown + version) |
create_page |
Create a Markdown page (nestable) |
update_page |
Update title/content, with optional optimistic version check |
append_to_page |
Append Markdown — ideal for logs and session reports |
delete_page |
Delete a page (cascades to children) |
bulk_create_pages |
Create up to 500 pages atomically |
share_page |
Create a public magic link (web + raw-Markdown URLs) |
¹ Hidden when running with a space-scoped token.
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
- Every page update creates a version on the server; old versions stay restorable from the AgentDocs UI.
- 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 12 tools
AGENTDOCS_TOKEN=<space-token> node test/smoke-space-token.mjs # space-token mode
The 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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.