Are you the author? Sign in to claim
Docs for agents. No RAG
Search any documentation as if you had written it yourself
An MCP server that guides AI assistants to navigate documentation using their built-in tools (grep, file reading) instead of traditional RAG. Leverages ever growing capabilities of large language models, better tool-calling and interpretation and agentic search patterns for precise, intelligent documentation discovery.
Give your AI assistant access to any documentation—yours or third-party—so it can find answers as naturally as you would. No embeddings, no vector databases, no complex infrastructure.
Perfect for:
Add to your coding agent config something along the lines of
{
"mcpServers": {
"agentic-knowledge": {
"command": "npx",
"args": ["-y", "@codemcp/knowledge@latest"]
}
}
}
Option A: Use the CLI (Recommended)
# For a Git repository
npx @codemcp/knowledge create \
--preset git-repo \
--id react-docs \
--name "React Documentation" \
--url https://github.com/facebook/react.git
# Initialize (downloads the docs)
npx @codemcp/knowledge init react-docs
# The MCP server starts automatically when Claude Desktop launches
Option B: Manual Configuration
Create .knowledge/config.yaml:
version: "1.0"
docsets:
- id: my-docs
name: My Project Documentation
sources:
- type: local_folder
paths: ["./docs"]
Your AI assistant now has access to search_docs and list_docsets tools. Ask questions naturally:
"How do I implement a cleanup function in React useEffect?"
"Show me the authentication setup in our docs"
"Find examples of rate limiting in the API docs"
The assistant will receive intelligent navigation instructions and use grep/file reading to find the exact information.
Traditional RAG (Retrieval-Augmented Generation) was built for the context-poor era when models had 8K token limits. It:
Agentic Knowledge leverages modern AI capabilities:
Traditional RAG says: "Here are 50 fragments that mention your keywords"
Agentic Knowledge says:
"Search for 'useState' in ./docs/react-18.2/hooks/. If that doesn't help, try 'state management' in ./docs/patterns/. Follow any 'See also' references you find."
The difference? Guidance over fragments. Investigation over retrieval.
.knowledge/docsets/search_docs and list_docsets toolsPerformance:
This approach is inspired by The RAG Obituary by Nicolas Bustamante and how Claude Code revolutionized code analysis by ditching RAG for direct filesystem exploration.
# Install dependencies
pnpm install
# Start development mode
pnpm dev
# Run tests
pnpm test
# Build all packages
pnpm build
See User Guide for installation from source.
This project follows a structured development workflow. See our development documentation for contribution guidelines.
Distributed under the MIT License. See LICENSE file for details.
🎯 Moving beyond RAG into the agentic era of knowledge systems
Inspired by The RAG Obituary by Nicolas Bustamante
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows