rdb-mcp-server
Experimental MCP server based on Spring AI for low-level SQL operations using JDBC.
Uses stdio as the transport mechanism.
Project prototype is AI generated.
Supported Databases
- MySQL
- PostgreSQL
- SQLite
Requirements
- Java 17 or later
How to Use
Installation
Download the JAR from the GitHub releases page.
Configuration
Available environment variables:
-
DB_URL: Database connection URL (default:jdbc:sqlite:./sqlite.db) -
DB_USER: Database username -
DB_PASSWORD: Database password -
API_PASSWORD: Password for non-read-only operations (optional) -
LOG_FILE: Log file path (optional, default:./rdb-mcp-server.log)
Running Standalone
java -jar x.x.x.jar
MCP Client Integration
Cline
{
"mcpServers": {
"rdb_mcp_server": {
"command": "java",
"args": [
"-jar",
"/path/to/jar"
],
"env": {
"DB_URL": "jdbc:mysql://localhost:3306/your_database",
"DB_USER": "your_username",
"DB_PASSWORD": "your_password",
"API_PASSWORD": "your_password_here",
"LOG_FILE": "./rdb-mcp-server.log"
},
"disabled": false,
"autoApprove": []
}
}
}
Cursor
{
"mcpServers": {
"rdb_mcp_server": {
"command": "java",
"args": [
"-jar",
"/path/to/jar"
],
"env": {
"DB_URL": "jdbc:mysql://localhost:3306/your_database",
"DB_USER": "your_username",
"DB_PASSWORD": "your_password",
"API_PASSWORD": "your_password_here",
"LOG_FILE": "./rdb-mcp-server.log"
}
}
}
}
Available Tools
executeQuery
Executes read-only SQL queries. No authentication required.
Vulnerable to SQL injection。
executeRawSql
Executes raw SQL statements. Requires password for non-read-only operations.
executePreparedSql
Executes parameterized SQL operations using PreparedStatement.
Adding Other Relational Databases
Add the appropriate database driver to the pom.xml file and rebuild.
相关推荐
I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.
I find academic articles and books for research and literature reviews.
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
Advanced software engineer GPT that excels through nailing the basics.
Converts Figma frames into front-end code for various mobile frameworks.
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.
La aplicación AI de escritorio todo en uno y Docker con trapo incorporado, agentes de IA, creador de agentes sin código, compatibilidad de MCP y más.
Plataforma de automatización de flujo de trabajo de código justo con capacidades de IA nativas. Combine el edificio visual con código personalizado, auto-anfitrión o nube, más de 400 integraciones.
Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx
🧑🚀 全世界最好的 llM 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Resumen de los mejores recursos del mundo.
Una lista curada de servidores de protocolo de contexto del modelo (MCP)
Espejo dehttps: //github.com/agentience/practices_mcp_server
Reviews
user_WFvV6fD2
As a dedicated user of rdb_mcp_server, I can confidently say that this product is a game-changer for database management. Developed by 31San, it offers seamless integration and robust performance. The user-friendly interface and comprehensive features make database handling efficient and hassle-free. Highly recommend checking it out on GitHub!