skript-mcp
Enables interaction with a Minecraft server using Skript scripting language. Provides tools for checking and reloading Skript files, executing Minecraft commands, and retrieving server logs.
README
Skript MCP
This project exposes a small MCP server backed by a permanently running Paper server. Paper, Skript, and the installed addons are the parser: the Python code does not attempt to understand Skript syntax itself.
The default image contains this compatibility profile:
| Component | Version |
|---|---|
| Java | 21 |
| Paper | 1.21.4 build 232 |
| Skript | 2.14.3 |
| SkBee | 3.16.1 |
| skript-reflect | 2.6.3 |
| skript-gui | 1.4.0 |
Every downloaded jar is checked during the image build. Override all related
URLs and checksums together in .env to use another authoritative profile.
Never update only one addon without verifying the complete set.
Skript 2.14.3 is intentional for the 1.21.4 profile. SkBee 3.16.1 is the last
SkBee release for Minecraft 1.21.4, and newer Skript 2.15/2.16 releases collide
with its Adventure audience type registration. Newer Skript requires moving
the whole profile to a newer Minecraft and SkBee release.
Start Paper
Run the setup script. It checks Docker and uv, creates .env with a random
RCON password, installs dependencies, builds Paper, and verifies RCON:
./setup.sh
For manual setup, create a local environment file and replace the password with a long random value containing only letters, numbers, dots, underscores, or hyphens:
cp .env.example .env
docker compose build
docker compose up -d --wait
Set PUID and PGID in .env to the output of id -u and id -g. They
default to 1000 and let Paper read the host-created mode-0600 temporary files.
Paper logs are mounted at runtime/logs. Host scripts are mounted directly at
/server/plugins/Skript/scripts from scripts. World and plugin-generated data
remain disposable container state. Only RCON is published, and it is bound to
127.0.0.1:25575; the gameplay port is not published.
Check startup and plugin versions with:
docker compose logs paper
docker compose exec paper sh -c 'nc -z 127.0.0.1 25575'
Run the MCP server
Install and run it with uv:
uv sync
uv run --env-file .env skript-mcp
The MCP process reads these environment variables:
| Variable | Default |
|---|---|
RCON_PASSWORD |
Required |
RCON_HOST |
127.0.0.1 |
RCON_PORT |
25575 |
SKRIPT_SCRIPTS_DIR |
scripts |
MINECRAFT_LOG_PATH |
runtime/logs/latest.log |
RCON_TIMEOUT |
5 seconds |
RELOAD_TIMEOUT |
30 seconds |
MAX_SCRIPT_BYTES |
1048576 |
For OpenCode, add a local MCP entry and pass the same RCON password through the environment:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"skript": {
"type": "local",
"command": ["uv", "run", "--directory", "/absolute/path/to/skript-mcp", "--env-file", "/absolute/path/to/skript-mcp/.env", "skript-mcp"],
"enabled": true,
"environment": {}
}
}
}
Restart OpenCode after changing its configuration.
Tools
skript_check_file(path)validates an existing.skfile by path. Relative paths are resolved underSKRIPT_SCRIPTS_DIR; absolute paths are accepted when they point inside that directory. It reloads the complete script set so functions and other shared definitions from sibling scripts are available.skript_reload_file(path)reloads one existing path insideSKRIPT_SCRIPTS_DIRwithout reloading its siblings.minecraft_command(command)runs a privileged command over local RCON.minecraft_logs(lines=200)returns a bounded tail oflatest.log.skript_reset()removes only stale__mcp_check_<uuid>.skfiles.
Reload operations are serialized. Diagnostics are parsed primarily from the
RCON response because Skript deliberately redirects command diagnostics away
from normal server logging; bytes appended to latest.log after the operation
offset are captured and merged as a secondary source.
Safety
skript_check_file performs a real reload of every enabled script, not a
sandboxed parse. Source containing on load handlers or addon behavior can
modify the world, files, or external systems. Only check trusted scripts, and
treat minecraft_command and the RCON password as full administrator access.
Run unit tests with:
uv run pytest
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。