Open source · 2026
discord-mcp
Discord for AI assistants – an experiment
ExperimentAn experiment: Claude should be able to read servers, channels and direct messages in Discord – with my own account instead of a bot.
Warning: Automating a user account ("self-bot") is against the Discord Terms of Service and can get the account suspended. Use it at your own risk, ideally with a dedicated account.
How it works
- Login with a real browser: Playwright (headless Chromium) is only used to log in, takes over the session token of the web app and closes again
- After that it reads servers, channels and messages through the same HTTP API as the web app instead of scraping the page
- The session is stored, so a restart needs no new login; two-factor authentication via TOTP
- Direct messages and group DMs can be listed and read
- Read-only by default: sending messages only with
DISCORD_MCP_READ_ONLY=false - Streamable HTTP, optional bearer token, health check, shipped as a Docker image