agentic-knowledge
An MCP server that guides AI assistants to navigate documentation using their built-in tools (grep, file reading) instead of traditional RAG.
README
๐ง Agentic Knowledge
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.
๐ฏ What Is This For?
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:
- ๐ Project documentation - Your team's internal docs, APIs, guides
- ๐ง Framework references - React, TypeScript, MCP SDK, any library
- ๐ข Enterprise knowledge - Company wikis, architecture docs, runbooks
- ๐ Open source projects - Clone any repo's docs for instant access
๐ Quick Start
1. Configure an MCP Client
Add to your coding agent config something along the lines of
{
"mcpServers": {
"agentic-knowledge": {
"command": "npx",
"args": ["-y", "@codemcp/knowledge@latest"]
}
}
}
2. Set Up Your First Docset
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"]
3. Use It
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.
๐ Documentation
- User Guide - Detailed CLI commands, lifecycle, configuration
- Examples - Configuration examples and integration guides
- Testing Guide - Comprehensive testing documentation
๐ก How and Why It Works
The Paradigm Shift
Traditional RAG (Retrieval-Augmented Generation) was built for the context-poor era when models had 8K token limits. It:
- Chunks documents (losing relationships)
- Computes embeddings (missing precise terminology)
- Retrieves fragments (losing context)
- Requires massive infrastructure (vector DBs, rerankers)
Agentic Knowledge leverages modern AI capabilities:
- โ 200K+ token context windows - Can read entire documentation sets
- โ Powerful filesystem tools - grep, ripgrep, file reading built-in
- โ Intelligent navigation - Provides search strategies, not fragments
- โ Zero infrastructure - Just a config file and your docs
From Retrieval to Navigation
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.
How It Actually Works
- Configure docsets - Point to local folders or Git repositories
- Initialize - Downloads/symlinks documentation to
.knowledge/docsets/ - MCP server - Exposes
search_docsandlist_docsetstools - AI searches - Gets navigation instructions, uses grep/file tools
- Finds answers - Reads complete documents with full context
Performance:
- Setup: Seconds (vs hours for RAG indexing)
- Response: <10ms (vs 300-2000ms for RAG)
- Infrastructure: None (vs Elasticsearch + Vector DB)
- Accuracy: Complete context (vs fragment-based)
Inspired By
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.
๐ Local Development
# 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.
๐ค Contributing
This project follows a structured development workflow. See our development documentation for contribution guidelines.
๐ License
Distributed under the MIT License. See LICENSE file for details.
<div align="center"> <p><strong>๐ฏ Moving beyond RAG into the agentic era of knowledge systems</strong></p> <p><em>Inspired by <a href="https://www.nicolasbustamante.com/p/the-rag-obituary-killed-by-agents">The RAG Obituary</a> by Nicolas Bustamante</em></p> </div>
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.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
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.