Skip to main content
Glama
mittalpk

mcp-server-pgvector

by mittalpk

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DATABASE_URLNoPostgreSQL connection string (e.g., postgresql://user:password@localhost:5432/mydb)
PGVECTOR_DATABASE_URLNoAlternative PostgreSQL connection string
MCP_PGVECTOR_READ_ONLYNoSet to 'true' to disable write tools (upsert_embedding, create_vector_index). Default is 'false'.false
MCP_PGVECTOR_COMMAND_TIMEOUT_SECONDSNoPer-command timeout in seconds. Set to '0' to disable. Default is '30'.30

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_vector_tablesA

List every column of type vector in the database, with its table and dimensionality.

describe_vector_tableA

Get columns, indexes, and an approximate row count for a table.

similarity_searchB

Find the k nearest neighbors to a query embedding.

`filters` is a structured allowlist (column/op/value) — not raw SQL — so
metadata filtering stays injection-safe.
hybrid_searchA

Rank rows by a weighted blend of vector similarity and Postgres full-text search.

upsert_embeddingB

Insert a row or update it in place if id_value already exists (upsert).

create_vector_indexB

Create an HNSW or IVFFlat approximate-nearest-neighbor index on a vector column.

explain_similarity_queryB

Run EXPLAIN ANALYZE on a similarity query to confirm an ANN index is used.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mittalpk/mcp-server-pgvector'

If you have feedback or need assistance with the MCP directory API, please join our Discord server