Skip to main content
Glama
Discord MCP Server

Discord MCP Server

Discord MCP server for ChatGPT and Claude

Discord has an official API for bots and apps, and a documentation MCP server that searches developer docs, according to the live Cotlet.dev page (checked 6 November 2026). Cotlet.dev connects ChatGPT, Claude and other AI agents to your own Discord account through a hosted MCP server with 14 workflow tools. The seven write tools ask for approval by default.

What you can ask

Summarize my Discord Inbox mentions.

Read the recent messages in my help channel and draft answers to open questions.

Prepare a weekly digest of a busy Discord channel.

Catch up on my direct messages.

Draft a welcome message for new members and ask me before sending.

Related MCP server: discord-user-connector

Connect in 2 minutes

Get your API key at https://cotlet.dev/app and export it as COTLET_API_KEY.

ChatGPT

Settings > Apps & Connectors > Create. Use https://cotlet.dev/mcp/v1/connect with OAuth.

Claude

Settings > Connectors > Add custom connector. Use https://cotlet.dev/mcp/v1/connect.

Claude Code

claude mcp add --transport http cotlet https://cotlet.dev/mcp/v1 --header "Authorization: Bearer $COTLET_API_KEY"

Cursor

Copy .cursor/mcp.json from this repo into your project:

{
  "mcpServers": {
    "cotlet": {
      "url": "https://cotlet.dev/mcp/v1",
      "headers": {
        "Authorization": "Bearer ${COTLET_API_KEY}"
      }
    }
  }
}

Run it locally (stdio)

This repo is a real MCP server. It speaks MCP over stdio, lists its Discord tools without any key, and forwards every tool call to the hosted Cotlet.dev server. The hosted URL above stays the recommended way. Use this when your client only starts local servers.

Clone this repository and run python3 discord_agent.py serve with COTLET_API_KEY set.

Or with Docker:

docker build -t discord-mcp .
docker run -i --rm -e COTLET_API_KEY discord-mcp

The local server exposes seven browser helper tools, distinct from the 14 hosted workflow tools described on the live page.

Local tools: discord_guide, discord_status, discord_open, discord_read, discord_click, discord_type, discord_close. Without COTLET_API_KEY a tool call answers: "Set COTLET_API_KEY. Get a key at https://cotlet.dev/app".

Command line

Python 3.10+, nothing else to install. Run from this repo:

export COTLET_API_KEY="your-key"
python3 discord_agent.py connect   # ready config for Claude Code, Cursor, ChatGPT
python3 discord_agent.py status    # is Discord ready in your Cotlet.dev account
python3 discord_agent.py guide     # Discord screens and sign-in link
python3 discord_agent.py read      # open Discord, read the page, close the browser
python3 discord_agent.py tools     # list Cotlet.dev tools
python3 discord_agent.py serve     # start the stdio MCP server (same as no argument)

Questions from Discord users

Does Discord have an official API or MCP server?

Discord provides an official bot API. Its documentation MCP server at docs.discord.com/mcp searches developer documentation. The Cotlet.dev page checked these options on 6 November 2026.

Which Discord account do I use?

Sign in to your own Discord account in its Cotlet Cloud Browser and enable Discord for agents. Your account permissions determine which channels and actions you can access.

Which actions ask for approval?

All seven write tools ask first by default, including posts, replies, DMs, reactions, pins, role assignments and timeouts. Approval settings can be changed per tool.

Do moderation tools need permissions?

Role assignments need Manage Roles and timeouts need Time Out Members. A call your role does not allow fails.

Is Cotlet.dev affiliated with Discord?

No. Cotlet.dev is independent and is not affiliated with Discord.

Live integration

Discord tools and connection guide


More: https://cotlet.dev/integrations/discord-api-mcp-server?utm_source=github&utm_medium=readme&utm_campaign=discord

Start free: https://cotlet.dev/signup?app=discord&utm_source=github&utm_medium=readme&utm_campaign=discord

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to interact with Discord through the REST API and real-time events, supporting message management, user info, channel operations, and more with security controls.
      11 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to access and interact with a Discord user account via the Discord client API, allowing them to read servers, channels, DMs, mentions, and message history, and optionally send messages and perform other actions.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to interact with a Discord account to read channels, send and manage messages, handle DMs and reactions, search messages, and update status.
      1
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to interact with the Discord platform, including servers, members, roles, channels, categories, forum posts, messages, reactions, and webhooks. It supports logging in a bot, reading and searching messages, and creating, editing, or deleting Discord resources through natural language.
      1,560 npm
      MIT