A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/v-3/discordmcp below:

v-3/discordmcp: Discord MCP Server for Claude Integration

A Model Context Protocol (MCP) server that enables LLMs to interact with Discord channels, allowing them to send and read messages through Discord's API. Using this server, LLMs like Claude can directly interact with Discord channels while maintaining user control and security.

  1. Clone this repository:
git clone https://github.com/yourusername/discordmcp.git
cd discordmcp
  1. Install dependencies:
  1. Create a .env file in the root directory with your Discord bot token:
DISCORD_TOKEN=your_discord_bot_token_here
  1. Build the server:
Usage with Claude for Desktop
  1. Open your Claude for Desktop configuration file:

  2. Add the Discord MCP server configuration:

{
  "mcpServers": {
    "discord": {
      "command": "node",
      "args": ["path/to/discordmcp/build/index.js"],
      "env": {
        "DISCORD_TOKEN": "your_discord_bot_token_here"
      }
    }
  }
}
  1. Restart Claude for Desktop

Sends a message to a specified Discord channel.

Parameters:

Example:

{
  "channel": "general",
  "message": "Hello from MCP!"
}

Reads recent messages from a specified Discord channel.

Parameters:

Example:

{
  "channel": "general",
  "limit": 10
}
  1. Install development dependencies:
npm install --save-dev typescript @types/node
  1. Start the server in development mode:

You can test the server using the MCP Inspector:

npx @modelcontextprotocol/inspector node build/index.js

Here are some example interactions you can try with Claude after setting up the Discord MCP server:

  1. "Can you read the last 5 messages from the general channel?"
  2. "Please send a message to the announcements channel saying 'Meeting starts in 10 minutes'"
  3. "What were the most recent messages in the development channel about the latest release?"

Claude will use the appropriate tools to interact with Discord while asking for your approval before sending any messages.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

This project is licensed under the MIT License - see the LICENSE file for details.

If you encounter any issues or have questions:

  1. Check the GitHub Issues section
  2. Consult the MCP documentation at https://modelcontextprotocol.io
  3. Open a new issue with detailed reproduction steps

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4