KernelMind MCP
Enables inspection of kernel git history, including commit details, file history, and blame line ranges for tracing file evolution.
Provides evidence-based Linux kernel engineering tools, enabling search of kernel C source code, commit history, mailing list discussions, patches, and documentation, with ranked evidence sources and risk analysis.
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., "@KernelMind MCPTrace the history of sock_alloc and show related LKML discussions."
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.
KernelMind MCP
Evidence-based Linux kernel engineering for AI agents — citations, not hallucinations.
KernelMind MCP is a Model Context Protocol server
that turns the public corpus of Linux kernel knowledge — git history, LKML /
lore.kernel.org, Patchwork, and Documentation/ — into a queryable, evidence-ranked
knowledge platform for AI coding and planning agents.
Every tool response carries an explicit evidence chain: which commit, which
mailing-list thread, which patch state transition supports the conclusion — plus
explicit assumptions and contradictions when the evidence is incomplete.
Performance claims are never fabricated; the system flags them
hardware_validation_required instead.
Why
LLMs hallucinate kernel facts — invented signatures, misremembered locking rules, APIs removed years ago cited as current. KernelMind's contract:
Index primary sources, kept current by incremental sync (never full rebuild)
Fuse dense vectors + BM25 + PostgreSQL full-text via Reciprocal Rank Fusion (k=60)
Rank by a fixed evidence hierarchy: commit messages > LKML consensus > Documentation/ > maintainer comments > accepted patches > LWN > source code > rejected RFCs > vendor trees
Return
evidence_sources,assumptions,contradictions, andhardware_validation_requiredon every engineering conclusion
Subsystem-agnostic by design: works identically on mainline, stable, linux-next, and vendor trees.
Related MCP server: github-rag-mcp
Features & Registered Tools
KernelMind MCP provides 16 specialized, evidence-first engineering tools across 5 categories:
Category | Available MCP Tools | Description |
Source Code |
| Search kernel C source code and lookup symbol definitions with AST tree-sitter chunking |
Git Intelligence |
| Inspect commit history, blame line ranges, and trace file evolution |
Patchwork & LKML |
| Query patch discussions, LKML thread consensus, and patch state transitions |
Research & Risk |
| Evaluate stability ratings, race/locking risk factors, and hardware validation requirements |
Documentation & LWN |
| Search kernel |
MCP prompts implement a 9-stage agent workflow: Knowledge Gathering → Subsystem Understanding → Architecture Modeling → Maintainer Review → Hypothesis Generation → Experiment Design → Implementation Planning → Patch Review → Self-Critique.
Architecture
AI Agent (Opencode / Claude Code / any MCP host)
│ JSON-RPC 2.0 — stdio (default) or Streamable HTTP
▼
MCP Gateway (validation, auth, audit)
▼
Tools → Hybrid Search (Qdrant + BM25 + PG FTS, RRF)
→ EvidenceCorrelator (priority tiers, assumptions, contradictions)
▼
PostgreSQL · Qdrant · Neo4j · Redis · MinIO
▲
Incremental Sync (Celery): git delta · LKML/lore · Patchwork
(state-transition tracking across all 12 patch states) · Documentation/Indexing is kernel-aware: tree-sitter C grammar chunks at function/struct/macro
granularity without splitting function bodies; subsystem attribution is parsed
from MAINTAINERS (longest-prefix match) — no hardcoded maps.
Details: docs/ARCHITECTURE.md
Quick Start
git clone https://github.com/Reinazhard/kernelmind-mcp.git
cd kernelmind-mcp
cp .env.example .env # set EMBEDDING_* and any overrides
docker compose up -d --build
curl http://localhost:8080/healthOpencode (opencode.json)
{
"mcp": {
"kernelmind": {
"type": "local",
"command": ["docker", "compose", "exec", "-T", "kernelmind-mcp",
".venv/bin/python", "-m", "kernelmind.server", "--stdio"],
"enabled": true
}
}
}Any stdio MCP client uses the same command. For remote hosts, set
KERNELMIND_TRANSPORT=streamable-http and connect to http://<host>:8080/mcp.
See docs/OPENCODE.md and docs/DEPLOYMENT.md.
Configuration
All config via environment variables (Pydantic, fail-fast at startup) —
see .env.example.
Variable | Default | Purpose |
|
|
|
| — | Embedding provider (required) |
| compose defaults | Storage backends |
|
| HTTP Server Bind Address |
Project Status
Phase completion and known limitations: docs/PROGRESS.md. Available tool reference: docs/TOOLS.md. Deployment guide: docs/DEPLOYMENT.md.
License
GPL-2.0 — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceProvides semantic code search and retrieval capabilities for AI agents, enabling them to query codebases using natural language with automatic learning, hybrid search, and intelligent chunking of functions and classes.Last updated3929ISC
- Alicense-qualityAmaintenanceEnables AI agents to search and retrieve context from GitHub issues, pull requests, releases, and documentation using hybrid semantic search and time-ordered activity scans.Last updated511Apache 2.0
- Flicense-qualityDmaintenanceA high-precision local knowledge base server enabling AI agents to navigate, search, and reason about complex codebases using hybrid semantic, lexical, and graph retrieval.Last updated3
- Flicense-qualityBmaintenanceEnables AI agents to search and query documentation from git repositories using hybrid search and structured metadata queries.Last updated1
Related MCP Connectors
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Your company's brain for AI agents. Cited, permission-aware knowledge across every system.
Real-time fact-check, citation verification, and source-freshness for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Reinazhard/kernelmind-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server