
f4ww4z/mcp-mysql-server
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
f4ww4z/mcp-mysql-server는 [[T0]에서 임포트된 MCP 서버 후보입니다.
개요
f4ww4z/mcp-mysql-server는 [[T0]에서 임포트된 MCP 서버 후보입니다.
개요(AI 번역)
MySQL 데이터베이스 작업을 제공하는 모델 컨텍스트 프로토콜 서버입니다. 이 서버는 AI 모델이 표준화된 인터페이스를 통해 MySQL 데이터베이스와 상호작용할 수 있도록 합니다.
설치
Smithery를 통해 설치 중
Smithery를 통해 Claude Desktop용 MySQL Server를 자동으로 설치하려면:
수동 설치
구성
서버는 MCP 설정 파일에 다음 환경 변수를 설정해야 합니다:
권장 사용 방법
코덱스
맥
在 ~/.codex/config.toml
창문
在 %USERPROFILE%\.codex\config.toml
평가 진행 중
evals 패키지는 mcp 클라이언트를 불러와 index.ts 파일을 실행하므로 테스트 사이에 재빌드할 필요가 없습니다. npx 명령어를 접두사로 불러오면 환경 변수를 불러올 수 있습니다. 전체 문서는 여기에서 확인할 수 있습니다.
사용 가능한 도구
1. connect_db
제공된 자격 증명을 사용하여 MySQL 데이터베이스에 연결을 설정하세요.
2. 쿼리
선택적으로 준비된 문장 매개변수를 사용하여 SELECT 쿼리를 실행하세요.
3. 실행
선택적으로 준비된 문장 매개변수를 사용하여 INSERT, UPDATE, 또는 DELETE 쿼리를 실행하세요.
4. list_tables
연결된 데이터베이스의 모든 테이블을 나열하세요.
5. describe_table
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
@f4ww4z/mcp-mysql-server
A Model Context Protocol server that provides MySQL database operations. This server enables AI models to interact with MySQL databases through a standardized interface.
Installation
Installing via Smithery
To install MySQL Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @f4ww4z/mcp-mysql-server --client claude
Manual Installation
npx @f4ww4z/mcp-mysql-server
Configuration
The server requires the following environment variables to be set in your MCP settings configuration file:
recommended use
{
"mcpServers": {
"mysql": {
"command": "npx",
"args": ["-y", "@f4ww4z/mcp-mysql-server", "mysql://user:password@localhost:port/database"],
}
}
}
{
"mcpServers": {
"mysql": {
"command": "npx",
"args": ["-y", "@f4ww4z/mcp-mysql-server"],
"env": {
"MYSQL_HOST": "your_host",
"MYSQL_USER": "your_user",
"MYSQL_PASSWORD": "your_password",
"MYSQL_DATABASE": "your_database"
}
}
}
}
codex
mac
在 ~/.codex/config.toml
[mcp_servers.mcp-mysql-server]
command = "npx"
args = [
"-y",
"@f4ww4z/mcp-mysql-server",
"mysql://user:[email protected]:3306/database"
]
windows
在 %USERPROFILE%\.codex\config.toml
[mcp_servers.mcp-mysql-server]
command = "npx"
args = [
"-y",
"@f4ww4z/mcp-mysql-server",
"mysql://user:[email protected]:3306/database"
]
Running evals
The evals package loads an mcp client that then runs the index.ts file, so there is no need to rebuild between tests. You can load environment variables by prefixing the npx command. Full documentation can be found here.
OPENAI_API_KEY=your-key npx mcp-eval src/evals/evals.ts src/index.ts
Available Tools
1. connect_db
Establish connection to MySQL database using provided credentials.
use_mcp_tool({
server_name: "mysql",
tool_name: "connect_db",
arguments: {
host: "localhost",
user: "your_user",
password: "your_password",
database: "your_database"
}
});
2. query
Execute SELECT queries with optional prepared statement parameters.
use_mcp_tool({
server_name: "mysql",
tool_name: "query",
arguments: {
sql: "SELECT * FROM users WHERE id = ?",
params: [1]
}
});
3. execute
설치
npx -y @f4ww4z/mcp-mysql-server mysql://user:password@localhost:port/database설정
{
"mcpServers": {
"mysql": {
"command": "npx",
"args": ["-y", "@f4ww4z/mcp-mysql-server", "mysql://user:password@localhost:port/database"],
}
}
}