Install pgvector in Claude Code
claude mcp add pgvector -e DATABASE_URL=... -- uvx mcp-server-pgvector{
"mcpServers": {
"pgvector": {
"command": "uvx",
"args": [
"mcp-server-pgvector"
],
"env": {
"DATABASE_URL": "..."
}
}
}
}Replace each ... with your own value.
Frequently asked questions
What does the pgvector MCP server do?
Similarity search, hybrid search, and index management for pgvector-backed PostgreSQL tables
Is the pgvector MCP server free?
Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.
Does pgvector run locally or remotely?
Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.
How do I add pgvector to Claude Code?
Run: claude mcp add pgvector -e DATABASE_URL=... -- uvx mcp-server-pgvector
More databases MCP servers
View allPgVouch
Shubh-Sgr/pgvouch
Safe PostgreSQL migrations: schema drift, lock analysis, safe rewrites, data checksums. Read-only.
pgops
arzharch/pgops-mcp
Safe, audited PostgreSQL operations for AI agents: queries, migrations, EXPLAIN, containers
Polyglot Database
hyperpolymath/poly-db-mcp
Unified MCP for 20 databases: SurrealDB, ArangoDB, Virtuoso, CouchDB, Cassandra, and more
Pgmoat
Kitalon-Labs-LLC/pgmoat
Governed, read-only Postgres access for AI agents: SQL safety, RLS, budgets, tamper-evident audit.
Pombase
pipeworx-io/mcp-pombase
PomBase MCP — the fission yeast (Schizosaccharomyces pombe) model-organism database.
pgmcp
pascalallen/pgmcp
Read-only Postgres ops/DBA diagnostics: slow queries, EXPLAIN, locks, index and table health.