What databases does Mybatis Mapper2sql support?
It supports multiple database types through JDBC connections.
@handsomestWei
基本信息
Automatically extract SQL statements from MyBatis mapper XML files. Support automatic mocking of SQL parameters, and support automatic connection to the database to execute SQL tests and output results.
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mapper2sql": {
"command": "java",
"args": [
"-DdbType=mysql",
"-DjdbcDriver=com.mysql.cj.jdbc.Driver",
"-DjdbcDriverJar=/path/to/mysql-connector-java-8.0.33.jar",
"-DjdbcUrl=jdbc:mysql://localhost:3306/testdb",
"-DuserName=root",
"-Dpassword=your_password_here",
"-jar",
"mapper2sql-mcp-server-1.0.0.jar"
],
"env": {
"JAVA_HOME": "/path/to/jdk17",
"PATH": "/path/to/jdk17/bin;${PATH}"
}
}
}
}工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
A Model Context Protocol (MCP) service that extracts SQL statements from MyBatis mapper XML files, optionally mocks parameters using resultMap and JDBC type inference, and tests SQL against a database. It is aimed at developers who need deterministic SQL analysis and AI collaboration.
—
It supports multiple database types through JDBC connections.
The server expects a file path to a mapper XML file or a directory containing such files.
Three tools: `parse_mapper` (basic extraction), `parse_mapper_and_mock` (extraction with parameter mocking), and `parse_mapper_and_run_test` (extraction, mocking, and execution).
It automatically generates SQL parameters based on resultMap definitions and JDBC type inference.
Connect ClickHouse to your AI assistants.

Model Context Protocol Servers

Oracle MCP server with no run-sql tool: It generates tools for each of the PL/SQL procedures, tables and approved SQL you choose. The server doesn't expose a SQL prompt, and can't reveal how it's connected to Oracle.
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
评论