Context7
Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.
Similarity search, hybrid search, and index management for pgvector-backed PostgreSQL tables
Pick the AI app you use, then copy the settings.
Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 13, 2026
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
You need a pgvector key (create it on the maker’s site) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
One time only; it works for every server that needs Python (uv)
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
SettingsDeveloperEdit Config
{
"mcpServers": {
"pgvector": {
"command": "uvx",
"args": [
"mcp-server-pgvector"
],
"env": {
"DATABASE_URL": "your-value",
"MCP_PGVECTOR_READ_ONLY": "your-value"
}
}
}
}Paste the key only into the app’s field, never into a chat or to anyone
Use pgvector and tell me what you can do for me, then show me one thing✓ If Claude says it is using pgvector or shows a pgvector tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect pgvector yet
pgvector runs on your computer, but ChatGPT can only connect servers that run on the web
A · Use an app that can connect pgvector
B · Others in Search & AI memory that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
Works with Claude Code, with some setup first
You need a pgvector key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)
One time only; it works for every server that needs Python (uv)
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
Mac: press Command+Space and type Terminal · Windows: open PowerShell
claude mcp add --scope user pgvector --env DATABASE_URL=your-value --env MCP_PGVECTOR_READ_ONLY=your-value -- uvx mcp-server-pgvectorReplace “your-value” with your key before pressing Enter
Paste the key only into the app’s field, never into a chat or to anyone
You should see pgvector listed as connected
Use pgvector and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using pgvector or shows a pgvector tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
You need a pgvector key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)
One time only; it works for every server that needs Python (uv)
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
In the pgvector settings, DATABASE_URL, MCP_PGVECTOR_READ_ONLY is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Use pgvector and tell me what you can do for me, then show me one thing✓ If Cursor says it is using pgvector or shows a pgvector tool in the answer, you are connected
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
You need a pgvector key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)
One time only; it works for every server that needs Python (uv)
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
In the pgvector settings, DATABASE_URL, MCP_PGVECTOR_READ_ONLY is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Use pgvector and tell me what you can do for me, then show me one thing✓ If VS Code says it is using pgvector or shows a pgvector tool in the answer, you are connected
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Claude Code
claude mcp add --scope user pgvector --env DATABASE_URL=your-value --env MCP_PGVECTOR_READ_ONLY=your-value -- uvx mcp-server-pgvectorClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"pgvector": {
"command": "uvx",
"args": [
"mcp-server-pgvector"
],
"env": {
"DATABASE_URL": "your-value",
"MCP_PGVECTOR_READ_ONLY": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"pgvector": {
"command": "uvx",
"args": [
"mcp-server-pgvector"
],
"env": {
"DATABASE_URL": "your-value",
"MCP_PGVECTOR_READ_ONLY": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"pgvector": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-server-pgvector"
],
"env": {
"DATABASE_URL": "your-value",
"MCP_PGVECTOR_READ_ONLY": "your-value"
}
}
}
}DATABASE_URL secret required envMCP_PGVECTOR_READ_ONLY envThese settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 13, 2026
The registry name was verified with the GitHub account mittalpk, which owns the repo
Code last changed 4 months ago
Uses MIT
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
No reviews yet
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
You need to fill in: DATABASE_URL
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed 4 months ago, and the latest version (0.1.0) reached the registry 4 months ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.
In the same category: Context7, Codebase Memory, Ruflo
Servers in the same category from other makers, sorted by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Agent teams, swarms, memory and hooks for Claude Code and Codex, served over MCP.
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
An MCP server that gives LLM agents first-class access to pgvector-backed embedding tables in PostgreSQL: similarity search, hybrid (vector + full-text) search, upserts, and HNSW/IVFFlat index management.
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.
| Tool | Description |
|---|---|
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 |
information_schema / pg_catalog before being interpolated into SQL — an LLM can only ever reference identifiers that already exist. Values are always bound parameters.{column, op, value} allowlist, not a raw SQL fragment.MCP_PGVECTOR_READ_ONLY=true to disable upsert_embedding and create_vector_index, leaving only read/search tools available — useful when pointing the server at a production database.MCP_PGVECTOR_COMMAND_TIMEOUT_SECONDS, default 30s) so one expensive query can't occupy a pool connection — and stall every other caller — indefinitely. Set it to 0 to disable.uvx mcp-server-pgvector
Or with pip:
pip install mcp-server-pgvector
python -m mcp_server_pgvector
The server reads its connection string from DATABASE_URL (or PGVECTOR_DATABASE_URL):
{
"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" } } } }
Covered:
pg_catalog before use) and a closed filter-operator allowlist — no path from tool arguments to raw SQL.twine check on the result.ConnectionRefusedError/asyncpg exceptions — verified these don't leak the DSN's credentials into error text.Known limitations, honestly:
DATABASE_URL can do. If you need different agents to have different permissions, give them different connection strings backed by different Postgres roles, not different server instances of this same DSN.hybrid_search's full-text side is hardcoded to Postgres's 'english' text search configuration; there's no parameter to change it yet.uv sync --dev
docker compose -f docker-compose.dev.yml up -d
export DATABASE_URL=postgresql://postgres:postgres@localhost:5434/postgres uv run pytest
uv run ruff check . uv run pyright
See CONTRIBUTING.md. See CHANGELOG.md for release history.
MIT — see LICENSE.