Skip to main content
Glama
Knowledge Index (KI)
by xamresor

Documentation: knowledge-index.sereda.lv — getting started, every setting, the shared server.

One search over several related code projects and their docs, for AI agents. In a few minutes it builds a map of the projects (for example a Laravel API and its Vue or React frontends) and answers what depends on what, which screen calls which route, how to get from A to B across repositories, and what a pull request touches. It keeps the map current within seconds of each commit. Agents ask it over MCP. Everything runs on your machine, no API keys.

Built on graphify (AST code graph) and qmd (on-device Markdown search).

TIP

Using it on your own codebase? It started on one Laravel API with Vue frontends, so other stacks will hit rough edges. Fixes, new language plugins and pull requests are very welcome: open an issue or a PR.

See it first: the demo

A small built graph of a made-up shop ships with the repo:

make demo         # open the demo dashboard (python3 only, nothing to build)

Red edges are routes: a Vue view's api.get('/orders') linked to the controller method that serves it.

Related MCP server: CodeGraph

Quick start

KI is one Docker stack: Postgres with pgvector, an embedding server, the KI server and a refresh service that rebuilds the index when a repository gets a new commit. You need Docker with Docker Compose.

# a folder with docker/compose.postgres.yml, .env (two random secrets) and config/ki.projects.toml
docker compose -f compose.postgres.yml up -d

The first build runs by itself. The MCP server answers on http://127.0.0.1:8899/mcp with the token from .env. Every step and file: Getting started. Or let your agent do it in one task: docs/agent-setup.md.

The earlier file-based prototype (one developer, no Docker) lives in its own repository: github.com/xamresor/knowledge-index.

What the agent gets

Tool

Answers

contracts_search

a route: its controller, middleware and every file that calls it

graph_explain

one symbol and all its connections

graph_affected

what depends on a symbol, across repositories

graph_routes

several ways from A to B, with the routes on the way

review_context

a diff: what changed, what depends on it, the routes and screens it reaches, the docs to check

search

docs and code by meaning

docs_get

a document by path; with Postgres it needs the add-on docs-text (off by default), else read the file in your checkout

code_grep

add-on code-grep, off by default: exact text with a regular expression. Without it, search exact text in your checkout with grep or rg

repo_map

a first look at a project: what most of the code leans on; with unused, dead-code candidates

Long answers come in pages with a cursor; connections and problems show the service map and its gaps.

Add-ons

Off until you install them; an add-on that is off adds no tool, page or route.

Add-on

ki addon install … gives

Needs

tool-multicall

batch: several tool calls in one request

—

code-mode

run_code: a small program that calls the tools, in a sandbox

Node 22+

fast-routes

graph_routes on a Rust core, 2-3x faster

graphify via uv or pipx

metrics

GET /metrics for Prometheus, Grafana or PMM

—

audit

an Audit tab: sign-ins, admin actions, every tool call with user and argument

the admin pages

ki addon list shows what is on, ki addon remove <name> switches one off. The admin pages (/admin: status, charts, usage, sign-in clients, settings) are part of the core: on a shared server they need KI_ADMINS or an access plugin with roles. An add-on can also live outside this repository, under its own licence: ki addon install <folder with plugin.py> (see bin/plugins.py for the four names a plugin defines). A team server with browser sign-in and access per project: docs/server.md; it asks your own system who may see what through two webhooks, docs/access-protocol.md.

More

License

AGPL-3.0-or-later: free software, use, study, share and modify it. Copyright (C) 2026 Romans Sereda. Changed versions must stay under the AGPL, and that includes running a changed KI as a service for other people: its users can then ask for the source of what they use. Versions up to 0.13.0 were released under GPL-3.0-or-later.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables semantic code search across multiple repositories using natural language queries. Provides intelligent code discovery, symbol lookups, and cross-repo dependency analysis for AI coding agents.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Supercharges AI coding agents with a pre-indexed semantic code graph, enabling instant symbol relationships, impact analysis, and context retrieval across 20+ languages.
      191,704 npm
      79,046
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to query and analyze code across multiple repositories through a unified knowledge graph, with tools for symbol search, impact analysis, and graph algorithms.
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables developer agents to perform semantic codebase search, dependency and impact analysis, cross-file refactoring, and full-stack API tracing through a unified query DSL over a high-performance graph engine.
      1
      -