A powerful, extensible platform for programmatic Minecraft world generation and structure building using GDPC, FastMCP, and Supabase.
This project combines:
- GDPC (Generative Design in Minecraft Python Client) for Minecraft world manipulation
- FastMCP (FastAPI-based MCP server) for RESTful API endpoints
- Supabase for database, authentication, and storage
The system enables programmatic creation and manipulation of Minecraft worlds, including terrain generation, structure building, and template management.
- World Generation: Create custom terrain using procedural algorithms
- Structure Building: Design, save, and place structures using a blueprint system
- Template Management: Share and discover building templates
- Real-time Updates: Monitor long-running operations via WebSockets
- User Authentication: Secure access control with Supabase Auth
- API Access: RESTful API for integration with other tools
- Python 3.9+
- Minecraft Java Edition with Fabric (1.19.4 recommended)
- Fabric API mod
- GDMC HTTP Interface mod
- Supabase account
-
Set up Minecraft server with GDMC HTTP Interface mod
See the implementation plan for detailed instructions
-
Clone this repository
git clone https://github.com/natea/minecraft-mcp-gdpc.git cd minecraft-mcp-gdpc -
Create and activate a virtualenv
python -m venv venv source venv/bin/activate -
Install dependencies
pip install -r requirements.txt
-
Configure environment variables
cp .env.example .env # Edit .env with your Supabase credentials and other settings -
Run the server
python src/main.py
- Implementation Plan - Detailed project roadmap
- API Specification - REST API endpoints and usage
- Database Schema - Supabase database structure
The system follows a modular architecture with clear separation of concerns:
- FastMCP Server Layer: API gateway, authentication, and request handling (see FastMCP)
- GDPC Integration Layer: Interface with Minecraft worlds (see GDPC Python library)
- Supabase Integration Layer: Database, auth, and storage
- World Generation Features: Terrain algorithms and biome management
- Structure Building System: Blueprint format and component library
See the architecture diagram for a visual representation.
minecraft-mcp-gdpc/
├── docs/ # Documentation
├── src/ # Source code
│ ├── api/ # FastMCP API endpoints
│ ├── gdpc_interface/ # GDPC integration layer
│ ├── world_gen/ # World generation algorithms
│ ├── structures/ # Structure building system
│ └── supabase/ # Supabase integration
├── tests/ # Test suite
├── minecraft-server/ # Minecraft server files
├── config/ # Configuration files
└── examples/ # Example scripts and templates
# Run unit tests
pytest tests/unit
# Run integration tests
pytest tests/integration
# Run end-to-end tests
pytest tests/e2e- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- GDPC - Generative Design in Minecraft Python Client
- FastMCP - FastAPI-based MCP server
- GDMC HTTP Interface - Minecraft mod for HTTP interface
- Supabase - Open source Firebase alternative