Back to Home
dimmark2 icon

mcp-server

by dimmark2

Overview

Provides an AI agent with tools to query and explore a Postgres database schema (specifically 'df365') via the Model Context Protocol (MCP).

Installation

Run Command
npm run start:http

Environment Variables

  • PGHOST
  • PGPORT
  • PGUSER
  • PGPASSWORD
  • PGDATABASE
  • DATABASE_URL
  • PORT
  • MCP_HTTP_PORT

Security Notes

CRITICAL: The server has a hardcoded default PostgreSQL password ('qDJqEEbhMrQThzXAKRgtIFzFVKsHSaio') which is a severe security vulnerability. CRITICAL: The `sample_rows` and `describe_table` tools are vulnerable to SQL injection as they construct SQL queries by directly concatenating user-provided `schema` and `table` names without proper sanitization or parameterization for identifiers. The `run_select` tool attempts to prevent data modification and arbitrary SQL execution via a blacklist, but this approach is less secure than whitelisting or using parameterized queries for dynamic identifiers, and does not cover the other vulnerable tools.

Similar Servers

Stats

Interest Score0
Security Score2
Cost ClassMedium
Avg Tokens1000
Stars0
Forks0
Last Update2025-12-06

Tags

PostgresSQLDatabaseMCPAgent Tools