Discord MCP Server
README.md
# 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.
## 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
```bash
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:
```json
{
"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:
```bash
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:
```bash
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](https://cotlet.dev/integrations/discord-api-mcp-server?utm_source=github&utm_medium=readme&utm_campaign=discord)
---
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