Skip to content
Cursor

pgvector for Cursor

io.github.mittalpk/pgvector

Similarity search, hybrid search, and index management for pgvector-backed PostgreSQL tables

client:Cursor transport:stdio runtime:pypi

Install pgvector 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": {
    "pgvector": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-server-pgvector"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "MCP_PGVECTOR_READ_ONLY": "<MCP_PGVECTOR_READ_ONLY>"
      }
    }
  }
}

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

pgvector in other clients