Similarity search, hybrid search, and index management for pgvector-backed PostgreSQL tables
Similarity search, hybrid search, and index management for pgvector-backed PostgreSQL tables
Generic Postgres MCP servers expose raw SQL or schema introspection; this one speaks pgvector specifically — nearest-neighbor search, distance metrics, and ANN index tuning are first-class tools, not something the model has to hand-write SQL for.
Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| Tool | What it does |
|---|---|
| list_vector_tables | Discover every vector column in the database, with its dimensionality |
| describe_vector_table | Columns, indexes, and approximate row count for a table |
| similarity_search | k-NN search over a vector column (cosine / L2 / inner product), with structured metadata filters |
| hybrid_search | Weighted blend of vector similarity and Postgres full-text search (ts_rank_cd) |
| upsert_embedding | Insert or update a row's embedding + metadata |
| create_vector_index | Create an HNSW or IVFFlat index with tunable parameters |
| explain_similarity_query | EXPLAIN ANALYZE a similarity query to confirm the ANN index is used |
{
"mcpServers": {
"pgvector": {
"command": "uvx",
"args": ["mcp-server-pgvector"],
"env": {
"DATABASE_URL": "postgresql://user:password@localhost:5432/mydb",
"MCP_PGVECTOR_READ_ONLY": "false",
"MCP_PGVECTOR_COMMAND_TIMEOUT_SECONDS": "30"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| DATABASE_URL | Endpoint or connection string the server talks to. | Yes |
| MCP_PGVECTOR_READ_ONLY | Configuration value read at startup. | Optional |
| MCP_PGVECTOR_COMMAND_TIMEOUT_SECONDS | Configuration value read at startup. | Optional |
| PGVECTOR_DATABASE_URL | Endpoint or connection string the server talks to. | Yes |
Inspect PostgreSQL schemas and run read-only queries with the archived MCP reference server. Review its maintenance status before choosing it.
Connect the Notion MCP server to search workspace content and work with pages and databases through Notion’s hosted OAuth service.
Use the Supabase MCP server to inspect database schemas, query project data and retrieve docs through a project-scoped connection.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.