How to Use the pgvector (Vector Database) MCP in Claude
Run raw vector similarity queries directly from your Claude Desktop chat without leaving your local environment.
Works with every AI agent you already use
…and any MCP-compatible client
Connect pgvector (Vector Database) MCP to Claude Desktop
Create your Vinkius account to connect pgvector (Vector Database) to Claude Desktop — we handle the hosting, security, and runtime updates so you don't have to. No server setup required.
Key Capabilities
Fast vector table setup in Claude Desktop
The `create_table` tool sets up pgvector columns with defined dimensions directly in your local Postgres database for Claude Desktop. Your local Claude Desktop agent calls this tool to establish the exact dimensions you need for your Postgres embeddings. No manual SQL migrations or terminal switching are required inside your Claude Desktop workspace. After the database schema is ready, you configure your pgvector indexing strategy on the fly through the chat interface. The tool `create_index` handles the heavy lifting, setting up HNSW or IVFFlat indexes so your Claude Desktop similarity lookups don't crawl to a halt as your Postgres database grows.
Direct embedding ingestion from your chat
The `insert_vector` tool lets your Claude Desktop client write high-dimensional embeddings straight into your Postgres database tables using this MCP connection. You feed raw text or array embeddings directly to the Claude Desktop chat interface, and the agent maps the inputs to your pgvector columns. It handles the formatting hurdles so you don't write boilerplate Postgres insert scripts inside Claude Desktop. If a vector becomes stale or you need to prune your dataset, the `delete_vector` tool removes specific records from Postgres instantly. This keeps your local development database clean and ensures your Claude Desktop retrieval context remains highly accurate.
Immediate semantic search within your workspace
The `search_vectors` tool executes similarity queries inside your PostgreSQL database to find the closest matching documents via this Claude Desktop MCP Server. It uses native pgvector operators to calculate distances, pulling the most relevant rows back into your active Claude Desktop context window. To keep track of your schema, the `list_tables` tool gives Claude Desktop a clear view of your existing Postgres vector relations. You always know exactly which pgvector tables are available for querying without running external database clients from Claude Desktop.
Set up pgvector (Vector Database) MCP in Claude Web or Desktop
- 1
Open Claude Settings
Go to claude.ai, click your profile icon, then navigate to Customize → Connectors.
- 2
Add Custom Connector
Click the "+" button and select Add custom connector. Paste your Vinkius endpoint URL:
https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcpReplace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. For OAuth-protected servers, expand Advanced settings to add credentials. - 3
Start a conversation
Open a new chat. The pgvector (Vector Database) MCP tools are available immediately — no restart needed.
Endpoint URL
https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp No configuration file needed — paste the URL directly in the Claude web interface.
Available on Free (1 connector), Pro, Max, Team, and Enterprise plans.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about pgvector (Vector Database) MCP in Claude Desktop
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the pgvector (Vector Database) MCP today
We host it, we monitor it, we maintain it. You just paste one token.