Skip to main content
Glama
zeeweebee

Minecraft MCP Server

by zeeweebee

send-chat

Send custom chat messages in Minecraft using the MCP Server. Enables AI-controlled characters or bots to communicate in-game through predefined commands.

Instructions

Send a chat message in-game

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYesMessage to send in chat

Implementation Reference

  • src/bot.ts:532-548 (registration)
    The registerChatTools function contains the registration of the 'send-chat' tool using server.tool(). It includes the tool name, description, input schema (message: string), and the inline handler function that executes bot.chat(message) to send the chat message in the Minecraft game.
    function registerChatTools(server: McpServer, bot: any) { server.tool( "send-chat", "Send a chat message in-game", { message: z.string().describe("Message to send in chat") }, async ({ message }): Promise<McpResponse> => { try { bot.chat(message); return createResponse(`Sent message: "${message}"`); } catch (error) { return createErrorResponse(error as Error); } } ); }
  • Inline handler function for the send-chat tool. It receives the message parameter and calls bot.chat(message) to send it, then returns a success response.
    async ({ message }): Promise<McpResponse> => { try { bot.chat(message); return createResponse(`Sent message: "${message}"`); } catch (error) { return createErrorResponse(error as Error); } }
  • Input schema for the send-chat tool, defining a required 'message' parameter as a string.
    { message: z.string().describe("Message to send in chat") },

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zeeweebee/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server