- MySQL MCP Server
created by
kioyong14 hours ago

Information
MySQL MCP Server
Spring Boot server implementing Model Context Protocol (MCP) for MySQL database operations.
Features
- Execute SELECT queries
- List all tables in database
- Get table schema information
API
Tools
-
query
- Execute a SELECT SQL query and return results
- Input:
sql
(string) - Returns: List of query results (truncated after 4000 characters)
- Note: Only SELECT queries are allowed
-
listAllTablesName
- List all table names in the database
- No input required
- Returns: Comma-separated list of table names
-
getTableSchema
- Get schema information for a specific table
- Input:
tableName
(string) - Returns: Comma-separated list of column information including:
- Column name
- Data type
- Nullable constraint
- Default value
Build
Maven build:
mvn install
Usage with Claude Desktop or Cline
Add this to your mcp server config file:
{
"mysql-server": {
"command": "java",
"args": [
"-jar",
"{{ProjectDirectory}}\\target\\mcp-mysql-server-1.0.0.jar"
],
"env": {
"SPRING_DATASOURCE_URL": "jdbc:mysql://username:password@localhost:3306/database"
}
}
}
Example
License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
Recommended Servers

GithubMCP Server for the GitHub API, enabling file operations, repository management, search functionality, and more.

ChatSumQuery and Summarize your chat messages.
Most Popular Model Context Protocol (MCP) ServersA curated list of the most popular Model Context Protocol (MCP) servers based on usage data from Smithery.ai
mcp-deepresearchlocal mcp server perplexity
Nuanced MCP ServerA Model Context Protocol (MCP) server that provides call graph analysis capabilities to LLMs through the nuanced library

MongoDB LensFull featured MCP Server for MongoDB database analysis.

Mcp Server RagdocsAn MCP server that provides tools for retrieving and processing documentation through vector search, both locally or hosted. Enabling AI assistants to augment their responses with relevant documentation context.

Microsoft SQL Server MCP Server (MSSQL)MS SQL MCP Server
An easy-to-use bridge that lets AI assistants like Claude directly query and explore Microsoft SQL Server databases. No coding experience required!
What Does This Tool Do?
This tool allows AI assistants to:
Discover tables in your SQL Server database
View table structures (columns, data types, etc.)
Execute read-only SQL queries safely
Generate SQL queries from natural language requests
Perplexity Web Search MCP ServerA perplexity MCP server
Template for MCP Server