Knowledge Master
Click on "Install 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., "@Knowledge Mastersearch how authentication works"
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.
β‘ Knowledge Master
Your codebase's memory. A local knowledge graph that gives AI agents real understanding of your architecture β not just text search.
Why
Every time you start a new AI chat, it forgets everything. You re-explain your architecture, conventions, dependencies. Knowledge Master gives your AI permanent, structured memory about your entire system.
Unlike flat RAG tools that return "chunks about X", Knowledge Master builds a graph β so it can answer "what breaks if I change X?" by traversing actual relationships.
Related MCP server: MemoryGraph
What it does
π Semantic search across all your code, docs, and configs
πΈοΈ Knowledge graph β relationships between services, people, repos, technologies
π₯ Blast radius β "what depends on this service/file/technology?"
π Convention enforcement β detects and enforces your team's patterns
π€ MCP server β plugs directly into AI agents (Kiro, Claude, Cursor)
π₯οΈ Web UI β search, browse, visualize your knowledge graph
π Local-first β nothing leaves your machine
Prerequisites
Dependency | macOS | Ubuntu/Debian | Windows |
Docker |
|
| |
Ollama |
|
| |
Python 3.11+ |
|
|
Quick Start
# Install (pick one)
pip install knowledge-master # from PyPI
pipx install knowledge-master # isolated install (recommended)
# Or from source
git clone https://github.com/subzone/knowledge-master.git
cd knowledge-master
python3 -m venv .venv && source .venv/bin/activate
pip install -e .
# One command setup
km start
# Index your first repo
km index ~/path/to/your/project
# Search
km search "authentication flow"
# Check blast radius
km blast-radius postgres
# Start web UI with graph visualization
km serveRequirements: Docker, Ollama, Python 3.11+
Features
Semantic Search with Graph Context
$ km search "how does auth work"
ββββββββββ¬βββββββββββββββββββββββ¬ββββββββββββββββββββββ¬βββββββββββββββββββββββ
β Score β Source β Context β Preview β
ββββββββββΌβββββββββββββββββββββββΌββββββββββββββββββββββΌβββββββββββββββββββββββ€
β 0.847 β src/auth/service.py β repo:myapp, by:Alex β JWT token validat... β
β 0.791 β docs/auth.md β repo:myapp β Authentication f... β
ββββββββββ΄βββββββββββββββββββββββ΄ββββββββββββββββββββββ΄βββββββββββββββββββββββBlast Radius Analysis
$ km blast-radius auth-service
π₯ Blast radius: auth-service
βββ βοΈ user-service (Service, via DEPENDS_ON)
βββ βοΈ payment-service (Service, via DEPENDS_ON)
βββ π¦ frontend (Repo, via USES_SERVICE)
βββ π€ Alex (Person, via AUTHORED)
4 entities affectedConvention Enforcement
$ km check-conventions ~/my-project
β src/ directory (structure)
β separate test directory (testing)
β snake_case files (file-naming)
β Repository pattern (design-pattern)
1 convention(s) violatedWeb UI & Graph Visualization
$ km serve
Knowledge Master UI β http://127.0.0.1:9999Interactive force-directed graph showing your entire knowledge topology:
π¦ Repos (blue) β π§ Technologies (red)
βοΈ Services (orange) β Dependencies
π€ People β Authorship
π Conventions (purple)
MCP Integration (AI Agents)
Add to your Kiro/Claude agent config:
{
"mcpServers": {
"knowledge": {
"command": "km-server"
}
}
}Your AI agent gets these tools:
searchβ semantic search with graph contextblast_radiusβ dependency analysischeck_conventionsβ verify code follows team patternsindex_repoβ add new repos to the knowledge base
Architecture
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β Your AI Agent β
β (Kiro / Claude / Cursor) β
ββββββββββββββββββββββ¬βββββββββββββββββββββββββββββ
β MCP Protocol
ββββββββββββββββββββββΌβββββββββββββββββββββββββββββ
β Knowledge Master β
β β
β ββββββββββββ ββββββββββββββ ββββββββββββββ β
β β Search β βBlast Radiusβ β Conventionsβ β
β ββββββ¬ββββββ βββββββ¬βββββββ βββββββ¬βββββββ β
β β β β β
β ββββββΌββββββββββββββββΌββββββββββββββββΌβββββββ β
β β FalkorDB (Graph + Vector) β β
β β β β
β β [Repo]ββUSES_TECHβββΆ[Tech] β β
β β β β β
β β βββDEFINES_SERVICEβββΆ[Service] β β
β β β β β β
β β βββFOLLOWSβββΆ[Convention] β β
β β β β β
β β [Person]ββAUTHOREDβββΆ[Document] β β
β β β β β
β β [Chunk + Embedding] β β
β βββββββββββββββββββββββββββββββββββββββββββββ β
β β
β βββββββββββββββββββββββββββββββββββββββββββββ β
β β Ollama (nomic-embed-text) β β
β βββββββββββββββββββββββββββββββββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββββββββββCommands
Command | Description |
| Boot Docker containers + pull embedding model |
| Stop containers |
| Index a git repo or docs directory |
| Semantic search with graph context |
| Show dependencies and affected entities |
| Verify code follows detected patterns |
| Show indexed repos, techs, stats |
| Remove a source from the knowledge base |
| Start web UI at http://127.0.0.1:9999 |
| Check system health |
What gets extracted automatically
When you index a repo, Knowledge Master detects:
Category | Examples |
Tech stack | Languages, frameworks, packages from dependency files |
Services | From docker-compose.yml and K8s manifests |
Dependencies | Service-to-service relationships |
Conventions | File naming (snake_case/kebab-case), folder structure, design patterns |
People | Git commit authors and file ownership |
Code structure | Functions, classes, chunked by AST-aware boundaries |
Comparison
Feature | Knowledge Master | Generic RAG | GitHub Copilot | Glean |
Graph relationships | β | β | β | Partial |
Blast radius analysis | β | β | β | β |
Convention enforcement | β | β | β | β |
Local-first (no cloud) | β | β | β | β |
MCP integration | β | β | β | β |
Multi-repo intelligence | β | Partial | β | β |
Cost | Free | Free | $19/mo | $15-30/mo |
Development
# Run tests
pytest
# Lint
ruff check knowledge_master/
# Run MCP server directly
python -m knowledge_master.server
# Run CLI directly
python -m knowledge_master.cli statusTroubleshooting
Issue | Fix |
| Start Docker: |
| Install Ollama from https://ollama.com and run |
| First run downloads the embedding model (~274MB). Subsequent runs are fast. |
Web UI shows "Connection refused" | Make sure containers are running: |
Search returns poor results | Index more content. Quality improves with more context in the graph. |
Port 9999 already in use | Use |
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/subzone/knowledge-master'
If you have feedback or need assistance with the MCP directory API, please join our Discord server