Spring AI MCP server for low-level SQL operations over JDBC

Spring AI MCP server for low-level SQL operations over JDBC

rdb_mcp_server•by31san

An experimental MCP server that connects to relational databases via JDBC and exposes tools for running read-only, raw, and prepared SQL statements.

License: Not specified•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Exposes an executeQuery tool that runs read-only SQL queries without authentication.
  • •Exposes an executeRawSql tool that runs raw SQL statements, requiring a password for non-read-only operations.
  • •Exposes an executePreparedSql tool that runs parameterized SQL operations using PreparedStatement.
  • •Supports MySQL, PostgreSQL and SQLite as database backends.

BEST FOR

  • •Querying a relational database from an MCP client using read-only SQL.
  • •Running parameterized SQL operations from an MCP client.

ABOUT RDB_MCP_SERVER

Spring AI MCP server for low-level SQL operations over JDBC is cataloged as an MCP server attributed to 31san. An experimental MCP server that connects to relational databases via JDBC and exposes tools for running read-only, raw, and prepared SQL statements. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Spring AI MCP server for low-level SQL operations over JDBC are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which databases does this MCP server support?

It supports MySQL, PostgreSQL and SQLite.

Does running non-read-only SQL require a password?

Yes; executeRawSql requires a password for non-read-only operations.

Upstream README

View this exact version on GitHub

README.md · bd917fe87692 · Fetched 2026-11-13 12:38:35 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

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.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Spring AI MCP server for low-level SQL operations over JDBC from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/rdb_mcp_server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage