Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. 🧠 Knowledge & Memory
  3. Kg
K
Health: Not checked yetWe have not completed a health check for this listing yet.No health check has run yet.

Kg

User RatingsBe the first to rate and review this MCP server! Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View RepositoryVisit Website

Local knowledge graph memory MCP server for AI assistants.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "kg": {
      "command": "npx",
      "args": [
        "-y",
        "kg"
      ]
    }
  }
}

πŸ’‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Directory Badge Claim listing Alternatives🧠 More in Knowledge & Memory

Documentation Overview

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

  • Persistent memory β€” keep project knowledge between conversations
  • Structured, not fuzzy β€” inspect nodes, edges, facts, and gaps directly
  • Editable and reviewable β€” store graphs as *.kg files with readable diffs
  • Local-first β€” your project memory stays on your machine in git-friendly format
  • Works with MCP clients β€” connect it as a local stdio MCP server

Why not just RAG

Classic RAG is good for retrieving text chunks from documents.

kg-mcp is better when you want:

  • stable project memory instead of repeated retrieval
  • explicit facts, relations, and dependencies
  • graph updates during real work with the assistant
  • something you can inspect, version, diff, and improve over time

Installation

From crates.io

sh
cargo install kg-cli

From script

Recommended install:

Terminal
curl -sSL https://raw.githubusercontent.com/nnar1o/kg/master/install.sh | sh

You can also download a ready binary from GitHub Releases.

Connect kg-mcp to Your AI Client

Add kg-mcp as a local stdio MCP server.

Example config:

config.json
{
  "mcpServers": {
    "kg": {
      "command": "/absolute/path/to/kg-mcp"
    }
  }
}

After that:

  1. restart your AI client,
  2. confirm the kg MCP server is available,
  3. start using the prompts below.

Full MCP setup and reference: docs/mcp.md

SCL quickstart

kg understands short, verb-first English commands (SCL β€” Simple Command Language). The active graph is resolved from your config automatically.

text
find "compressor defrost"
get concept:refrigerator
add concept:smart_fridge --name "Smart Fridge" --description "Connected refrigerator"
modify concept:smart_fridge --importance 0.9
remove concept:old_idea
connect process:compressor_control TRIGGERS process:auto_defrost
disconnect process:compressor_control TRIGGERS process:auto_defrost
list nodes
stats
use fridge
help

Core verbs

VerbWhat it does
find <query>search nodes by text
get <id>fetch one node by id
add <id> --name "Name"create a node (type inferred from id prefix)
modify <id> --field valueupdate node fields
remove <id>delete a node
connect <src> <REL> <dst>create an edge (alias: add edge)
disconnect <src> <REL> <dst>delete an edge (alias: remove edge)
list nodes|edges|types|relations|graphslist graph contents
statsshow graph statistics
use <graph>switch active graph
help [verb]get help for a verb or all
feedback <uid> yes|no|nil|pick <n>give feedback on search results
strictdisable defaults for following lines

IDs

Format: <type>:snake_case β€” e.g. concept:fridge, bug:door_seal, process:compressor_cycle.

Relations

HAS USES STORED_IN TRIGGERS CREATED_BY AFFECTED_BY AVAILABLE_IN DOCUMENTED_IN DEPENDS_ON TRANSITIONS DECIDED_BY GOVERNED_BY READS_FROM

Tips

  • Flags go after positional args. Quote multiword values.
  • Separate commands with ; or newlines. Lines starting with # are comments.
  • Use use <graph> to switch graphs within a script.
  • Canonical kg <graph> node find ... commands still work as fallback.
  • Full SCL reference: docs/scl.md

Generate a Graph

This is the first workflow for a new project: ask the assistant to create or extend a graph from your documentation.

By default, graphs are stored in ~/.kg/graphs as *.kg files.

Minimal prompt:

text
You are connected to kg-mcp.

Project graph name: payments

Build or extend this graph from the project documentation I provide.
Use `payments` as the graph name for all graph operations.

Only add facts grounded in source material.
If an important fact is missing and can be inferred safely from the provided docs, update the graph.
If something is ambiguous, ask or record it as a note instead of inventing facts.

Example prompt with documents:

text
Use kg-mcp to build or extend the `payments` graph from these documents:
- docs/payments/overview.md
- docs/payments/retries.md
- docs/payments/providers.md

Only add facts grounded in the documents.
If something is ambiguous, keep it out of the graph or record it as a note.
When you finish, summarize what was added, what remains unclear, and what document should be ingested next.

Longer prompt for this workflow: docs/ai-prompt-graph-from-docs.md

For a ready-made repository example, run cargo run --bin repo-example to generate repo-example.kg from this repo.

Automatic graph for a directory

kg can turn an existing folder into a graph automatically. It scans the directory tree, recognizes many common file types, extracts symbols for Rust, Java, JavaScript/TypeScript, Python, and C/C++, and keeps the generated structure separate from the manual graph.

For markdown-like documents, it also creates document (GDOC) and chapter (GSEC) nodes with section content.

It is a fast way to get a useful map of a codebase or workspace without modeling everything by hand. The generated index is local, refreshable, and safe to ignore in git.

Example:

