Skip to content
Cursor

Knowledge Index (KI) for Cursor

io.github.xamresor/postgres-knowledge-index

Code search for AI agents across repos: call graph, frontend-to-API routes, docs. Self-hosted.

client:Cursor transport:stdio runtime:oci

Install Knowledge Index (KI) in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "postgres-knowledge-index": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/xamresor/postgres-knowledge-index:0.18.0"
      ],
      "env": {
        "KI_DATABASE_URL": "<KI_DATABASE_URL>",
        "KI_EMBED_URL": "<KI_EMBED_URL>",
        "KI_API_TOKEN": "<KI_API_TOKEN>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

Knowledge Index (KI) in other clients