Sponsored by Deepsite.site

Basic Minecraft Protocol (MCP) Server

Created By
cs-flytbase9 months ago
A basic MCP (Minecraft Protocol) server implementation
Content

Basic Minecraft Protocol (MCP) Server

A simple implementation of a Minecraft Protocol server in Python. This server implements the basic handshake and status response protocol, allowing Minecraft clients to detect the server in the server list.

Features

  • Basic MCP protocol implementation
  • Handshake packet processing
  • Server status response
  • Simple client disconnect handling
  • Multi-threaded client handling

Requirements

No external dependencies are required for the basic implementation. The server uses standard Python libraries:

  • socket
  • json
  • struct
  • threading
  • time
  • logging

Usage

  1. Clone the repository:

    git clone git@github.com:cs-flytbase/test.git
    cd test
    
  2. Make the script executable (Linux/Mac):

    chmod +x main.py
    
  3. Run the server:

    python main.py
    
  4. The server will start listening on the default Minecraft port (25565).

  5. You can connect to the server using a Minecraft client by adding a server with the address of the machine running the script.

Configuration

You can modify the following variables in the script to customize your server:

  • HOST: The address to bind to (default: '0.0.0.0', all interfaces)
  • PORT: The port to listen on (default: 25565)
  • MAX_PLAYERS: Maximum number of players (default: 20)
  • SERVER_NAME: The name of your server (default: "Basic MCP Server")
  • SERVER_VERSION: Minecraft version (default: "1.19.4")
  • PROTOCOL_VERSION: Protocol version (default: 762 for 1.19.4)

Limitations

This is a very basic implementation and has the following limitations:

  • Only implements the handshake and status response packets
  • Does not handle full login sequence
  • Does not implement gameplay
  • Limited error handling
  • No encryption

Future Enhancements

Future versions could include:

  • Full login sequence
  • Player data handling
  • World data loading/saving
  • Entity management
  • Block interactions
  • Chat system

License

This project is released as open source. Feel free to use and modify it as needed.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
DeepChatYour AI Partner on Desktop
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
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.
CursorThe AI Code Editor
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
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"
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
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.
ChatWiseThe second fastest AI chatbot™
Tavily Mcp
Serper MCP ServerA Serper MCP Server
WindsurfThe new purpose-built IDE to harness magic
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
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.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Amap Maps高德地图官方 MCP Server
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Playwright McpPlaywright MCP server