Knowledge Index (KI)
Code search for AI agents across repos: call graph, frontend-to-API routes, docs. Self-hosted.
Install
Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).
ghcr.io/xamresor/postgres-knowledge-index:0.19.0claude mcp add knowledge-index-ki -e 'KI_DATABASE_URL=<your ki_database_url>' -e 'KI_EMBED_URL=<KI_EMBED_URL>' -e 'KI_API_TOKEN=<your ki_api_token>' -- docker run -i --rm ghcr.io/xamresor/postgres-knowledge-index:0.19.0
{
"mcpServers": {
"knowledge-index-ki": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/xamresor/postgres-knowledge-index:0.19.0"
],
"env": {
"KI_DATABASE_URL": "<your ki_database_url>",
"KI_EMBED_URL": "<KI_EMBED_URL>",
"KI_API_TOKEN": "<your ki_api_token>"
}
}
}
}
Environment variables
KI_DATABASE_URLrequired secret Postgres 17 with pgvector, e.g. postgresql://ki:<password>@db:5432/ki. The full stack is docker/compose.postgres.yml.KI_EMBED_URLrequired OpenAI-compatible embedding endpoint, e.g. http://embed:11435/v1 (the embed service in docker/compose.postgres.yml).KI_API_TOKENrequired secret Bearer token the MCP clients send to this server.
Frequently asked questions
What is Knowledge Index (KI)?
Code search for AI agents across repos: call graph, frontend-to-API routes, docs. Self-hosted.
How do I install Knowledge Index (KI)?
It runs on your machine. In Claude Code: claude mcp add knowledge-index-ki -e 'KI_DATABASE_URL=<your ki_database_url>' -e 'KI_EMBED_URL=<KI_EMBED_URL>' -e 'KI_API_TOKEN=<your ki_api_token>' -- docker run -i --rm ghcr.io/xamresor/postgres-knowledge-index:0.19.0. For other clients, paste the JSON configuration from this page into their MCP settings.
Does Knowledge Index (KI) need an API key?
Yes. It expects KI_DATABASE_URL, KI_EMBED_URL, KI_API_TOKEN, which you set in its configuration.
Is Knowledge Index (KI) open source?
Its code is public on GitHub, but the repository does not declare a standard license.
Who maintains Knowledge Index (KI)?
It is published by xamresor. AI.tn lists it but does not maintain or endorse it.
From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.