semantic-postgres-mcp
0
The Semantic PostgreSQL MCP Server allows AI assistants like Claude to conduct semantic searches on PostgreSQL databases by understanding database structures and executing natural language queries. It leverages vector embeddings to provide context-aware, hybrid search capabilities without altering existing database schemas.
Semantic PostgreSQL MCP Server
A Model Context Protocol (MCP) server enabling AI assistants like Claude to perform semantic search on PostgreSQL databases.
Key Features
- Vector-based semantic search using OpenAI's embeddings.
- Metadata-driven storage in vector format.
- No schema modification necessary.
- Simple integration with Claude Desktop.
Prerequisites
- PostgreSQL 13+ with pgvector extension.
- Node.js 18+.
- OpenAI API key.
- Claude Desktop.
Usage Examples
- Query customer information or product stock levels.
- Find orders above a specific amount.
How It Works
- Stores metadata with vector embeddings.
- Converts questions to embeddings to match with schema.
- Generates and executes SQL queries.
- Presents formatted results.
Installation
- Set up the database with the
schema.sql
script. - Install and configure the MCP server.
- Configure Claude Desktop with the MCP server.