NetEase ModSDK MCP Server
Allows for intelligent searching and retrieval of technical information from official ModSDK documentation stored in Markdown format, covering API interfaces and event systems.
Provides code generation and review capabilities for Minecraft modding, specifically targeting Python 2.7 compatibility and NetEase ModSDK performance best practices.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@NetEase ModSDK MCP Server帮我生成一个符合网易规范的自定义剑,包含 JSON 配置和 Python 代码"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🎮 NetEase ModSDK MCP Server
Model Context Protocol Server for Minecraft China (NetEase) ModSDK Development
Provides document retrieval, code generation, and code review capabilities for AI programming assistants (Claude Desktop, Cursor, etc.), significantly improving NetEase ModSDK development efficiency.
✨ Core Capabilities
Capability | Description |
🔍 Intelligent Doc Retrieval | Fuzzy search, camelCase tokenization, and Chinese search, covering API interfaces & event documentation |
📝 Code Generation | Automatically generates Mod projects, Server/Client Systems, and custom items/blocks/entities compliant with NetEase standards |
🔧 Tool & Weapon Generation | One-click generation of JSON for swords, pickaxes, axes, shovels, hoes, bows, armor, food, and throwable items |
📋 Recipes & Loot Tables | Generates shaped/shapeless recipes, furnace recipes, loot tables, and spawn rules |
🔬 Code Review | Detects Python 2.7 compatibility issues, client/server cross-contamination, and performance anti-patterns |
📚 Component Encyclopedia | Queries usage and configuration for items, blocks, entities, and NetEase-specific components |
⚡ Best Practices | Built-in official performance optimization standards, automatically applied to generated code |
Related MCP server: MCP SpecNavigator
🚀 Quick Start
Prerequisites
Python ≥ 3.10
pip (Python package manager)
1. Install Dependencies
cd "D:/ModSDK MCP Server"
pip install -r requirements.txt2. Configure Your AI Client
General Note: All clients should use the absolute path to
start_mcp.pyfor startup. Nocwdparameter is required, ensuring maximum compatibility. Please replaceD:/ModSDK MCP Serverin the examples below with your actual installation path.
Edit the configuration file:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"modsdk-mcp-server": {
"command": "python",
"args": ["D:/ModSDK MCP Server/start_mcp.py"]
}
}
}Save and restart Claude Desktop.
Claude Code does not support the cwd parameter; use the absolute path to start_mcp.py:
claude mcp add "modsdk-mcp-server" -- python "D:/ModSDK MCP Server/start_mcp.py"Or manually edit ~/.claude/settings.json:
{
"mcpServers": {
"modsdk-mcp-server": {
"command": "python",
"args": ["D:/ModSDK MCP Server/start_mcp.py"]
}
}
}Create .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code) in the project root:
{
"servers": {
"modsdk-mcp-server": {
"command": "python",
"args": ["D:/ModSDK MCP Server/start_mcp.py"]
}
}
}⚠️ Common Issues (VS Code / Cursor)
If you encounter the following error when starting the MCP in VS Code or Cursor:
Error: tool parameters array type must have itemsReason:
In the parameter schema of the MCP tool, some fields are declared as
"type": "array"but lack the"items"field.According to the JSON Schema specification, all array types must define
"items"; otherwise, it will throw an error in strict validation environments (like VS Code / Cursor).Solution:
Modify the parameter definition of the corresponding tool, for example:
❌ Incorrect:
{ "type": "array" }✅ Correct:
{ "type": "array", "items": { "type": "object" } }
Start the SSE service:
python "D:/ModSDK MCP Server/start_mcp.py" --sse
# 默认监听 http://0.0.0.0:8000Configure in the client:
{
"mcpServers": {
"modsdk-mcp-server": {
"transport": "sse",
"url": "http://localhost:8000/sse"
}
}
}3. Verify Connection
Enter the following test command in your AI assistant:
搜索 GetEngineCompFactory 的用法If the API documentation content is returned, the MCP Server is successfully connected.
📖 MCP Tool Overview
Document Query
Tool | Description |
| Search documentation (supports fuzzy matching, camelCase, Chinese) |
| Get full content of a specified document |
| Get a specific section of a document |
| Get the document directory structure |
| List all available documents |
| Reload document index |
Code Generation
Tool | Description |
| Generate a complete Mod project template (including entry, server, client) |
| Generate server system code |
| Generate client system code |
| Generate event listener code |
| Generate custom command code |
| Generate custom item code and JSON |
| Generate custom block code and JSON |
JSON Generation
Tool | Description |
| Generate item JSON (Behavior Pack + Resource Pack) |
| Generate block JSON |
| Generate recipe JSON (shaped/shapeless/furnace) |
| Generate entity JSON (Behavior Pack + Resource Pack) |
| Generate loot table JSON |
| Generate spawn rules JSON |
One-Click Tool & Weapon Generation
Tool | Description |
| Custom sword (damage, durability, enchantment, repair) |
| Custom pickaxe (mining speed, durability) |
| Custom axe (damage, mining speed) |
| Custom shovel |
| Custom hoe |
| Custom bow (charge time, durability) |
| Custom food (hunger, saturation, potion effects) |
| Custom armor (armor value, slot) |
| Custom throwable item |
Code Review & Best Practices
Tool | Description |
| Review code (Python 2.7 compatibility, architecture, performance) |
| Get best practice rules |
| Search Bedrock Edition components |
| Get component details |
| List all available components |
| List common events |
📂 Project Structure
ModSDK MCP Server/
├── modsdk_mcp/ # MCP Server 核心模块
│ ├── __init__.py # 包标识
│ ├── __main__.py # python -m 入口
│ ├── server.py # MCP Server 主程序(工具注册、请求处理)
│ ├── docs_reader.py # 文档读取与搜索引擎
│ ├── knowledge_base.py # 组件知识库 & 最佳实践规则
│ └── templates.py # 代码模板 & JSON 生成器
├── docs/ # ModSDK 官方文档(Markdown)
│ ├── 接口/ # API 接口文档
│ ├── 事件/ # 事件文档
│ ├── 枚举值/ # 枚举值文档
│ └── 更新信息/ # 版本更新日志
├── standard/ # 官方开发规范文档
├── skills/ # Claude Skills 文件
├── start_mcp.py # Agent专用启动入口
├── .mcp.json # MCP 配置
├── requirements.txt # Python 依赖
├── Dockerfile # Docker 镜像配置
├── docker-compose.yml # Docker Compose 配置
├── DEPLOYMENT.md # 详细部署指南
└── README.md # 本文件⚙️ Environment Variables
Variable Name | Description | Default Value |
| ModSDK documentation directory path |
|
| Skills file directory path |
|
| Standard documentation directory path |
|
| SSE mode listening address |
|
| SSE mode listening port |
|
🎯 Built-in Code Standards
All code generated by the MCP Server automatically follows these mandatory NetEase ModSDK standards:
Standard | Description |
Client/Server Separation | ServerSystem must not import clientApi, and vice versa |
CompFactory Caching |
|
Top-level Imports | All imports must be at the top of the file; imports inside functions are prohibited |
Tick Throttling | Use prime number modulo for Tick events to throttle frame rates |
BlockTick Salting | Use coordinate hashing for ServerBlockEntityTickEvent |
P2P Communication | Prioritize |
Python 2.7 Compatibility | f-strings, type hints, and print() functions are prohibited |
📚 See the
standard/directory or use theget_best_practicestool for the full specification.
📝 Usage Examples
Generate Mod Project
帮我创建一个名为"传送系统"的 Mod,ID 为 teleport_sys,功能是让玩家通过命令传送到指定位置Generate Custom Diamond Sword
帮我生成一把自定义钻石剑,命名空间 mymod,ID 为 diamond_blade,攻击力 10,耐久 500Code Review
帮我审查这段代码:
def OnTick(self):
import mod.server.extraServerApi as serverApi
comp = serverApi.GetEngineCompFactory().CreatePos(self.playerId)
pos = comp.GetPos()Query Component Usage
搜索 minecraft:food 组件的详细用法This server cannot be installed
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
- AlicenseBqualityDmaintenanceProvides comprehensive access to MCP documentation through structured guides, full-text search, and interactive development workflows for building servers and clients.311MIT
- FlicenseNot gradedqualityDmaintenanceEnables intelligent navigation and exploration of the Model Context Protocol specification through dynamic markdown tree generation, section search, content retrieval, and upstream synchronization with the official MCP repository.
- AlicenseAqualityDmaintenanceAnalyzes GitHub repositories using Gemini AI and generates comprehensive documentation including overviews, architecture guides, and file insights. Works with any MCP-compatible client.3MIT
- AlicenseNot gradedqualityAmaintenanceA Model Context Protocol server that gives AI assistants native access to Minecraft mod development tools — decompile, remap, search, and analyze Minecraft source code directly from your AI workflow.33734MIT
Related MCP Connectors
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
An MCP server that gives your AI access to the source code and docs of all public github repos
MCP server for GLM chat completions using Zhipu AI models via AceDataCloud
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/MCNeteaseDevs/modsdk_mcp_server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server