MCP Stdio Server (MySQL/MariaDB)
Description
# MCP Stdio Server (MySQL/MariaDB) 이 프로젝트는 Cursor IDE와 연동 가능한 Model Context Protocol (MCP) Stdio 서버입니다. MySQL 또는 MariaDB 데이터베이스의 테이블 구조와 관계를 반환합니다. ## ✅ 기능 - MCP 공식 Python SDK 기반 - `stdio` 모드로 Cursor IDE 연동 - `.env` 파일 기반 DB 설정 - 테이블 목록, 컬럼, 외래키 관계 반환 - 데이터 조회 및 분석 기능 - 쿼리 실행 및…
About
# MCP Stdio Server (MySQL/MariaDB) 이 프로젝트는 Cursor IDE와 연동 가능한 Model Context Protocol (MCP) Stdio 서버입니다. MySQL 또는 MariaDB 데이터베이스의 테이블 구조와 관계를 반환합니다. ## ✅ 기능 - MCP 공식 Python SDK 기반 - `stdio` 모드로 Cursor IDE 연동 - `.env` 파일 기반 DB 설정 - 테이블 목록, 컬럼, 외래키 관계 반환 - 데이터 조회 및 분석 기능 - 쿼리 실행 및 최적화 기능 - 데이터베이스 모니터링 기능 - 성능 분석 및 최적화 제안…
Details
- Author
- zerogon1203
- Downloads
- 155
- Categories
- Database
Jump to
- Built on the official MCP Python SDK
- Stdio transport for Cursor IDE integration
- Configurable via .env file or JSON env values
- Returns schema, columns, and foreign key relationships
- Provides read‑only query execution and EXPLAIN plans
- Offers table statistics, column stats, and sample data
- Includes database monitoring and performance analysis
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
MCP Stdio Server (MySQL/MariaDB)Command (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Clone the repository, create a Python virtual environment, install dependencies, and set database credentials in a .env file (DB_HOST, DB_USER, DB_PASSWORD, DB_NAME). Run the server by adding a stdio MCP server in Cursor IDE with command python main.py; optionally pass environment variables per project via JSON configuration.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mcp stdio server (mysql/mariadb)": {
"db-mcp-server-zerogon1203": {
"command": "python",
"args": [
"-m",
"venv",
"venv"
]
}
}
}
}
McpServers
{
"db-mcp-server-zerogon1203": {
"command": "python",
"args": [
"-m",
"venv",
"venv"
]
}
}
MCP Stdio Server (MySQL/MariaDB)
이 프로젝트는 Cursor IDE와 연동 가능한 Model Context Protocol (MCP) Stdio 서버입니다. MySQL 또는 MariaDB 데이터베이스의 테이블 구조와 관계를 반환합니다.✅ 기능
- MCP 공식 Python SDK 기반 -stdio 모드로 Cursor IDE 연동
- .env 파일 기반 DB 설정
- 테이블 목록, 컬럼, 외래키 관계 반환
- 데이터 조회 및 분석 기능
- 쿼리 실행 및 최적화 기능
- 데이터베이스 모니터링 기능
- 성능 분석 및 최적화 제안
📦 설치
git clone <this-repo-url>
cd db-mcp-server
python -m venv venv
source venv/bin/activate # 또는 venv\Scripts\activate (Windows)
pip install -r requirements.txt
⚙️ .env 설정
루트에.env 파일을 아래와 같이 작성하세요:
```envSign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



