Prototipo · Versión preliminar: todos los servidores del registro oficial, sincronizados cada 30 minutos. Las reseñas y las cuentas llegarán en una etapa posterior.
PopNx MCPServidores MCP para quienes usan IA · explicados con palabras sencillas

kg

de nnar1oversión 0.3.0i★ –i–
Nombre en el registroio.github.nnar1o/kg-mcp

Instalar

Resumen

Descripción del creador (original en inglés)

Local knowledge graph memory MCP server for AI assistants.

Los tres pilares de PopNx MCP

Estos tres nunca se combinan en una sola puntuación: las opiniones, las mediciones y la popularidad son cosas distintas.

Qué puedes hacer con él

Todavía no escribimos un resumen sencillo para este. Abajo están los datos que leímos del registro.

  • Conexión: –
  • Transporte:
  • Categoría: Búsqueda y memoria de IA

Instalación

Elige la app de IA que usas y copia la configuración.

Antes de instalar

El creador no incluyó detalles de instalación en el registro. Consulta el README del creador más abajo.

Qué puede hacer

Se ejecuta en tu computadora; la lista de herramientas aparece en tu app de IA después de instalarlo.

Revisiones básicasi

Revisamos información que cualquiera puede ver; no hemos leído el código. Las revisiones que no aplican no se cuentan. · Revisado el 8 nov 2026

  • ✓ Superada

    El creador coincide con el repo

    El nombre en el registro se verificó con la cuenta de GitHub nnar1o, dueña del repo

  • … Aún sin revisar

    Sigue en mantenimiento

    Todavía no hemos leído este repo en GitHub

  • … Aún sin revisar

    Tiene licencia

    Todavía no hemos leído este repo en GitHub

  • – No aplica

    El endpoint responde

    Este se ejecuta en tu computadora; no hay endpoint en internet

  • – No aplica

    Inicio de sesión con OAuth

    Se ejecuta en tu computadora y usa ajustes locales en su lugar

  • … Aún sin revisar

    Sin instrucciones ocultas en las descripciones de herramientas

    Se ejecuta en tu computadora; solo podemos leer listas de herramientas de endpoints en internet

Comparado con otros en Búsqueda y memoria de IAi

  • Más estrellas que el 0% de los otros 5687 servidores de esta categoría
  • Publicado en el registro más recientemente que el 28% de los otros 5687 servidores de esta categoría
  • Revisiones básicas iguales o mejores que el 100% de los otros 5687 servidores de esta categoría

Comparado con todos los servidores activos de esta categoría en el registro. Las estrellas solo cuentan cuando quien lo publica es dueño del repo.

Preguntas frecuentes

¿Es seguro kg?

Superó 1 de 1 revisiones básicas aplicables. No hemos leído el código. Antes de agregar una clave o un token, revisa qué acceso pide el servidor y usa una clave que tenga solo los permisos que necesitas.

¿Qué claves o códigos necesita?

El registro no indica ninguna clave obligatoria, aunque algunos servidores te piden iniciar sesión la primera vez que los usas.

¿Se ejecuta en mi computadora o en la nube?

Se ejecuta en tu computadora. Tu app de IA lo inicia cuando hace falta, y los datos no pasan por los servidores del creador (a menos que el propio servidor llame a un servicio en línea).

¿Sigue en mantenimiento?

El repo de GitHub cambió por última vez –, y la última versión (0.3.0) llegó al registro hace 3 meses.

¿Qué apps pueden usarlo?

Las apps compatibles con MCP, como Claude Desktop, Claude Code, Cursor y VS Code.

¿Qué puedo usar en su lugar?

En la misma categoría: Context7, Codebase Memory, Exa

Alternativas

Servidores de la misma categoría hechos por otros creadores, ordenados por estrellas.

Cómo leer una tarjeta:↓ Descargas por semanai★ Estrellas de GitHubiTres pilares: reseñas · revisiones · usoiActualizado = fecha en que se publicó la última versión en el registroi

Context7

Up-to-date docs for AI agents

de upstashMuy usado↓ 972,7 mil/sem★ 64,2 milActualizado anteayer

Computadora o nube

Codebase Memory

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

de DeusDataMuy usado↓ 18 mil/sem★ 48,1 milActualizado hace 22 días

Se ejecuta en tu computadora

Exa

Connect AI agents to Exa for web search, content fetching, and multi-step research.

de exa-labsEn crecimiento★ 5,2 milActualizado hace 2 meses

Se ejecuta en la nube✓ exa.ai

README del creador

Abrir el README

Copiado tal cual del repo del creador. PopNx MCP no lo ha revisado ni lo respalda. Se quitaron HTML, imágenes y scripts. Los enlaces llevan fuera de este sitio.

kg - local knowledge graph for your AI assistants

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
cargo install kg-cli
From script

Recommended install:

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:

{

"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.

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 search nodes by text
get fetch one node by id
add --name "Name"create a node (type inferred from id prefix)
modify --field valueupdate node fields
remove delete a node
connect create an edge (alias: add edge)
disconnect delete an edge (alias: remove edge)
`list nodes\edges\types\relations\graphs`list graph contents
statsshow graph statistics
use switch active graph
help [verb]get help for a verb or all
`feedback yes\no\nil\pick `give feedback on search results
strictdisable defaults for following lines
IDs

Format: :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 to switch graphs within a script.
  • Canonical kg 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:

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:

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:

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:

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:

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:

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:

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:

*.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:

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

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

Documentation

  • docs/mcp.md - MCP setup and tool reference
  • docs/ai-prompt-graph-from-docs.md - longer prompt for document ingestion
  • docs/build-graph-from-docs.md - graph-building workflow from docs
  • docs/troubleshooting.md - common issues

Contact

For questions or feedback: nnar10@proton.me

Pregunta a PopNx