Quickstart
Quickstart
Section titled “Quickstart”This guide walks you from zero to “Claude posts in your Discord” in roughly five minutes. You will need:
- Node.js 20.11+ (run
node --versionto check) - A Discord bot token with the scopes you intend to use
- Claude Desktop installed (other clients are covered in Client setup)
-
Install the CLI globally.
Terminal window npm install -g @discord-mcp/cliThis puts a
discord-mcpbinary on your$PATH. Usepnpm add -goryarn global addif you prefer; see Installation for details. -
Generate your client config.
Terminal window discord-mcp init --client claude-desktop --token "Bot YOUR.TOKEN.HERE"The
initsubcommand writes a snippet into Claude Desktop’sclaude_desktop_config.json, registeringdiscord-mcpas an MCP server with stdio transport. The token is stored in themcpServers.discord-mcp.env.DISCORD_TOKENfield.Your token must include the
Botprefix. Tokens without it are rejected at startup. -
Verify the install with
doctor.Terminal window discord-mcp doctor --onlinedoctorchecks Node version, token format, network reachability, and (with--online) issues aGET /users/@meagainst Discord. A clean exit code zero means you’re ready. -
Restart Claude Desktop.
Fully quit the app (the menu-bar icon, not just the window) and reopen it. On launch, Claude reads
claude_desktop_config.jsonand spawns thediscord-mcpserver as a subprocess. You should see “discord-mcp” in the MCP server list under Settings → Developer (or via the slashed-tools indicator in the chat input). -
Ask Claude to post a message.
In a Claude conversation, try:
“Send ‘hello from Claude’ to channel #general in my discord-mcp test guild.”
Claude will call
tools/listto discover the 192 available tools, pickmessages_send, confirm with you, then invoke the tool. The response includes the created message’s ID and timestamp.
What just happened
Section titled “What just happened”discord-mcp initregistered the server with Claude Desktop.- On launch, Claude spawned
discord-mcpover stdio (no port, no daemon). - The first
tools/listreturned 192 tool definitions, each with a four-section description (Purpose / When to use / When NOT to use / Returns). - Claude picked
messages_sendbased on your prompt and invoked it via JSON-RPC.
Next steps
Section titled “Next steps”- First tool call — anatomy of a single tool invocation.
- Client setup — wire up Claude Code, Cursor, or generic clients.
- Installation — pnpm/yarn/Node version notes and the
optional
--gatewayflag for real-time event subscriptions.