Koskamo

discord-mcp

An MCP server that allows AI assistants to administer and moderate Discord servers. It provides 108 tools for reading channels, answering questions, moderating content, managing roles, channels, forums, and events. It integrates with clients like Claude Desktop, Cursor, VS Code, and others via a bot token.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

discord-mcp logo, by PaSympaCommunity listingLocal stdioSource reviewed; not executedPublished by PaSympa
You need:Replace YOUR_BOT_TOKEN with your bot's token, created in three steps
Vendor documentation

What you can do with it

  • Read messages from specific Discord channels
  • Moderate content by previewing and deleting spam
  • Manage server roles and channels
  • Handle forums and events

Source and maintenance

Community listingRegistry 2.6.0
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

docker.io/pasympa/discord-mcp:2.6.0

oci
docker.io/pasympa/discord-mcp:2.6.0 package definition
{
  "transport": "stdio",
  "identifier": "docker.io/pasympa/discord-mcp:2.6.0",
  "registryType": "oci",
  "environmentVariables": [
    {
      "name": "DISCORD_TOKEN",
      "format": "string",
      "isRequired": true,
      "description": "Discord bot token"
    },
    {
      "name": "DISCORD_MCP_TOOLSETS",
      "format": "string",
      "default": "all",
      "description": "Comma-separated toolsets to expose: discovery, messages, channels, permissions, members, roles, moderation, screening, stats, forums, webhooks, scheduled_events, invites, dm, polls, or all. An unknown name stops the server at startup."
    },
    {
      "name": "DISCORD_MCP_READ_ONLY",
      "format": "boolean",
      "default": "false",
      "description": "Set to true to expose only the read-only tools of the selected toolsets: write tools are neither listed nor callable. Any value other than true/false, 1/0, yes/no or on/off stops the server at startup."
    },
    {
      "name": "DISCORD_MCP_CONFIRM",
      "format": "boolean",
      "default": "true",
      "description": "Set to false to stop asking the user to confirm a dry_run: false call to the six tools that preview by default. The server asks only over stdio, and only a client that supports form elicitation. Any value other than true/false, 1/0, yes/no or on/off stops the server at startup."
    },
    {
      "name": "DISCORD_ALLOWED_GUILDS",
      "format": "string",
      "description": "Comma-separated guild IDs the server may act on. Calls that target any other guild are rejected, and the DM tools refuse a user who is not a member of any listed guild. Unset allows every guild.",
      "placeholder": "123456789012345678,234567890123456789"
    },
    {
      "name": "DISCORD_MESSAGE_CONTENT",
      "format": "boolean",
      "default": "true",
      "description": "Set to false to stop requesting the Message Content privileged intent at connect time."
    },
    {
      "name": "DISCORD_GUILD_MEMBERS",
      "format": "boolean",
      "default": "true",
      "description": "Set to false to stop requesting the Server Members privileged intent at connect time."
    },
    {
      "name": "DISCORD_MCP_TRANSPORT",
      "format": "string",
      "choices": [
        "stdio",
        "http"
      ],
      "default": "stdio",
      "description": "stdio, or http to serve Streamable HTTP on /mcp for remote clients such as the OpenAI Responses API, Codex or n8n. Any other value stops the server at startup."
    },
    {
      "name": "DISCORD_MCP_HTTP_TOKEN",
      "format": "string",
      "description": "Bearer token every HTTP request must carry. Required when DISCORD_MCP_TRANSPORT is http: at least 32 characters from the RFC 6750 b64token alphabet, different from DISCORD_TOKEN. Generate one with openssl rand -hex 32."
    },
    {
      "name": "DISCORD_MCP_HTTP_HOST",
      "format": "string",
      "default": "127.0.0.1",
      "description": "Address the HTTP server listens on when DISCORD_MCP_TRANSPORT is http. Keep 127.0.0.1 outside a container. In the Docker image, set 0.0.0.0, since 127.0.0.1 is unreachable from outside the container, and publish the port on the host loopback only: -p 127.0.0.1:3000:3000."
    },
    {
      "name": "DISCORD_MCP_HTTP_PORT",
      "format": "number",
      "default": "3000",
      "description": "Port the HTTP server listens on when DISCORD_MCP_TRANSPORT is http."
    },
    {
      "name": "DISCORD_MCP_HTTP_ALLOWED_HOSTS",
      "format": "string",
      "description": "Comma-separated hostnames, without port, accepted in the Host header of HTTP requests besides localhost, 127.0.0.1 and [::1], such as the public name a reverse proxy forwards.",
      "placeholder": "discord-mcp.example.com"
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "discord-mcp-2-6-0": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DISCORD_TOKEN=<YOUR_DISCORD_TOKEN>",
        "-e",
        "DISCORD_MCP_TOOLSETS=<YOUR_DISCORD_MCP_TOOLSETS>",
        "-e",
        "DISCORD_MCP_READ_ONLY=<YOUR_DISCORD_MCP_READ_ONLY>",
        "-e",
        "DISCORD_MCP_CONFIRM=<YOUR_DISCORD_MCP_CONFIRM>",
        "-e",
        "DISCORD_ALLOWED_GUILDS=<YOUR_DISCORD_ALLOWED_GUILDS>",
        "-e",
        "DISCORD_MESSAGE_CONTENT=<YOUR_DISCORD_MESSAGE_CONTENT>",
        "-e",
        "DISCORD_GUILD_MEMBERS=<YOUR_DISCORD_GUILD_MEMBERS>",
        "-e",
        "DISCORD_MCP_TRANSPORT=<YOUR_DISCORD_MCP_TRANSPORT>",
        "-e",
        "DISCORD_MCP_HTTP_TOKEN=<YOUR_DISCORD_MCP_HTTP_TOKEN>",
        "-e",
        "DISCORD_MCP_HTTP_HOST=<YOUR_DISCORD_MCP_HTTP_HOST>",
        "-e",
        "DISCORD_MCP_HTTP_PORT=<YOUR_DISCORD_MCP_HTTP_PORT>",
        "-e",
        "DISCORD_MCP_HTTP_ALLOWED_HOSTS=<YOUR_DISCORD_MCP_HTTP_ALLOWED_HOSTS>",
        "docker.io/pasympa/discord-mcp:2.6.0"
      ],
      "env": {
        "DISCORD_TOKEN": "<YOUR_DISCORD_TOKEN>",
        "DISCORD_MCP_TOOLSETS": "<YOUR_DISCORD_MCP_TOOLSETS>",
        "DISCORD_MCP_READ_ONLY": "<YOUR_DISCORD_MCP_READ_ONLY>",
        "DISCORD_MCP_CONFIRM": "<YOUR_DISCORD_MCP_CONFIRM>",
        "DISCORD_ALLOWED_GUILDS": "<YOUR_DISCORD_ALLOWED_GUILDS>",
        "DISCORD_MESSAGE_CONTENT": "<YOUR_DISCORD_MESSAGE_CONTENT>",
        "DISCORD_GUILD_MEMBERS": "<YOUR_DISCORD_GUILD_MEMBERS>",
        "DISCORD_MCP_TRANSPORT": "<YOUR_DISCORD_MCP_TRANSPORT>",
        "DISCORD_MCP_HTTP_TOKEN": "<YOUR_DISCORD_MCP_HTTP_TOKEN>",
        "DISCORD_MCP_HTTP_HOST": "<YOUR_DISCORD_MCP_HTTP_HOST>",
        "DISCORD_MCP_HTTP_PORT": "<YOUR_DISCORD_MCP_HTTP_PORT>",
        "DISCORD_MCP_HTTP_ALLOWED_HOSTS": "<YOUR_DISCORD_MCP_HTTP_ALLOWED_HOSTS>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "discord-mcp-2-6-0": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DISCORD_TOKEN=<YOUR_DISCORD_TOKEN>",
        "-e",
        "DISCORD_MCP_TOOLSETS=<YOUR_DISCORD_MCP_TOOLSETS>",
        "-e",
        "DISCORD_MCP_READ_ONLY=<YOUR_DISCORD_MCP_READ_ONLY>",
        "-e",
        "DISCORD_MCP_CONFIRM=<YOUR_DISCORD_MCP_CONFIRM>",
        "-e",
        "DISCORD_ALLOWED_GUILDS=<YOUR_DISCORD_ALLOWED_GUILDS>",
        "-e",
        "DISCORD_MESSAGE_CONTENT=<YOUR_DISCORD_MESSAGE_CONTENT>",
        "-e",
        "DISCORD_GUILD_MEMBERS=<YOUR_DISCORD_GUILD_MEMBERS>",
        "-e",
        "DISCORD_MCP_TRANSPORT=<YOUR_DISCORD_MCP_TRANSPORT>",
        "-e",
        "DISCORD_MCP_HTTP_TOKEN=<YOUR_DISCORD_MCP_HTTP_TOKEN>",
        "-e",
        "DISCORD_MCP_HTTP_HOST=<YOUR_DISCORD_MCP_HTTP_HOST>",
        "-e",
        "DISCORD_MCP_HTTP_PORT=<YOUR_DISCORD_MCP_HTTP_PORT>",
        "-e",
        "DISCORD_MCP_HTTP_ALLOWED_HOSTS=<YOUR_DISCORD_MCP_HTTP_ALLOWED_HOSTS>",
        "docker.io/pasympa/discord-mcp:2.6.0"
      ],
      "env": {
        "DISCORD_TOKEN": "<YOUR_DISCORD_TOKEN>",
        "DISCORD_MCP_TOOLSETS": "<YOUR_DISCORD_MCP_TOOLSETS>",
        "DISCORD_MCP_READ_ONLY": "<YOUR_DISCORD_MCP_READ_ONLY>",
        "DISCORD_MCP_CONFIRM": "<YOUR_DISCORD_MCP_CONFIRM>",
        "DISCORD_ALLOWED_GUILDS": "<YOUR_DISCORD_ALLOWED_GUILDS>",
        "DISCORD_MESSAGE_CONTENT": "<YOUR_DISCORD_MESSAGE_CONTENT>",
        "DISCORD_GUILD_MEMBERS": "<YOUR_DISCORD_GUILD_MEMBERS>",
        "DISCORD_MCP_TRANSPORT": "<YOUR_DISCORD_MCP_TRANSPORT>",
        "DISCORD_MCP_HTTP_TOKEN": "<YOUR_DISCORD_MCP_HTTP_TOKEN>",
        "DISCORD_MCP_HTTP_HOST": "<YOUR_DISCORD_MCP_HTTP_HOST>",
        "DISCORD_MCP_HTTP_PORT": "<YOUR_DISCORD_MCP_HTTP_PORT>",
        "DISCORD_MCP_HTTP_ALLOWED_HOSTS": "<YOUR_DISCORD_MCP_HTTP_ALLOWED_HOSTS>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "discord-mcp-2-6-0": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DISCORD_TOKEN=<YOUR_DISCORD_TOKEN>",
        "-e",
        "DISCORD_MCP_TOOLSETS=<YOUR_DISCORD_MCP_TOOLSETS>",
        "-e",
        "DISCORD_MCP_READ_ONLY=<YOUR_DISCORD_MCP_READ_ONLY>",
        "-e",
        "DISCORD_MCP_CONFIRM=<YOUR_DISCORD_MCP_CONFIRM>",
        "-e",
        "DISCORD_ALLOWED_GUILDS=<YOUR_DISCORD_ALLOWED_GUILDS>",
        "-e",
        "DISCORD_MESSAGE_CONTENT=<YOUR_DISCORD_MESSAGE_CONTENT>",
        "-e",
        "DISCORD_GUILD_MEMBERS=<YOUR_DISCORD_GUILD_MEMBERS>",
        "-e",
        "DISCORD_MCP_TRANSPORT=<YOUR_DISCORD_MCP_TRANSPORT>",
        "-e",
        "DISCORD_MCP_HTTP_TOKEN=<YOUR_DISCORD_MCP_HTTP_TOKEN>",
        "-e",
        "DISCORD_MCP_HTTP_HOST=<YOUR_DISCORD_MCP_HTTP_HOST>",
        "-e",
        "DISCORD_MCP_HTTP_PORT=<YOUR_DISCORD_MCP_HTTP_PORT>",
        "-e",
        "DISCORD_MCP_HTTP_ALLOWED_HOSTS=<YOUR_DISCORD_MCP_HTTP_ALLOWED_HOSTS>",
        "docker.io/pasympa/discord-mcp:2.6.0"
      ],
      "env": {
        "DISCORD_TOKEN": "<YOUR_DISCORD_TOKEN>",
        "DISCORD_MCP_TOOLSETS": "<YOUR_DISCORD_MCP_TOOLSETS>",
        "DISCORD_MCP_READ_ONLY": "<YOUR_DISCORD_MCP_READ_ONLY>",
        "DISCORD_MCP_CONFIRM": "<YOUR_DISCORD_MCP_CONFIRM>",
        "DISCORD_ALLOWED_GUILDS": "<YOUR_DISCORD_ALLOWED_GUILDS>",
        "DISCORD_MESSAGE_CONTENT": "<YOUR_DISCORD_MESSAGE_CONTENT>",
        "DISCORD_GUILD_MEMBERS": "<YOUR_DISCORD_GUILD_MEMBERS>",
        "DISCORD_MCP_TRANSPORT": "<YOUR_DISCORD_MCP_TRANSPORT>",
        "DISCORD_MCP_HTTP_TOKEN": "<YOUR_DISCORD_MCP_HTTP_TOKEN>",
        "DISCORD_MCP_HTTP_HOST": "<YOUR_DISCORD_MCP_HTTP_HOST>",
        "DISCORD_MCP_HTTP_PORT": "<YOUR_DISCORD_MCP_HTTP_PORT>",
        "DISCORD_MCP_HTTP_ALLOWED_HOSTS": "<YOUR_DISCORD_MCP_HTTP_ALLOWED_HOSTS>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "discord-mcp-2-6-0": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DISCORD_TOKEN=<YOUR_DISCORD_TOKEN>",
        "-e",
        "DISCORD_MCP_TOOLSETS=<YOUR_DISCORD_MCP_TOOLSETS>",
        "-e",
        "DISCORD_MCP_READ_ONLY=<YOUR_DISCORD_MCP_READ_ONLY>",
        "-e",
        "DISCORD_MCP_CONFIRM=<YOUR_DISCORD_MCP_CONFIRM>",
        "-e",
        "DISCORD_ALLOWED_GUILDS=<YOUR_DISCORD_ALLOWED_GUILDS>",
        "-e",
        "DISCORD_MESSAGE_CONTENT=<YOUR_DISCORD_MESSAGE_CONTENT>",
        "-e",
        "DISCORD_GUILD_MEMBERS=<YOUR_DISCORD_GUILD_MEMBERS>",
        "-e",
        "DISCORD_MCP_TRANSPORT=<YOUR_DISCORD_MCP_TRANSPORT>",
        "-e",
        "DISCORD_MCP_HTTP_TOKEN=<YOUR_DISCORD_MCP_HTTP_TOKEN>",
        "-e",
        "DISCORD_MCP_HTTP_HOST=<YOUR_DISCORD_MCP_HTTP_HOST>",
        "-e",
        "DISCORD_MCP_HTTP_PORT=<YOUR_DISCORD_MCP_HTTP_PORT>",
        "-e",
        "DISCORD_MCP_HTTP_ALLOWED_HOSTS=<YOUR_DISCORD_MCP_HTTP_ALLOWED_HOSTS>",
        "docker.io/pasympa/discord-mcp:2.6.0"
      ],
      "env": {
        "DISCORD_TOKEN": "<YOUR_DISCORD_TOKEN>",
        "DISCORD_MCP_TOOLSETS": "<YOUR_DISCORD_MCP_TOOLSETS>",
        "DISCORD_MCP_READ_ONLY": "<YOUR_DISCORD_MCP_READ_ONLY>",
        "DISCORD_MCP_CONFIRM": "<YOUR_DISCORD_MCP_CONFIRM>",
        "DISCORD_ALLOWED_GUILDS": "<YOUR_DISCORD_ALLOWED_GUILDS>",
        "DISCORD_MESSAGE_CONTENT": "<YOUR_DISCORD_MESSAGE_CONTENT>",
        "DISCORD_GUILD_MEMBERS": "<YOUR_DISCORD_GUILD_MEMBERS>",
        "DISCORD_MCP_TRANSPORT": "<YOUR_DISCORD_MCP_TRANSPORT>",
        "DISCORD_MCP_HTTP_TOKEN": "<YOUR_DISCORD_MCP_HTTP_TOKEN>",
        "DISCORD_MCP_HTTP_HOST": "<YOUR_DISCORD_MCP_HTTP_HOST>",
        "DISCORD_MCP_HTTP_PORT": "<YOUR_DISCORD_MCP_HTTP_PORT>",
        "DISCORD_MCP_HTTP_ALLOWED_HOSTS": "<YOUR_DISCORD_MCP_HTTP_ALLOWED_HOSTS>"
      }
    }
  }
}

Let your agent find its tools

Find servers like discord-mcp from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.