Mcp For Minecraft Server — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Mcp For Minecraft Server (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
<div align="center">
🎮 AI-Powered Minecraft Server Management via Model Context Protocol
pip install minecraft-server-mcp📦 PyPI Package • 📖 Documentation • 🐛 Issues
</div>
<a name="english"></a>
Minecraft Server MCP is a Model Context Protocol (MCP) server implementation that enables AI assistants to interact with and manage Minecraft servers through a standardized interface. This project bridges AI capabilities with Minecraft server administration, making it easy to:
The project consists of two main components:
src/smc/) - Implements the Model Context Protocol, providing a standardized interface for AI assistantsplugin/) - Runs inside your Minecraft server, exposing an HTTP API for server management#### Prerequisites
#### Python MCP Server Setup
We recommend using uv for Python dependency management.
git clone https://github.com/Ver-zhzh/MCP-For-Minecraft-Server.git
cd MCP-For-Minecraft-Server# Using uv (recommended)
uv sync
# Or using pip
pip install -e .# Using uv
uv run python -m smc
# Or using pip
python -m smc#### Minecraft Plugin Setup
cd plugin
mvn clean packageCopy the generated JAR file to your Minecraft server's plugins folder:
cp target/SMC-Plugin.jar /path/to/your/minecraft/server/plugins/Edit plugins/SMC-Plugin/config.yml in your Minecraft server directory:
# HTTP API Configuration
http:
port: 8080
host: "0.0.0.0"
# Security
security:
api_key: "your-secure-api-key-here"
# Logging
logging:
level: INFO#### 1. Start the Minecraft Server
Ensure your Minecraft server is running with the SMC Plugin installed.
#### 2. Configure MCP Server
Set environment variables or create a configuration file:
export MINECRAFT_LOG_LEVEL=INFO
export MINECRAFT_LOG_FILE=smc-server.log#### 3. Run the MCP Server
# Using uv
uv run python -m smc
# Or using pip
python -m smc#### 4. Connect to Your Minecraft Server
Use the MCP client to connect:
{
"tool": "connect",
"arguments": {
"url": "http://localhost:8080",
"api_key": "your-secure-api-key-here",
"timeout": 10
}
}#### 5. Query Server Status
{
"tool": "status",
"arguments": {
"api_key": "your-secure-api-key-here"
}
}#### Environment Variables
| Variable | Description | Default |
|---|---|---|
MINECRAFT_LOG_LEVEL | Logging level (DEBUG, INFO, WARNING, ERROR) | ERROR |
MINECRAFT_LOG_FILE | Path to log file | smc-server.log |
#### Plugin Configuration
Located at plugins/SMC-Plugin/config.yml:
http:
port: 8080 # HTTP API port
host: "0.0.0.0" # Bind address
security:
api_key: "your-key" # API authentication key
logging:
level: INFO # Plugin log level
max_entries: 1000 # Maximum log entries to keep#### Connection Management
Connect to multiple Minecraft servers using unique API keys:
#### Server Monitoring
Get real-time server information:
#### Player Management
Track and manage players:
#### Log Analysis
Access comprehensive server logs:
#### Command Execution
Execute server commands programmatically:
| Tool Name | Description | Required Parameters |
|---|---|---|
connect | Connect to a Minecraft server | url, api_key |
disconnect | Disconnect from a server | api_key |
list_servers | List all connected servers | None |
status | Get server status and information | api_key |
plugins | Get installed plugins list | api_key |
send_command | Execute server commands | api_key, commands |
get_logs | Retrieve server logs | api_key |
player_list | Get online players | api_key |
get_errors | Get error logs | api_key |
get_warnings | Get warning logs | api_key |
get_commands | List server commands | api_key |
#### Running Tests
# Python tests
uv run pytest
# Java plugin tests
cd plugin
mvn test#### Project Structure
minecraft-server-mcp/
├── src/smc/ # Python MCP server
│ ├── __init__.py
│ ├── server.py # Main MCP server
│ ├── client.py # HTTP client for plugin API
│ ├── tools.py # MCP tool implementations
│ ├── config.py # Configuration management
│ └── connection_manager.py # Multi-server connection manager
├── plugin/ # Java Minecraft plugin
│ ├── src/main/java/
│ │ └── com/smc/ # Plugin source code
│ ├── src/main/resources/
│ │ └── plugin.yml # Plugin metadata
│ └── pom.xml # Maven configuration
├── .python-version # Python version (3.12)
├── uv.lock # Dependency lock file
└── README.md # This fileContributions are welcome! Please follow these guidelines:
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
<a name="中文"></a>
<div align="center">
pip install minecraft-server-mcp</div>
Minecraft Server MCP 是一个 Model Context Protocol (MCP) 服务器实现,使 AI 助手能够通过标准化接口与 Minecraft 服务器进行交互和管理。该项目将 AI 能力与 Minecraft 服务器管理相结合,轻松实现:
项目由两个主要组件组成:
src/smc/) - 实现 Model Context Protocol,为 AI 助手提供标准化接口plugin/) - 在 Minecraft 服务器中运行,提供 HTTP API 用于服务器管理#### 前置要求
#### Python MCP 服务器设置
我们推荐使用 uv 进行 Python 依赖管理。
git clone https://github.com/Ver-zhzh/MCP-For-Minecraft-Server.git
cd MCP-For-Minecraft-Server# 使用 uv(推荐)
uv sync
# 或使用 pip
pip install -e .# 使用 uv
uv run python -m smc
# 或使用 pip
python -m smc#### Minecraft 插件设置
cd plugin
mvn clean package将生成的 JAR 文件复制到 Minecraft 服务器的 plugins 文件夹:
cp target/SMC-Plugin.jar /path/to/your/minecraft/server/plugins/在 Minecraft 服务器目录中编辑 plugins/SMC-Plugin/config.yml:
# HTTP API 配置
http:
port: 8080
host: "0.0.0.0"
# 安全设置
security:
api_key: "your-secure-api-key-here"
# 日志设置
logging:
level: INFO#### 1. 启动 Minecraft 服务器
确保您的 Minecraft 服务器正在运行且已安装 SMC 插件。
#### 2. 配置 MCP 服务器
设置环境变量或创建配置文件:
export MINECRAFT_LOG_LEVEL=INFO
export MINECRAFT_LOG_FILE=smc-server.log#### 3. 运行 MCP 服务器
# 使用 uv
uv run python -m smc
# 或使用 pip
python -m smc#### 4. 连接到您的 Minecraft 服务器
使用 MCP 客户端连接:
{
"tool": "connect",
"arguments": {
"url": "http://localhost:8080",
"api_key": "your-secure-api-key-here",
"timeout": 10
}
}#### 5. 查询服务器状态
{
"tool": "status",
"arguments": {
"api_key": "your-secure-api-key-here"
}
}#### 环境变量
| 变量 | 描述 | 默认值 |
|---|---|---|
MINECRAFT_LOG_LEVEL | 日志级别 (DEBUG, INFO, WARNING, ERROR) | ERROR |
MINECRAFT_LOG_FILE | 日志文件路径 | smc-server.log |
#### 插件配置
位于 plugins/SMC-Plugin/config.yml:
http:
port: 8080 # HTTP API 端口
host: "0.0.0.0" # 绑定地址
security:
api_key: "your-key" # API 认证密钥
logging:
level: INFO # 插件日志级别
max_entries: 1000 # 保留的最大日志条目数#### 连接管理
使用唯一的 API 密钥连接到多个 Minecraft 服务器:
#### 服务器监控
获取实时服务器信息:
#### 玩家管理
跟踪和管理玩家:
#### 日志分析
访问全面的服务器日志:
#### 命令执行
程序化执行服务器命令:
| 工具名称 | 描述 | 必需参数 |
|---|---|---|
connect | 连接到 Minecraft 服务器 | url, api_key |
disconnect | 从服务器断开连接 | api_key |
list_servers | 列出所有已连接的服务器 | 无 |
status | 获取服务器状态和信息 | api_key |
plugins | 获取已安装插件列表 | api_key |
send_command | 执行服务器命令 | api_key, commands |
get_logs | 检索服务器日志 | api_key |
player_list | 获取在线玩家 | api_key |
get_errors | 获取错误日志 | api_key |
get_warnings | 获取警告日志 | api_key |
get_commands | 列出服务器命令 | api_key |
#### 运行测试
# Python 测试
uv run pytest
# Java 插件测试
cd plugin
mvn test#### 项目结构
minecraft-server-mcp/
├── src/smc/ # Python MCP 服务器
│ ├── __init__.py
│ ├── server.py # 主 MCP 服务器
│ ├── client.py # 插件 API 的 HTTP 客户端
│ ├── tools.py # MCP 工具实现
│ ├── config.py # 配置管理
│ └── connection_manager.py # 多服务器连接管理器
├── plugin/ # Java Minecraft 插件
│ ├── src/main/java/
│ │ └── com/smc/ # 插件源代码
│ ├── src/main/resources/
│ │ └── plugin.yml # 插件元数据
│ └── pom.xml # Maven 配置
├── .python-version # Python 版本 (3.12)
├── uv.lock # 依赖锁定文件
└── README.md # 本文件欢迎贡献!请遵循以下指南:
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)本项目采用 MIT 许可证 - 详情请参见 LICENSE 文件。
If you find this project helpful, please consider giving it a star! ⭐
如果您觉得这个项目有帮助,请考虑给它一个星标!⭐
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.