mysqldb-mcp-server
mysqldb-mcp-server MCP 서버
MySQL 데이터베이스 MCP 서버 프로젝트.
설치
uv 사용하여 패키지를 설치할 수 있습니다:
지엑스피1
또는 pip 사용하면:
pip install mysqldb-mcp-serverRelated MCP server: MySQL Custom MCP Server
구성 요소
도구
서버는 두 가지 도구를 제공합니다.
connect_database: 특정 MySQL 데이터베이스에 연결합니다.database매개변수: 연결할 데이터베이스의 이름(문자열)연결이 성공하면 확인 메시지를 반환합니다.
execute_query: MySQL 쿼리를 실행합니다.query매개변수: 실행할 SQL 쿼리(문자열)JSON 형식으로 쿼리 결과를 반환합니다.
여러 개의 쿼리를 세미콜론으로 구분하여 보낼 수 있습니다.
구성
서버는 다음과 같은 환경 변수를 사용합니다.
MYSQL_HOST: MySQL 서버 주소(기본값: "localhost")MYSQL_USER: MySQL 사용자 이름(기본값: "root")MYSQL_PASSWORD: MySQL 비밀번호(기본값: "")MYSQL_DATABASE: 초기 데이터베이스(선택 사항)MYSQL_READONLY: 읽기 전용 모드(활성화하려면 1/true로 설정, 기본값: false)
빠른 시작
설치
클로드 데스크탑
MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
윈도우: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"mysqldb-mcp-server": {
"command": "uv",
"args": [
"--directory",
"/Users/burakdirin/Projects/mysqldb-mcp-server",
"run",
"mysqldb-mcp-server"
],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_USER": "root",
"MYSQL_PASSWORD": "password",
"MYSQL_DATABASE": "[optional]",
"MYSQL_READONLY": "true"
}
}
}
}{
"mcpServers": {
"mysqldb-mcp-server": {
"command": "uvx",
"args": [
"mysqldb-mcp-server"
],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_USER": "root",
"MYSQL_PASSWORD": "password",
"MYSQL_DATABASE": "[optional]",
"MYSQL_READONLY": "true"
}
}
}
}Smithery를 통해 설치
Smithery를 통해 Claude Desktop용 MySQL 데이터베이스 통합 서버를 자동으로 설치하려면:
npx -y @smithery/cli install @burakdirin/mysqldb-mcp-server --client claude개발
건축 및 출판
배포를 위해 패키지를 준비하려면:
종속성 동기화 및 잠금 파일 업데이트:
uv sync패키지 배포 빌드:
uv build이렇게 하면 dist/ 디렉토리에 소스와 휠 배포판이 생성됩니다.
PyPI에 게시:
uv publish참고: 환경 변수나 명령 플래그를 통해 PyPI 자격 증명을 설정해야 합니다.
토큰:
--token또는UV_PUBLISH_TOKEN또는 사용자 이름/비밀번호:
--username/UV_PUBLISH_USERNAME및--password/UV_PUBLISH_PASSWORD
디버깅
MCP 서버는 stdio를 통해 실행되므로 디버깅이 어려울 수 있습니다. 최상의 디버깅 환경을 위해서는 MCP Inspector 사용을 강력히 권장합니다.
다음 명령을 사용하여 npm 통해 MCP Inspector를 시작할 수 있습니다.
npx @modelcontextprotocol/inspector uv --directory /Users/burakdirin/Projects/mysqldb-mcp-server run mysqldb-mcp-serverInspector를 실행하면 브라우저에서 접근하여 디버깅을 시작할 수 있는 URL이 표시됩니다.
Maintenance
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
- AlicenseBqualityDmaintenanceMCP server that allows Claude AI to interact directly with MySQL databases, enabling query execution and table information retrieval through natural language.104MIT
- FlicenseNot gradedqualityNot gradedmaintenanceAn MCP server that enables interaction with MySQL databases through the Model Context Protocol, allowing execution of SQL queries and database table listing operations from Cline AI.
- AlicenseNot gradedqualityCmaintenanceMySQL MCP Server enables Claude Desktop and Claude Code to execute SQL queries, explore databases, Webview to add or enable Databases, Connections, and interact with your MySQL data - all through a secure, permission-controlled interface.381MIT
- AlicenseAqualityBmaintenanceMCP server for Claude that connects to MySQL, MariaDB, and SQLite databases. Query your databases using natural language.3MIT
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
GibsonAI MCP server: manage your databases with natural language
Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.
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/burakdirin/mysqldb-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server