Similarity search, hybrid search, and index management for pgvector-backed PostgreSQL tables
Connect Runs on your machine
claude mcp add pgvector -e DATABASE_URL=<DATABASE_URL> -e MCP_PGVECTOR_READ_ONLY=<MCP_PGVECTOR_READ_ONLY> -- uvx mcp-server-pgvector==0.1.0
{
"mcpServers": {
"pgvector": {
"command": "uvx",
"args": [
"mcp-server-pgvector==0.1.0"
],
"env": {
"DATABASE_URL": "<DATABASE_URL>",
"MCP_PGVECTOR_READ_ONLY": "<MCP_PGVECTOR_READ_ONLY>"
}
}
}
}
{
"mcpServers": {
"pgvector": {
"command": "uvx",
"args": [
"mcp-server-pgvector==0.1.0"
],
"env": {
"DATABASE_URL": "<DATABASE_URL>",
"MCP_PGVECTOR_READ_ONLY": "<MCP_PGVECTOR_READ_ONLY>"
}
}
}
}
{
"servers": {
"pgvector": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-server-pgvector==0.1.0"
],
"env": {
"DATABASE_URL": "<DATABASE_URL>",
"MCP_PGVECTOR_READ_ONLY": "<MCP_PGVECTOR_READ_ONLY>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
DATABASE_URLRequired, secret | PostgreSQL connection string, e.g. postgresql://user:password@host:5432/dbname |
MCP_PGVECTOR_READ_ONLYOptional | Set to 'true' to disable upsert_embedding and create_vector_index |
Details
| Package | [email protected] (PYPI, stdio) |
| First published | 21 Jul 2026 |
| Last updated | 21 Jul 2026 |
| Registry name | io.github.mittalpk/pgvector |
More search and web servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
