What databases does Mybatis Mapper2sql support?
It supports multiple database types through JDBC connections.
@handsomestWei
Basic information
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.
Add this server to your MCP-compatible client using the configuration below.
{
"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}"
}
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
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.
Postgres MCP Pro provides configurable read/write access and performance analysis for you and your AI agents.
A MCP (model context protocol) server that gives the LLM access to and knowledge about relational databases like SQLite, Postgresql, MySQL & MariaDB, Oracle, and MS-SQL.
MCP server for interacting with Neon Management API and databases
Comments