基于 Spring AI 的 MCP 数据库 SQL 服务器

基于 Spring AI 的 MCP 数据库 SQL 服务器

mcp-mysql-server-jamessmith888•byjamessmith888

一个基于 Spring AI 实现的 MCP 服务器,可执行任意 SQL,支持多种数据库和数据源,通过 SSE 传输模式供 MCP 客户端连接。

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

WHAT IT DOES

  • •支持 MySQL、PostgreSQL、Oracle、SQL Server、H2、SQLite、MariaDB、ClickHouse 等多种数据库。
  • •可配置和管理多个数据库数据源,并可标记默认数据源。
  • •通过 SSE 传输模式支持多客户端连接,并可添加 Groovy 脚本扩展功能。
  • •提供 SQL 安全控制以防止 AI 模型执行危险 SQL 操作。

BEST FOR

  • •团队开发场景,需要多个客户端通过 SSE 连接同一数据库服务。
  • •让 AI 模型跨多种数据库执行 SQL 查询的场景。
  • •需要同时管理多个数据库数据源并通过 MCP 访问的场景。

ABOUT MCP-MYSQL-SERVER-JAMESSMITH888

基于 Spring AI 的 MCP 数据库 SQL 服务器 is cataloged as an MCP server attributed to jamessmith888. 一个基于 Spring AI 实现的 MCP 服务器,可执行任意 SQL,支持多种数据库和数据源,通过 SSE 传输模式供 MCP 客户端连接。 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 数据库 SQL 服务器 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

支持哪些数据库?

支持 MySQL、PostgreSQL、Oracle、SQL Server、H2、SQLite、MariaDB、ClickHouse 等。

是否支持多个数据库数据源?

支持配置和管理多个数据库数据源,并可在配置中标记默认数据源。

是否提供 SQL 安全控制?

提供 SQL 安全控制,防止 AI 模型执行危险 SQL 操作。

Upstream README

View this exact version on GitHub

README.md · 100bb852e8d0 · Fetched 2026-11-13 09:53:20 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.

MCP DB Server

一个基于 Spring AI 的MCP,可执行任意 SQL,支持多种数据库。

如果您更喜欢使用STDIO模式,请查看 mcp-mysql-server

中文文档 | English Documentation

快速上手(SSE模式)

1. 启动服务

在项目根目录下执行:

./mvnw spring-boot:run

2. MCP 客户端配置

在AI客户端配置文件中添加(部分客户端需要手动选择SSE传输类型):

{
  "mcpServers": {
    "mcp-db-server": {
      "url": "http://localhost:6789/sse"
    }
  }
}

3. 数据源配置

修改 src/main/resources/datasource.yml 文件:

datasource:
  datasources:
    your_db1_name:
      url: jdbc:mysql://localhost:3306/db1
      username: root
      password: password
      default: true  # 标记为默认数据源

功能特点

  • 多数据库支持 - 支持 MySQL、PostgreSQL、Oracle、SQL Server、H2、SQLite、MariaDB、ClickHouse 等
  • 多数据源支持 - 配置和管理多个数据库数据源
  • SSE传输模式 - 支持多客户端连接。更适用团队开发场景
  • 扩展功能 - 通过 Groovy 脚本扩展功能
  • SQL 安全控制 - 防止 AI 模型执行危险 SQL 操作

详细文档

文档描述
扩展功能文档Groovy 脚本扩展的详细配置和开发指南
数据源配置文档数据源的详细配置、多环境管理和最佳实践
SQL 安全控制文档SQL 安全策略的配置和管理

环境要求

  • JDK 21+
  • Maven 3.6+

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 数据库 SQL 服务器 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/mcp-mysql-server-jamessmith888)

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