Discord (hanweg)

Messaging and email

MCP server for discord bot.

Your AI app calls the Discord (hanweg) MCP server, which does the work through tools like list_servers, get_server_info, get_channels and list_members and sends the result back to the chat.

About Discord (hanweg)

Discord (hanweg) is a community MCP server from hanweg, filed in our directory under messaging and email. MCP server for discord bot.

Discord (hanweg) runs on your own machine: your AI app starts it with the command npx -y @smithery/cli and talks to it over standard input and output.

The README for Discord (hanweg) lists tools such as list_servers, get_server_info, get_channels and list_members, which your AI app can call once the server is connected.

At a glance

Publisher
hanweg (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @smithery/cli
Written in
Python
License
MIT
GitHub stars
169

Tools Discord (hanweg) gives your AI app

  • list_serversList available servers.
  • get_server_infoGet detailed server information.
  • get_channelsList channels in a server.
  • list_membersList server members and their roles.
  • get_user_infoGet detailed information about a user.
  • send_messageSend a message to a channel.
  • read_messagesRead recent message history.
  • add_reactionAdd a reaction to a message.
  • add_multiple_reactionsAdd multiple reactions to a message.
  • remove_reactionRemove a reaction from a message.
  • moderate_messageDelete messages and timeout users.
  • create_text_channelCreate a new text channel.
  • delete_channelDelete an existing channel.
  • add_roleAdd a role to a user.
  • remove_roleRemove a role from a user.

Tool names as the Discord (hanweg) README lists them. Your AI app shows the live list once Discord (hanweg) is connected.

How to set up Discord (hanweg)

  1. Install Node.js on the machine that runs your AI app, because Discord (hanweg) starts with npx and downloads its package on first run.
  2. Check the Discord (hanweg) README for keys or settings; the registry lists none that Discord (hanweg) requires.
  3. Add Discord (hanweg) to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Discord (hanweg) tools to confirm the connection.
  5. Run one read-only task with Discord (hanweg) first, such as a call to list_servers, before you allow anything that writes or sends.

Discord (hanweg) compared with similar servers

  • Logfire by pydantic has fewer GitHub stars than Discord (hanweg) (162 against 169); Logfire is official while Discord (hanweg) is a community server, and both run locally.
  • Wechat DevTools by WaterTian has more GitHub stars than Discord (hanweg) (172 against 169); both are community servers, and both run locally.
  • Pocketbase by mrwyndham has fewer GitHub stars than Discord (hanweg) (157 against 169); both are community servers, and both run locally. The Pocketbase README lists 9 tools to Discord (hanweg)'s 15.

Before you connect Discord (hanweg)

  • Give Discord (hanweg) its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Discord (hanweg) tool call until you trust what it does with them.
  • Treat text that Discord (hanweg) fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Discord (hanweg) on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Discord (hanweg)

How marketing and sales teams put Discord (hanweg) to work, by company size. Pick the size closest to yours and start Discord (hanweg) on one use case.

Small business

  • A small team can have Discord (hanweg) summarize the inbox or channel each morning, so nothing from a customer waits until the afternoon.
  • Owners can draft replies and follow-ups with Discord (hanweg) and send them only after a read, keeping the personal tone customers expect.
  • Discord (hanweg) runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can use Discord (hanweg) to turn long launch threads into decisions, owners and dates that land in the project tracker.
  • Sales and success teams can connect Discord (hanweg) so an agent drafts follow-ups after every customer call, ready to edit and send.
  • Start with list_servers and get_server_info, the tools Discord (hanweg) lists first, and add more once the team trusts the results.

Enterprise

  • Enterprises can deploy Discord (hanweg) with retention and data loss rules intact, so agents summarize conversations without moving data outside policy.
  • Internal comms teams can use Discord (hanweg) to find what employees ask most across channels and answer it once, in the right place.
  • Discord (hanweg) is a community server, so have security review the code and pin a version before Discord (hanweg) touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Discord (hanweg) README

From hanweg/mcp-discord on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Discord MCP Server

A Model Context Protocol (MCP) server that provides Discord integration capabilities to MCP clients like Claude Desktop.

Available Tools

Server Information
  • list_servers: List available servers
  • get_server_info: Get detailed server information
  • get_channels: List channels in a server
  • list_members: List server members and their roles
  • get_user_info: Get detailed information about a user
Message Management
  • send_message: Send a message to a channel
  • read_messages: Read recent message history
  • add_reaction: Add a reaction to a message
  • add_multiple_reactions: Add multiple reactions to a message
  • remove_reaction: Remove a reaction from a message
  • moderate_message: Delete messages and timeout users
Channel Management
  • create_text_channel: Create a new text channel
  • delete_channel: Delete an existing channel
Role Management
  • add_role: Add a role to a user
  • remove_role: Remove a role from a user

Installation

  1. Set up your Discord bot:

    • Create a new application at Discord Developer Portal
    • Create a bot and copy the token
    • Enable required privileged intents:
      • MESSAGE CONTENT INTENT
      • PRESENCE INTENT
      • SERVER MEMBERS INTENT
    • Invite the bot to your server using OAuth2 URL Generator
  2. Clone and install the package:

# Clone the repository
git clone https://github.com/hanweg/mcp-discord.git
cd mcp-discord

# Create and activate virtual environment
uv venv
.venv\Scripts\activate # On macOS/Linux, use: source .venv/bin/activate

### If using Python 3.13+ - install audioop library: `uv pip install audioop-lts`

# Install the package
uv pip install -e .
  1. Configure Claude Desktop (%APPDATA%\Claude\claude_desktop_config.json on Windows, ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
    "discord": {
      "command": "uv",
      "args": [
        "--directory",
        "C:\\PATH\\TO\\mcp-discord",
        "run",
        "mcp-discord"
      ],
      "env": {
        "DISCORD_TOKEN": "your_bot_token"
      }
    }
Installing via Smithery

To install Discord Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @hanweg/mcp-discord --client claude

License

MIT License - see LICENSE file for details.

Questions about Discord (hanweg)

What is the Discord (hanweg) MCP server?

MCP server for discord bot. Discord (hanweg) is maintained by hanweg on GitHub at hanweg/mcp-discord, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Discord (hanweg) MCP server?

Add Discord (hanweg) to your AI app's MCP config with the command npx -y @smithery/cli. In Claude Code, run claude mcp add --transport stdio discord -- npx -y @smithery/cli. To run Discord (hanweg) this way you need Node.js installed.

Does Discord (hanweg) need an API key?

The registry lists no required keys for Discord (hanweg). Check the Discord (hanweg) README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Discord (hanweg) an official MCP server?

No. Discord (hanweg) is a community server maintained by hanweg. Community servers can be excellent; read the code and the open issues before you give Discord (hanweg) access to company data.

What license is Discord (hanweg) under?

Discord (hanweg) is released under the MIT license, according to its GitHub repository. The license covers the code of Discord (hanweg); the service it connects to has its own terms.