Back to Home
ramonayy icon

rag2mcp_client

Verified Safe

by ramonayy

Overview

Provides a RAG (Retrieval Augmented Generation) service via an MCP (Message Control Protocol) endpoint, allowing semantic search over vectorized document sections stored in a PostgreSQL database.

Installation

Run Command
python src/mcp_server/mcp_server.py

Environment Variables

  • EMBEDDING_MODEL
  • DB_USER
  • DB_PASSWORD
  • DB_NAME

Security Notes

SQL queries utilize parameterized statements to prevent injection. Database credentials are expected to be loaded from environment variables (e.g., .env file). Input validation for the 'ids' parameter converts string parts to integers, which helps prevent direct code injection, but malformed input could lead to runtime errors.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassLow
Avg Tokens50
Stars0
Forks0
Last Update2025-12-03

Tags

RAGVector SearchDocument RetrievalSemantic SearchMCP Server