Universal Database MCP Service
Allows Cursor and other MCP-compatible tools to connect to any JDBC-supported database (Oracle, MySQL, PostgreSQL, SQL Server, and more).
Includes built-in safety checks that ask for confirmation before running potentially dangerous SQL, helping prevent accidental data loss.
Built on MCP (Model Context Protocol) using Java 11 and JDBC. Just add the JDBC driver JAR and configure your database connection to get started.
Author: Alvin Liu https://alvinliu.com
Project: https://github.com/kjstart/cursor_db_mcp
Features
- list_connections — List configured database connections and their availability.
- execute_sql — Execute SQL query and simple procedures.
- execute_sql_file — Read SQL from a file to run complex SQL.
- query_to_csv_file — Run a query and write the result to a file as CSV, for larger result sets.
- query_to_text_file — Run a query and write the result to a file as plain text (for AI to read stored procedures).
Review and safety — Dangerous SQL or DDL can trigger a confirmation window before execution.
Logging — Optional audit log (file rotation) and stderr console log.
0 Comments