Skip to main content
Glama

agentdocs

Fresh, source-verified docs for building MCP servers and Claude agents β€” served straight to your AI coding agent over MCP.

npm license: MIT Model Context Protocol

Coding agents hallucinate on fast-moving APIs like the Model Context Protocol and the Claude Agent SDK: training data lags the spec, so you get plausible-but-wrong imports, deprecated patterns, and invented options. agentdocs is a local MCP server that gives your agent a curated, source-verified corpus to search instead of guessing.

  • πŸ”Ž Three tools: list_topics, search_docs, get_doc

  • πŸ“Ž Every answer is attributed to its upstream source URL

  • 🏠 Runs locally over stdio β€” no account, no hosting, no data leaves your machine

  • βœ… Each doc carries a verified flag set only after human review against the source

Install & connect

Requires Node.js 18+.

Claude Code

claude mcp add agentdocs -- npx -y mcp-agentdocs@latest

Cursor / other MCP clients (mcp.json)

{
  "mcpServers": {
    "agentdocs": {
      "command": "npx",
      "args": ["-y", "mcp-agentdocs@latest"]
    }
  }
}

Then ask your agent things like "check agentdocs for how MCP stdio handles logging" or "search agentdocs for the Streamable HTTP session header" β€” it will call the tools and answer from the verified corpus.

Related MCP server: devdocs-mcp

Tools

Tool

Use it to

list_topics

See every curated doc, its topic, source URL, and verified status

search_docs(query, topic?)

Get ranked, source-attributed snippets for a question

get_doc(id)

Read the full verified markdown of one document

What's covered (v1)

The Model Context Protocol (spec 2025-11-25) and building MCP servers / Claude agents. Corpus grows over time; run list_topics for the current set.

Freshness

Every document records the date it was last verified against its primary source. Sources are diffed on a regular cadence; when one drifts, the affected doc is re-verified and a new version is published. Using mcp-agentdocs@latest (as above) keeps you on the current corpus. See CHANGELOG.md for what changed and when.

Development

npm install
npm run build      # tsc -> dist/
npm test           # vitest: retrieval, manifest integrity, unicode safety
npm run ingest     # refresh sources into corpus/_staging/ for human review

Curation is the point: npm run ingest fetches upstream sources for review but never silently overwrites a curated doc β€” a human diffs, promotes, and sets verified: true in corpus/manifest.json only after checking the content against its source. Run npm run check-freshness to flag docs that have drifted or are due for re-verification.

License

MIT

Available Tools

3 tools
get_docA

Fetch the full curated markdown of one document by its id (from list_topics or search_docs). Use when a snippet is not enough and you need the complete, verified document.

Inputs: id (required).

list_topicsA

List every curated document available, with its topic, source URL, and last-verified date. Call this first to see what is covered before searching.

Inputs: no named parameters.

search_docsA

Search the curated, source-verified docs for building MCP servers and Claude agents. Use this whenever you need current, accurate details about MCP (transports, tools, resources, lifecycle, auth), the Claude Agent SDK, or Claude Code β€” instead of relying on memory, which is often stale for these fast-moving APIs. Returns ranked snippets with their source URLs.

Inputs: query (required), topic.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.5/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: list_topics lists all available documents, search_docs searches for specific content, and get_doc retrieves full document. No overlap or ambiguity.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun snake_case pattern: list_topics, search_docs, get_doc. Easy to predict and understand.

    Tool Count4/5

    With only 3 tools, the set is minimal but covers the essential operations for a documentation server: browse, search, and retrieve. It is slightly under the typical range but still reasonable for a focused server.

    Completeness5/5

    The tool surface covers the full lifecycle of accessing curated documentation: listing all documents, searching for specific content, and retrieving full documents. No obvious gaps for the stated purpose.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      MC Modding is a Model Context Protocol (MCP) server designed to equip AI assistants, such as Claude, with direct and current access to Minecraft modding documentation. By indexing official Fabric and NeoForge sources weekly, it ensures AI responses are always accurate, backed by real documentation,
      4
      77 npm
      73
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that provides version-pinned, deterministic documentation sourced from DevDocs.io to AI assistants (Claude, RooCode, Cline, Copilot etc.) and also via offline mode. Not via Scraping! But using the supported downloading option from devdocs.
      63 npm
      14
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A high-performance MCP server providing up-to-date documentation for Go, npm, Python, Rust, Docker, Kubernetes, Terraform, and more β€” fetched from official sources, not training data.
      18
      3
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that provides tools to fetch live, version-accurate documentation, changelogs, examples, and method signatures for npm and PyPI packages, preventing AI coding agents from hallucinating stale APIs.
      MIT