
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

An MCP server that lets compatible clients inspect schemas, retrieve metadata, and run read-only SQL queries against MySQL and PostgreSQL.
Read-only MCP server for MySQL and PostgreSQL databases is cataloged as an MCP server attributed to kaulvimal. An MCP server that lets compatible clients inspect schemas, retrieve metadata, and run read-only SQL queries against MySQL and PostgreSQL. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Read-only MCP server for MySQL and PostgreSQL databases are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
README.md · 8ee1480a932f · 采集于 2026-11-13 10:38:25 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
This project provides a read-only Model Context Protocol (MCP) server for interacting with MySQL & PostgreSQL databases. It allows clients compatible with MCP to inspect database schemas, retrieve metadata, and execute read-only SQL queries through a set of defined tools. The server is built with extensibility in mind and enforces read-only operations for safety.
The server exposes several tools via MCP for database interaction. All tools are designed for read-only operations.
get_table_columns: Retrieves column definitions for a specific table.get_schema: Fetches detailed schema information including tables, columns, indexes, and constraints, with varying detail levels.get_indexes: Retrieves index information for a specific table or all tables.get_constraints: Fetches constraint information (Primary Key, Foreign Key, Unique, Check) for a specific table or all tables.compare_schemas: Compares the structure (tables and columns) of two different database schemas.explain_schema: Generates a textual or structured (JSON) description of the database schema.detect_schema_changes: Returns a snapshot of the current schema. (Note: Does not compare against a specific past time).find_relationships: Discovers explicit foreign key relationships. Can optionally attempt to find implicit relationships based on naming conventions (use with caution).find_navigation_paths: Finds paths between two tables using explicit foreign key relationships (BFS algorithm).execute_query: Executes a given read-only SQL query (SELECT, SHOW, DESCRIBE, EXPLAIN).execute_batch: Runs multiple read-only SQL queries sequentially. Can stop on the first error or attempt all.prepare_statement: Prepares and executes a read-only SQL statement with parameters.explain_query: Executes EXPLAIN on a given SQL statement to show the query execution plan (TEXT or JSON format).get_query_history: Placeholder tool. Server-side query history is not currently implemented.visualize_schema: Generates schema representations (tables, columns, relationships) in JSON, DOT (Graphviz), or Mermaid syntax suitable for creating ER diagrams.get_performance_metrics: Retrieves selected global status variables from MySQL (e.g., Uptime, Threads, Queries). Does not provide query-specific history.Prerequisites:
Clone the Repository:
git clone https://github.com/kaulvimal/mysql-mcp
cd mysql-mcp
Install Dependencies:
npm install
Build the Project:
npm run build
This will create a build directory with the compiled code.
Using the server
Create a shell script (e.g., mysql-mcp.sh) in the project root or a convenient location:
#!/bin/bash
# Set environment variables (if not using .env or want to override)
export MYSQL_HOST=""
export MYSQL_USER=""
export MYSQL_PASSWORD=""
export MYSQL_PORT=""
export PG_HOST=""
export PG_USER=""
export PG_PASSWORD=""
export PG_PORT=""
export PG_DATABASE=""
node $(dirname "$0")/build/index.js
Make the script executable:
chmod +x mysql-mcp.sh
Integration Example (Cursor)
To integrate this server with an Cursor, you can configure the client to run the server's execution script:
{
"mcpServers": {
"mysql-mcp": {
"command": "/path/to/your/mysql-mcp.sh" // Replace with the actual path to your script
}
}
}
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Read-only MCP server for MySQL and PostgreSQL databases from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mysql-mcp-kaulvimal)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.