sh
cargo run --bin repo-example

This generates repo-example.kg from this repository as a local demo.

Ask the Assistant About Facts in the Graph

Once the graph exists, the normal workflow is to ask the assistant to inspect it and answer questions from it.

Example prompt:

text
Use kg-mcp to inspect my existing `payments` graph.

I want to understand:
- how payment authorization works,
- what triggers retries,
- which external providers are involved,
- which datastore reads and writes are part of the flow.

If the graph is missing critical information, say exactly what is missing.

Other useful questions:

  • "What rules control retries in the payments graph?"
  • "Which systems write to the orders datastore?"
  • "What is missing or weak in this graph?"
  • "Which nodes and edges explain the authorization flow?"

Add or Update Facts Through the Assistant

You can also ask the assistant to improve the graph while you work.

Example prompt:

text
Use kg-mcp to review my existing `payments` graph.

Find:
- missing important nodes,
- weak descriptions,
- missing facts,
- suspicious or low-value edges.

Apply safe improvements where possible.
Only add facts grounded in the graph, the provided docs, or the current discussion.
If something is ambiguous, leave it out or add a note.

When you finish, summarize:
- what was wrong,
- what you changed,
- what still needs manual review.

This works best when your main system prompt or project prompt already tells the assistant which graph belongs to the project.

Minimal project-level prompt:

text
You are connected to kg-mcp.
Project graph name: payments.
Use this graph for relevant reads and updates in this project.
If you notice important missing information that is grounded in the available docs or conversation context, update the graph as part of your work.
If uncertain, ask or add a note instead of inventing facts.

Tips

Project config (.kg.toml)

kg looks for .kg.toml in the current directory and its parent directories.

Example:

toml
backend = "json" # json backend writes native .kg files by default
graph_dir = ".kg/graphs"
graph_dirs = ["../shared-graphs", "../team-graphs"]
nudge = 20
user_short_uid = "dev_01"

[graphs]
payments = "graphs/payments.kg"

Notes:

  • backend = "json" is the default and prefers .kg text graphs.
  • backend = "redb" stores graphs in .db files.
  • graph_dir sets a primary graph directory.
  • graph_dirs adds extra directories scanned by kg list and graph resolution.

Keep Graphs in Git

The default graph directory is ~/.kg/graphs.

You can put that directory under git.

Recommended approach:

  • keep the main *.kg graph files in git,
  • ignore generated sidecars and local operational files,
  • treat backup snapshots and event logs as local machine history unless you explicitly want to version them.

Suggested .gitignore:

gitignore
*.kglog
*.kgindex
*.event.log
*.migration.log
*.bak
*.bck.*.gz

In practice:

  • *.kg is the main graph file you usually want to review and commit,
  • *.kglog is a local access/feedback log,
  • *.kgindex is a generated local index,
  • *.event.log is a local append-only change timeline,
  • *.bak is the previous on-disk version from the last write,
  • *.bck.*.gz are periodic compressed backup snapshots,
  • *.migration.log is a migration report when older graphs are converted.

*.kg is git-friendly and intentionally structured to make diffs readable and merges easier when several people work on the same graph.

Export a Graph to HTML

To generate an interactive HTML view of a graph:

sh
kg graph payments export-html --output payments.html

You can keep the generated HTML as a shareable visual snapshot of the current graph.

Documentation

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Knowledge & Memory View all alternatives
  • Moxie Docs MCP logoMoxie Docs MCP
    β˜… Featured

    MCP & Agent Skills for Automated Documentation, and codebase conventions + context

    🧠 Knowledge & Memory21 views
    Compare vs Moxie Docs MCP β†’
  • Scrivener MCP logoScrivener MCP

    Connect Scrivener 3 writing projects to Claude and other AI assistants. 47 tools for document management, writing analysis, semantic search, character/plot memory, and content enhancement. Progressive skill loading, relationship engine with HMS triplets, and JS fallback for offline semantic search. npm i -g scrivener-mcp

    🧠 Knowledge & Memory16 views
    Compare vs Scrivener MCP β†’
  • Memento logoMemento

    Local-first, LLM-agnostic memory layer for AI assistants.

    🧠 Knowledge & Memory2 views
    Compare vs Memento β†’
  • D
    Droste

    Local code-memory graph for AI coding agents.

    🧠 Knowledge & Memory0 views
    Compare vs Droste β†’

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about Kg

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "kg": { "command": "npx", "args": ["-y", "kg"] } }

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewKg AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/kg?style=directory)](https://allmcps.com/mcp/kg)
HTML Embed
<a href="https://allmcps.com/mcp/kg"><img src="https://allmcps.com/api/badge/kg?style=directory" alt="Kg on AllMCPs" /></a>

Technical Specs & Signals

Category🧠Knowledge & Memory
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
Last updatedSep 7, 2026
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
25Quality signal: Emerging Β· 25/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership8/20
Documentation & tools10/30
Adoption & activity1/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… FeaturedMoxie Docs MCP logo

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in 🧠 Knowledge & Memory β†’Best MCP servers for Memory & Knowledge β†’Alternatives to Kg β†’Install in Claude DesktopInstall in CursorInstall in VS Code