pgvector MCP Server
by mittalpkio.github.mittalpk/pgvectorv0.1.0
Similarity search, hybrid search, and index management for pgvector-backed PostgreSQL tables
context tax
queued
security
queued
cold start
queued
freshness
Maintained3mo ago
Install pgvector MCP server
Install in Claude Code
claude mcp add pgvector -e DATABASE_URL='<database-url>' -- uvx mcp-server-pgvectorInstall in Cursor
{
"mcpServers": {
"pgvector": {
"command": "uvx",
"args": [
"mcp-server-pgvector"
],
"env": {
"DATABASE_URL": "<database-url>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"pgvector": {
"command": "uvx",
"args": [
"mcp-server-pgvector"
],
"env": {
"DATABASE_URL": "<database-url>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"pgvector": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-server-pgvector"
],
"env": {
"DATABASE_URL": "<database-url>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"pgvector": {
"command": "uvx",
"args": [
"mcp-server-pgvector"
],
"env": {
"DATABASE_URL": "<database-url>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| DATABASE_URL | yes | yes | PostgreSQL connection string, e.g. postgresql://user:password@host:5432/dbname |
| MCP_PGVECTOR_READ_ONLY | — | — | Set to 'true' to disable upsert_embedding and create_vector_index |
Freshness
Maintained — last maintenance signal 3mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-07-21 · 3mo ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-07-21 · 3mo ago · official registry · v0.1.0
FAQ
›How do I install the pgvector MCP server in Claude Code?
Run: claude mcp add pgvector -e DATABASE_URL='<database-url>' -- uvx mcp-server-pgvector. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does pgvector require an API key?
Yes. It expects DATABASE_URL, of which 1 is a secret.
›Can I use pgvector as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is pgvector in the official MCP registry?
Yes, as io.github.mittalpk/pgvector.
Alternatives to pgvector
Other database MCP servers.