MySQL Custom MCP Server
Enables interaction with MySQL databases, allowing execution of SQL queries and listing of database tables. Supports customizable connection parameters including host, port, database, username, and password.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MySQL Custom MCP Servershow me all tables in the customers database"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MySQL Custom MCP Server
MCP server tùy chỉnh để thao tác với MySQL database từ Cline AI. Server này cho phép thực hiện các truy vấn SQL và tương tác với MySQL databases thông qua giao thức Model Context Protocol (MCP).
Tính năng
Thực thi các câu truy vấn SQL
Lấy danh sách các bảng trong database
Hỗ trợ connection string tùy chỉnh
Related MCP server: MCP MySQL App
Cài đặt
Clone repository
Cài đặt dependencies:
npm installBuild project:
npm run buildSử dụng
Chạy server
npm startHoặc chạy trong chế độ development:
npm run devCấu hình
Bạn có thể cấu hình kết nối MySQL thông qua biến môi trường:
MYSQL_HOST: Hostname của MySQL server (mặc định: "localhost")MYSQL_PORT: Port của MySQL server (mặc định: 3306)MYSQL_DB: Database mặc định (mặc định: "mysql")MYSQL_USER: Username (mặc định: "root")MYSQL_PASSWORD: Password (mặc định: "")
Hoặc cấu hình trong file cline_mcp_settings.json.
Tools
execute_query
Thực thi một câu truy vấn SQL.
Tham số:
query: Câu lệnh SQL cần thực thi (bắt buộc)params: Mảng các tham số cho câu query (tùy chọn)connectionString: Connection string tùy chỉnh (tùy chọn)
Ví dụ:
{
"query": "SELECT * FROM users WHERE id = ?",
"params": ["1"]
}list_tables
Lấy danh sách các bảng trong database.
Tham số:
database: Tên database (tùy chọn, mặc định lấy từ connection)connectionString: Connection string tùy chỉnh (tùy chọn)
Ví dụ:
{
"database": "my_database"
}Connection String
Server hỗ trợ connection string với định dạng:
Host=localhost;Port=3306;Database=my_database;User=root;Password=your_passwordCác key hỗ trợ:
Host, Server, DataSource: Địa chỉ máy chủ
Port: Cổng kết nối
Database, DB, Initial Catalog: Tên database
User, Username, UID: Tên đăng nhập
Password, PWD: Mật khẩu
Lưu ý
MCP server này cần được chạy như một process riêng biệt và Cline AI sẽ giao tiếp với nó thông qua giao thức MCP. Thông tin cấu hình cần được đặt trong file cline_mcp_settings.json của Cline.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -license-qualityAmaintenanceA Model Context Protocol (MCP) server implementation that provides database interaction and business intelligence capabilities through SQLite. This server enables running SQL queries, analyzing business data, and automatically generating business insight memos.Last updated89,163MIT
- Alicense-qualityDmaintenanceA Model Context Protocol (MCP) server that enables AI assistants to interact with MySQL databases by executing SQL queries and checking database connectivity.Last updatedMIT
- AlicenseBqualityDmaintenanceMCP server that allows Claude AI to interact directly with MySQL databases, enabling query execution and table information retrieval through natural language.Last updated1104MIT
- Alicense-qualityDmaintenanceAn MCP server that allows working with MySQL databases by providing tools for executing read-only SQL queries, getting table schemas, and listing database tables.Last updated5954MIT
Related MCP Connectors
GibsonAI MCP server: manage your databases with natural language
An MCP server that integrates with Discord to provide AI-powered features.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tonguyenducmanh/mcp-server-mysql'
If you have feedback or need assistance with the MCP directory API, please join our Discord server