nnar1o avatar

kg

nnar1o/kg

Local knowledge graph memory that runs as an MCP server and stores project context in git-friendly `.kg` files. Exposes tools to create nodes and edges, query facts, and update the graph as you work. Better than RAG when you want explicit relationships, persistent memory between sessions, and something you can inspect and diff. Works stdio, stores graphs in `~/.kg/graphs` by default, and supports both manual graph building from docs and automatic extraction from codebases with symbol parsing for Rust, Java, Python, TypeScript, and C/C++. Good for keeping architecture decisions, dependencies, and workflows in a structure your assistant can read and modify without starting from zero each conversation.

tools
3
last updated
Aug 5, 2026

Tools

3 tools

Public tool metadata for what this MCP can expose to an agent.

kgExecute one or more kg commands separated by `;` or newlines, supporting node/edge CRUD, graph management, stats, audit, and feedback.

Execute one or more kg commands separated by `;` or newlines, supporting node/edge CRUD, graph management, stats, audit, and feedback.

No parameter schema in public metadata yet.

kg_helpReturns detailed manual with examples for a given domain.

Returns detailed manual with examples for a given domain.

No parameter schema in public metadata yet.

kg_schemaReturns valid node types, relations, ID prefixes, and edge rules.

Returns valid node types, relations, ID prefixes, and edge rules.

No parameter schema in public metadata yet.

Sponsors

Readme

kg - local knowledge graph for your AI assistants

image

CI Release License

Beta - APIs may still change and some bugs are still expected.

kg gives your AI assistant persistent, structured, editable project memory stored locally as a knowledge graph.

Instead of relying only on document chunk retrieval, you can keep architecture, decisions, incidents, rules, dependencies, and workflows in a graph that is readable, reviewable, and Git-friendly.

Use it when you want your assistant to understand an existing project across sessions — not start from zero every time.

Why use it


View the full README on GitHub

Details

Repository
github.com/nnar1o/kg
Website
github.com/nnar1o/kg/blob/master/docs/mcp.md
Categories
AI & LLM Tools, Documents & Knowledge
Registry
MCP registry, active

Related AI & LLM Tools MCP servers

View all
1iris-eval avatarIrisiris-eval/mcp-serverStop shipping agents on vibes. Score every agent output for quality, safety, and cost.0stars
2refined-element avatarLightning Enable MCP Serverrefined-element/lightning-enable-mcpAI agent Lightning payments: L402, invoices, wallets, API discovery, budgets, self-serve signup.9stars
3scrypster avatarMementoscrypster/mementoPersistent memory for AI tools. Local-first knowledge graph with hybrid search.9stars
4umitkavala avatarMindpmumitkavala/mindpmProject memory and a control plane for AI coding agents.9stars
5alex-feel avatarMcp Context Serveralex-feel/mcp-context-serverAn MCP server that provides persistent multimodal context storage for LLM agents.8stars
6automatelab-tech avatarCitation Intelligenceautomatelab-tech/citation-intelligenceCheck what Perplexity, Claude, ChatGPT, Gemini, and Google AI Overviews cite for any query.8stars