Back to Home
SachdevaVansh icon

MCP_Server_n8n_

by SachdevaVansh

Overview

Provides a Python-based Model Context Protocol (MCP) server to bridge an AI client (e.g., Claude Desktop) with a PostgreSQL database hosted on NeonDB and integrate with n8n for workflow automation.

Installation

Run Command
python postgresql.py

Security Notes

CRITICAL: The `postgresql.py` file contains a hardcoded PostgreSQL connection string (`psqlurl`) including database credentials (owner username and password). This is a severe security vulnerability. While the README suggests using environment variables, the code does not implement this. Additionally, the project encourages public exposure via ngrok, which, while noted as optional, combined with hardcoded credentials and the direct database query capabilities, poses a significant risk if not handled with extreme care. The `mcp.tool()` functions use parameterized queries, mitigating direct SQL injection for the defined tools, but the general `query_db` function could be misused if new tools are added without proper parameterization.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassLow
Avg Tokens50
Stars0
Forks0
Last Update2025-12-04

Tags

MCP ServerPostgreSQLNeonDBn8n IntegrationAI Tools