wink-/pzmcp
If you are the rightful owner of pzmcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Project Zomboid MCP Server is a Model Context Protocol server designed to enhance mod development for Project Zomboid through AI-assisted tools.
search_vanilla
Find vanilla game items
generate_script
Create new item/recipe scripts
validate_script
Check syntax and references
check_references
Verify item dependencies
analyze_mod
Comprehensive mod analysis
Project Zomboid MCP Server
Intelligent script validation, generation, and contextual assistance for Project Zomboid mod development
Transform your modding workflow with AI-enhanced tooling
š Overview
The Project Zomboid MCP Server is a comprehensive Model Context Protocol server that revolutionizes Project Zomboid mod development. It provides intelligent script validation, generation, and contextual assistance through AI-enhanced tooling, making modding accessible to developers of all skill levels.
⨠Key Features
- š 2,700+ Vanilla Items - Complete searchable database with full-text search
- šÆ Smart Auto-Detection - Automatically finds your Project Zomboid installation
- ā” Lightning Fast Setup - One-command installation with uv package manager
- š¤ Claude Desktop Integration - Seamless AI-assisted development
- ā Real-time Validation - Syntax checking and reference validation
- š ļø Script Generation - Template-based creation with balanced stats
- š§ WSL Compatible - Perfect for Windows developers
š® What It Does
Transform your modding experience:
"Use the Project Zomboid MCP to find me a crowbar"
ā Returns: Crowbar item with damage: 1.0, durability: 10, categories: Blunt;Improvised
"Create a steel katana with 2.5 damage and high durability"
ā Generates: Complete Project Zomboid script with balanced stats
"Validate this script for syntax errors"
ā Analyzes: Line-by-line validation with specific error locations
š Quick Start
Windows Users (WSL Recommended)
# Install WSL (PowerShell as admin)
wsl --install
# Clone and setup (in WSL Ubuntu terminal)
git clone https://github.com/your-username/pzmcp.git
cd pzmcp
curl -LsSf https://astral.sh/uv/install.sh | sh && source ~/.bashrc
uv sync && uv run python -c "from mcp_server.core.enhanced_data_extractor import extract_with_path_manager; extract_with_path_manager(comprehensive=True)"
š Complete setup guide: | š¤ Claude integration:
Linux/macOS Users
git clone https://github.com/your-username/pzmcp.git && cd pzmcp
curl -LsSf https://astral.sh/uv/install.sh | sh
uv sync && uv run python -c "from mcp_server.core.enhanced_data_extractor import extract_with_path_manager; extract_with_path_manager(comprehensive=True)"
š§ Usage Examples
With Claude Desktop (Recommended)
Once configured, simply chat with Claude:
"Use the Project Zomboid MCP to find me a crowbar"
"Create a steel katana with 2.5 damage and high durability"
"Validate this Project Zomboid script for syntax errors"
Command Line Interface
# Search items directly
uv run python -c "import sqlite3; conn = sqlite3.connect('mcp_data.db'); cursor = conn.cursor(); cursor.execute('SELECT item_name, display_name FROM items_fts WHERE display_name MATCH \"baseball bat\"'); [print(f'{item[0]}: {item[1]}') for item in cursor.fetchall()]"
# Run MCP server for testing
uv run python run_server.py
šļø Architecture
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā MCP Server Core ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā Path Manager ā Enhanced Parser ā Script Gen ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā SQLite FTS5 Database Layer ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā Game Data ā Templates ā Validation ā
ā (2,700+ items)ā (JSON-based) ā (Real-time) ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Data Pipeline
Project Zomboid Installation
ā
Path Manager (Auto-detection)
ā
Enhanced Data Extractor
ā
SQLite FTS5 Database
ā
MCP Tools & Claude Integration
š ļø MCP Tools Available
When integrated with Claude Desktop, you get access to:
Tool | Purpose | Example Usage |
---|---|---|
search_vanilla | Find vanilla game items | "Find all melee weapons with damage > 2.0" |
generate_script | Create new item/recipe scripts | "Generate a tactical knife with spear attachment" |
validate_script | Check syntax and references | "Validate this weapon script for errors" |
check_references | Verify item dependencies | "Check if all referenced items exist" |
analyze_mod | Comprehensive mod analysis | "Analyze my mod for balance issues" |
šÆ Real-World Examples
Item Research
User: "Find me all the different types of axes in Project Zomboid"
Claude: Using the Project Zomboid MCP to search for axes...
ā Returns: HandAxe, WoodAxe, AxeStone, FireAxe with full stats
Balanced Script Creation
User: "Create a reinforced crowbar that's better than normal but not overpowered"
Claude: Analyzing vanilla crowbar stats and generating balanced alternative...
ā Creates: Complete item script with appropriate damage/durability increases
Recipe Development
User: "Make a recipe to craft the reinforced crowbar using a normal crowbar and steel"
Claude: Generating craftRecipe with proper skill requirements...
ā Produces: Balanced recipe requiring Metalworking skill and appropriate materials
š Project Structure
pzmcp/
āāā mcp_server/ # Core MCP server implementation
ā āāā core/ # Database, extraction, path management
ā āāā parsers/ # Script parsers for items/recipes/vehicles
ā āāā templates/ # JSON templates for script generation
āāā media/scripts/ # Project Zomboid script files (copied)
āāā docs/ # Documentation and guides
ā āāā WINDOWS_SETUP.md
ā āāā CLAUDE_DESKTOP_INTEGRATION.md
ā āāā CHANGELOG.md
āāā pz_path_manager.py # Smart PZ installation detection
āāā pyproject.toml # Modern Python packaging
āāā README.md # This file
ā” Performance
- š 10-100x faster dependency management with uv
- ā” Sub-second search across 2,700+ items
- š¾ Efficient storage using SQLite FTS5
- š Auto-detection of Project Zomboid installations
- š± Lightweight - works on modest hardware
š§ Advanced Configuration
Custom Project Zomboid Paths
# Add custom installation path
uv run python pz_path_manager.py --add "my_pz" "C:\Custom\ProjectZomboid\media\scripts" 1
Multiple Environments
Configure different Claude Desktop environments for development vs production mods.
Debug Mode
# Run with debug logging
uv run python run_server.py --debug
š¤ Contributing
We welcome contributions! Here's how to get started:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature
- Make your changes and add tests
- Run the linter:
uv run ruff check .
- Submit a pull request
Development Setup
git clone https://github.com/your-username/pzmcp.git
cd pzmcp
uv sync --dev # Install with development dependencies
uv run pytest # Run tests
š Documentation
- - Complete WSL installation and configuration
- - AI assistant setup
- - Version history and features
- - Product requirements and architecture
š Troubleshooting
Common Issues
MCP Server won't start?
- Check WSL is installed and running
- Verify paths in Claude Desktop config
- Ensure database has been populated
Database empty?
- Run data extraction:
uv run python -c "from mcp_server.core.enhanced_data_extractor import extract_with_path_manager; extract_with_path_manager()"
- Check Project Zomboid installation path
Claude Desktop can't connect?
- Restart Claude Desktop completely after config changes
- Check JSON syntax in MCP configuration
- Verify WSL paths are correct
Get Help
- GitHub Issues: Bug reports and feature requests
- Documentation: Comprehensive guides for setup and usage
- Community: Discord servers for Project Zomboid modding
š License
This project is licensed under the MIT License - see the file for details.
š Acknowledgments
- The Indie Stone - For creating Project Zomboid and making it so moddable
- Anthropic - For Claude and the MCP protocol
- Project Zomboid Modding Community - For inspiration and feedback
- Contributors - Everyone who helps improve this tool
š Roadmap
v0.3.0 - Advanced Features
- Complete vehicle script support
- Advanced template system
- Lua script integration
- Performance optimization tools
v1.0.0 - Production Ready
- GUI interface for non-technical users
- Steam Workshop integration
- Automated testing pipelines
- Enterprise support for mod teams
Transform your Project Zomboid modding workflow today!
⢠ā¢
Made with ā¤ļø for the Project Zomboid modding community