mcp-server-Sql
@cherry-SC
About mcp-server-Sql
这是一个基于Spring Boot的SQL服务应用,用于执行SQL查询并将结果写入文件。该服务作为Spring AI MCP(Model, Chat, Prompt)框架的一部分,提供了SQL查询和更新操作的功能。
Config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is mcp-server-Sql?
mcp-server-Sql is a Spring Boot application that executes SQL queries and updates, writing results to CSV or text files, and integrates with the Spring AI MCP (Model, Chat, Prompt) framework for use as an AI tool.
How to use mcp-server-Sql?
Configure your MySQL database connection in application.yml, build the project with mvn clean package, and run the JAR with java -jar target/mcp-server-Sql-1.0-SNAPSHOT.jar. Send JSON payloads with sql and outputPath to execute queries or updates.
Key features of mcp-server-Sql
- Execute SQL queries and save results as CSV files
- Execute UPDATE, INSERT, DELETE and return affected row count
- Custom database connection via configuration
- Integrates with Spring AI MCP framework as a tool
Use cases of mcp-server-Sql
- Query a database and export results to a CSV file
- Perform batch updates and log affected rows to a text file
- Provide SQL operations as a tool for AI agents within MCP
FAQ from mcp-server-Sql
What are the runtime requirements?
Java 17, Spring Boot 3.4.3, and a MySQL 8.0 database are required.
How do I configure the database connection?
Set spring.datasource.url, username, and password in application.yml.
What format are query results saved in?
Query results are saved as CSV files; update results are saved as text files with the affected row count.
How do I execute a specific SQL command?
Send a JSON payload with the sql key containing your statement and an outputPath key for the output file location.
Is authentication or transport security handled?
The README does not mention authentication or transport security—only database credentials in configuration.
Frequently asked questions
What are the runtime requirements?
Java 17, Spring Boot 3.4.3, and a MySQL 8.0 database are required.
How do I configure the database connection?
Set `spring.datasource.url`, `username`, and `password` in `application.yml`.
What format are query results saved in?
Query results are saved as CSV files; update results are saved as text files with the affected row count.
How do I execute a specific SQL command?
Send a JSON payload with the `sql` key containing your statement and an `outputPath` key for the output file location.
Is authentication or transport security handled?
The README does not mention authentication or transport security—only database credentials in configuration.
Basic information
More Databases MCP servers
Elasticsearch/OpenSearch MCP Server
cr7258A Model Context Protocol (MCP) server implementation that provides Elasticsearch and OpenSearch interaction.
MCP Server for MySQL based on NodeJS
benborlaA Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.
Dbhub
bytebaseZero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite.
Redis MCP Server
redisThe official Redis MCP Server is a natural language interface designed for agentic applications to manage and search data in Redis efficiently

nuzur
nuzur is a model-first database platform for MySQL and PostgreSQL. The MCP server lets any AI assistant or agent (Claude, Cursor, Gemini, or anything else that speaks MCP) design your schema, query your data, generate mi
Comments