Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mcpmc

MCP.Pizza Chef: gerred

MCPMC is a Model Context Protocol (MCP) server designed to integrate AI agents with Minecraft through Mineflayer. It provides a standardized JSON-RPC interface allowing AI models to control Minecraft bots for tasks such as navigation, block manipulation, inventory management, and real-time game state monitoring. Built with full MCP compatibility and TypeScript support, MCPMC offers a type-safe API for reliable and extensible Minecraft interaction. This server enables developers to embed intelligent agents into Minecraft environments, facilitating automation, gameplay assistance, and complex in-game reasoning within a structured protocol framework.

Use This MCP server To

Automate Minecraft bot navigation and pathfinding Manipulate blocks and build structures programmatically Manage Minecraft bot inventory and resources Monitor real-time Minecraft game state for AI decisions Integrate AI agents for gameplay assistance Develop AI-driven Minecraft automation workflows Enable multi-step reasoning in Minecraft environments

README

MCPMC (Minecraft Model Context Protocol)

npm version npm downloads CI License: MIT

A Model Context Protocol (MCP) server for interacting with Minecraft via Mineflayer. This package enables AI agents to control Minecraft bots through a standardized JSON-RPC interface.

Features

  • Full MCP compatibility for AI agent integration
  • Built on Mineflayer for reliable Minecraft interaction
  • Supports navigation, block manipulation, inventory management, and more
  • Real-time game state monitoring
  • Type-safe API with TypeScript support

Installation

# Using npm
npm install @gerred/mcpmc

# Using yarn
yarn add @gerred/mcpmc

# Using bun
bun add @gerred/mcpmc

Usage

# Start the MCP server
mcpmc

The server communicates via stdin/stdout using the Model Context Protocol. For detailed API documentation, use the MCP inspector:

bun run inspector

Development

# Install dependencies
bun install

# Run tests
bun test

# Build the project
bun run build

# Watch mode during development
bun run watch

# Run MCP inspector
bun run inspector

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create a new branch for your feature
  3. Write tests for your changes
  4. Make your changes
  5. Run tests and ensure they pass
  6. Submit a pull request

Please make sure to update tests as appropriate and adhere to the existing coding style.

License

MIT License

Copyright (c) 2024 Gerred Dillon

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

mcpmc FAQ

How do I install MCPMC?
Install MCPMC via npm using `npm install @gerred/mcpmc`.
What Minecraft version does MCPMC support?
MCPMC supports Minecraft versions compatible with Mineflayer, typically recent stable releases.
How does MCPMC communicate with AI agents?
MCPMC uses a standardized JSON-RPC interface to enable AI agents to control Minecraft bots.
Is MCPMC compatible with TypeScript?
Yes, MCPMC provides a type-safe API with full TypeScript support for safer development.
Can MCPMC handle real-time game state updates?
Yes, MCPMC supports real-time monitoring of Minecraft game state for responsive AI behavior.
What functionalities does MCPMC expose?
MCPMC exposes navigation, block manipulation, inventory management, and more for Minecraft bots.
Does MCPMC support multiple AI models?
MCPMC is model-agnostic and can integrate with various LLM providers like OpenAI, Claude, and Gemini via the MCP protocol.
Where can I find the source code and documentation?
The source code and documentation are available on GitHub at https://github.com/gerred/mcpmc.