Back to Home
sathishkannan162 icon

simple-mcp-server

by sathishkannan162

Overview

An MCP server that exposes PostgreSQL table schemas as resources and provides a tool to execute read-only SQL queries against the database.

Installation

Run Command
pnpm start

Environment Variables

  • DATABASE_URL
  • PORT

Security Notes

The 'execute-read-queries' tool directly executes user-provided SQL queries using `client.query(sql)`. While it attempts to wrap queries in a `READ ONLY` transaction, this is a critical security risk. A malicious actor could craft complex read queries to perform denial-of-service (e.g., resource-intensive queries, long-running operations), extract large volumes of sensitive data, or otherwise exploit database-specific read vulnerabilities. Additionally, the server exposes access to `information_schema` tables, which could provide valuable reconnaissance for an attacker.

Similar Servers

Stats

Interest Score0
Security Score2
Cost ClassMedium
Avg Tokens300
Stars0
Forks0
Last Update2025-11-19

Tags

MCPPostgreSQLDatabaseAPISDK