Minecraft Bot Control

by gerred

34 stars
1.2k downloads
Not rated
GitHub

About

Integrates Mineflayer to enable AI control of Minecraft bots for navigation, block manipulation, inventory management, and real-time game state monitoring.

Details

Author
gerred
Repository
gerred/mcpmc
GitHub stars
34
Downloads
1,182
License
MIT License
Categories
Design, Developer Tools, AI, Infrastructure, Automation

- 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

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Minecraft Bot Control
    Command (node, npx, python, etc.) npx
    Arguments
    • Argument 1 -y
    • Argument 2 @highlight/mcp-server

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

```bash

bun install

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "minecraft bot control": {
            "env": {},
            "args": [
                "-y",
                "@highlight/mcp-server"
            ],
            "command": "npx"
        }
    }
}

Linux

{
    "env": [],
    "args": [
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "npx"
}

Macos

{
    "env": [],
    "args": [
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "npx"
}

Windows

{
    "env": [],
    "args": [
        "/c",
        "npx",
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "cmd"
}

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.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.