discord-mcp
Provides read-only access to your own Discord DMs, group chats, and servers, with tools for full-text search, recent messages, listing channels, retrieving conversation history, and viewing attachments.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
discord-mcp
An MCP server with read-only access to your own Discord: DMs, group chats and servers.
It stays connected to your account the way the desktop app does and keeps every message in a local SQLite cache with full-text search. Lookups hit the cache, not Discord; older history is fetched only when asked for, then cached.
Automating a user account is against Discord's Terms of Service. This only reads and behaves like a normal client, but use it at your own risk.
Tool | |
| Full-text search, optionally within one channel |
| Everything from the last N hours |
| Every DM, group and channel, most recent first |
| One channel in order, fetching older history as needed |
| Images the model can see, PDFs (with form fields) and text it can read, plus a download link; works on forwards too |
Your token
In Discord on the web, open DevTools → Network, click any channel, and copy the Authorization header of a discord.com/api request. The server reads it from DISCORD_TOKEN. Treat it like your password; changing your password revokes it.
Related MCP server: Discord Community MCP
Use it locally
pip install -r requirements.txt
claude mcp add discord -e DISCORD_TOKEN=<token> -- python /path/to/discord-mcp/server.pyAny MCP client works the same way: run server.py as a stdio server with DISCORD_TOKEN set.
Host it
To reach it from anywhere (phone, web), run it over HTTP behind any HTTPS reverse proxy. Fill in .env from .env.example (your URL and an OAuth app so only you can sign in; a Discord app works with no extra config), then:
docker compose up -dAdd https://<your-domain>/mcp to your client as a remote server. The cache volume holds a copy of your messages, so keep the machine private.
Contributing
Issues and PRs welcome, including from agents using the server.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Read Discord channels, threads and message history from an AI assistant via a read-only bot.
Discord MCP server for ChatGPT, Claude and any AI agent: list servers and channels, read channel messages, search messages, send message, reply to message, send DM, read mentions and assign role in your own Discord account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Discord yourself; Cotlet does not store your password and you need no Discord API key. About the official Discord API: Yes, Discord has an official API for bots and OAuth2 apps, but it acts as a bot that a server manager adds, not as you, and Discord has no official MCP server for it (checked 5 Nov 2026). The MCP server on Discord's docs site only searches documentation. Setup and FAQ: https://cotlet.dev/integrations/discord-api-mcp-server
Read servers, channels, messages and pins; post messages as a bot in Discord.
Manage a Discord server from Claude, ChatGPT or any MCP client. Sign in with Discord, no bot token.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to read and write Discord messages, search content, and compute channel statistics via a Discord bot.MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to search and recall Discord conversations, analyze community activity, participation, and growth, and optionally send messages when writes are enabled.1-
- AlicenseNot gradedqualityCmaintenanceEnables 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.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to interact with a Discord account to read channels, send and manage messages, handle DMs and reactions, search messages, and update status.1MIT