Discord MCP tutorial
discord-mcp is a local stdio MCP server that lets an AI client call Discord through a bot you control. Nothing is hosted for you: your client starts the process, passes the bot token in its environment, and receives structured tool results over MCP.
What you will set up
Section titled “What you will set up”This tutorial first establishes one safe, repeatable connection: a local MCP client can start
discord-mcp, make a read-only Discord request, and send one test message inside a private
server you control. Its optional final unit then produces your first independently verified
Discord outcome through the plan, approve, apply, and Activity Evidence lifecycle.
- Create a Discord bot and install it in a test server.
- Install the CLI with Node.js 22.12 or newer.
- Connect your MCP client using a generated config snippet.
- Run your first Discord tools to verify the bot and send one test message.
- Understand the tool call from request arguments to structured output.
- Get a verified Discord outcome by reviewing a dry run, applying it in an empty test guild, and reading Activity Evidence back.
After the connection track, use Tools for exact contracts. Complete the optional verified-outcome unit before treating a full guild build as ready for real use.
Ready to begin?
Section titled “Ready to begin?”- I have a private Discord server where I can safely test a bot.
- I understand that the bot can only do what its Discord permissions allow.
- I have a private place outside source control where I can store the bot token.

