ShardingSphere-MCP is the MCP Server for Apache ShardingSphere. It can run independently. MCP is an open protocol for connecting AI applications to external data sources and tools. For protocol details, see the official MCP documentation.
AI application developers can integrate ShardingSphere-MCP as a controlled database access capability. After integration, users can inspect database structure, run controlled queries, and plan reviewable ShardingSphere rule changes through natural language.
Before use, prepare a reachable database and configure its connection information in runtimeDatabases. If data encryption, data masking, or other rule change capabilities are required, the connection target should be a ShardingSphere-Proxy logical database.
ShardingSphere-MCP is designed for MCP-capable AI applications, IDE extensions, and agent platforms. After MCP integration, users can describe database tasks in natural language in the AI application.
Common task examples:
<logic-database>.<table-name>.<table-name> already has encryption or masking rules.<table-name>.<column-name> and preview it without execution.Tasks with side effects should create or preview a plan first, then run only after the user reviews the changes.
runtimeDatabases, plugin directories, and launch parameters.For custom integration or protocol debugging, see the Custom Integration Appendix.
