Sponsored by Deepsite.site

Minecraft MCP服务器文档索引

Created By
rice-awa7 months ago
Content

Minecraft MCP服务器文档索引

项目概述

Minecraft MCP服务器是一个集成系统,由两个核心组件组成:AIAgent(MCP-server)负责管理AI工具和处理LLM交互,以及基于WebSocket和脚本API的MC服务器负责处理游戏交互。系统支持两种请求路径:外部MCP客户端调用和游戏内聊天监听。

文档目录

1. 项目需求文档

2. 技术规范文档

3. 外部参考文档

系统组件

  1. AIAgent (MCP-server) - 负责管理AI工具和处理LLM交互
  2. MC服务器 - 基于WebSocket和脚本API的服务器,处理游戏交互

请求路径

  1. 外部MCP客户端路径 - 外部MCP客户端通过AIAgent与Minecraft交互
  2. 游戏内聊天路径 - 玩家通过游戏内聊天触发AIAgent

快速入门

  1. 阅读项目需求描述文档了解项目概况
  2. 参考技术架构文档了解系统设计
  3. 查看WebSocket通信规范了解通信协议和脚本API集成
  4. 学习MCP集成规范了解LLM集成方式和请求路径

项目结构规范

mc-mcp-server/
├── server/
│   ├── __init__.py
│   ├── mc_server.py       # WebSocket服务器实现
│   ├── mcp_server.py      # MCP服务器实现
│   └── utils/
│       ├── __init__.py
│       ├── auth.py        # 认证相关工具
│       ├── llm.py         # 大语言模型调用工具
│       └── logging.py     # 日志工具
├── resources/             # MCP资源定义
│   ├── __init__.py
│   ├── player.py
│   └── world.py
├── tools/                 # MCP工具定义
│   ├── __init__.py
│   ├── commands.py
│   └── messages.py
├── config/                # 配置文件
│   ├── default.json
│   └── production.json
├── tests/                 # 测试目录
│   ├── __init__.py
│   ├── test_mc_server.py
│   └── test_mcp_server.py
├── docs/                  # 文档目录
├── main.py                # 主入口文件
├── requirements.txt       # 依赖声明
└── README.md              # 项目说明

开发指南

  1. 安装依赖:

    pip install asyncio websockets uuid mcp
    
  2. 设置环境变量:

    export siliconflow_apikey=your_api_key
    
  3. 启动MC服务器:

    # 标准模式
    python main.py --full
    
    # 调试模式(记录WebSocket数据包)
    python main.py --full --debug
    
  4. 启动AIAgent:

    python ai_agent.py
    
  5. 连接Minecraft客户端到MC服务器(默认端口8080)

调试与日志

服务器提供了调试模式和增强的日志功能,帮助开发者诊断和解决问题:

  • 调试模式:使用 --debug 参数启动服务器,记录所有WebSocket数据包
  • 日志文件:日志自动保存在 logs 目录下
    • 主服务器日志:logs/server_YYYYMMDD-HHMMSS.log
    • WebSocket数据包日志:logs/packets/packets_YYYYMMDD-HHMMSS.log

详细信息请参阅 调试模式和日志功能文档

贡献指南

  1. 遵循项目的代码风格和架构设计
  2. 提交前确保代码通过测试
  3. 更新相关文档以反映代码变更

版本历史

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Playwright McpPlaywright MCP server
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Amap Maps高德地图官方 MCP Server
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Serper MCP ServerA Serper MCP Server
DeepChatYour AI Partner on Desktop
Tavily Mcp
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
WindsurfThe new purpose-built IDE to harness magic
ChatWiseThe second fastest AI chatbot™
CursorThe AI Code Editor
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.