MCPyLib Skills

Agent Skills that teach AI coding agents (Claude Code,
Claude.ai, Codex, Cursor and others) to control a Minecraft server from Python with
MCPyLib.
繁體中文說明
MCPyLib is a Python library (pip install mcpylib or uv add mcpylib) plus a
Spigot/Paper plugin. The plugin opens a TCP socket (port 65535 by default) and runs
token-authenticated JSON commands on the server. These skills give an agent the exact
API (checked against the library's source), safe working habits, and tested scripts,
so it writes code that works the first time and doesn't wreck the world.
Skills
| Skill | Use it for |
|---|
mcpylib | The core: checking the setup, connecting, coordinates and build height, block ids, states and NBT, choosing between setblock, fill, edit, clone and getblocks, performance, errors and safety rules. Includes a complete API reference for all 72 methods, the raw JSON protocol for other languages, and troubleshooting. |
mcpylib-building | Procedural building in pure Python (no numpy): spheres, domes, cylinders, cones, pyramids, tori, houses, towers, pixel art from images, and noise or heightmap terrain. Every script does a dry run first, refuses to overwrite blocks unless allowed, and writes an undo file. |
mcpylib-minigames | Games and live events: polling loops with a call budget, join and leave detection, scoreboards, teams, boss bars, titles, sounds, particles, mobs, and crash-safe cleanup. Includes King of the Hill and a mob arena. |
mcpylib-mcp | Installing and using the mcpylib-mcp MCP server with Claude Code, Claude Desktop, Cursor, VS Code and Codex, and deciding when MCP tools beat a Python script. |
Each skill is a folder with a SKILL.md (YAML frontmatter with name and
description, then instructions) plus references/ and scripts/ that the agent
reads or runs only when needed.
Requirements
Install
Claude Code: plugin marketplace (recommended)
/plugin marketplace add treeleaves30760/MCPyLib-skills
/plugin install mcpylib@mcpylib-skills
This installs all four skills as the mcpylib plugin. Claude loads a skill when
your request matches its description; you can also call one directly, for example
/mcpylib:mcpylib-building. Update later with /plugin marketplace update mcpylib-skills.
Claude Code: copy the folders
git clone https://github.com/treeleaves30760/MCPyLib-skills
mkdir -p ~/.claude/skills
cp -r MCPyLib-skills/skills/* ~/.claude/skills/ # personal: all projects
# or, for one project: cp -r MCPyLib-skills/skills/* .claude/skills/
On Windows PowerShell:
Copy-Item -Recurse MCPyLib-skills\skills\* "$HOME\.claude\skills\". Restart Claude
Code, then check that the skills are listed (ask "what skills do you have?").
Claude.ai
- Build one zip per skill (each zip holds the skill folder at its root):
python tools/package_skills.py # writes dist/mcpylib.zip, dist/mcpylib-building.zip, ...
- Turn on Code execution and file creation in Settings > Capabilities.
- Open Customize > Skills, click +, choose Create skill > Upload a skill,
and upload
mcpylib.zip. Repeat for the other zips you want; the other three build
on mcpylib.
Claude's sandbox on Claude.ai usually can't reach your Minecraft server, and network
access depends on your plan and settings. There the skills are most useful for
writing and reviewing scripts that you then run on your own computer.
Codex
Codex reads skills from ~/.agents/skills/ (all repositories) and .agents/skills/
(one repository):
mkdir -p ~/.agents/skills
cp -r MCPyLib-skills/skills/* ~/.agents/skills/
Start Codex and type $mcpylib (or use /skills) to call a skill explicitly; Codex
also picks one by itself when the task matches its description.