discord-user-mcp
Provides tools for interacting with Discord through a user account, including listing servers and channels, reading and sending messages or direct messages, searching history, managing emoji reactions, and retrieving server or user information.
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-user-mcp
Discord MCP server using user tokens. No bot setup, no Developer Portal, no intents — just your token and go.
Built for Claude Code and any MCP-compatible client.
Why user tokens?
Every other Discord MCP server requires creating a bot application, configuring intents, and inviting the bot to your server. This one uses your existing Discord session — the same access you already have in the app.
Trade-off: Using user tokens for automation is against Discord's ToS. This is a personal tool for your own account on your own machine. Use responsibly.
Related MCP server: Discord MCP
Setup
1. Get your Discord token
Your token is stored encrypted in the Discord app's local storage. You can find it by:
Opening Discord in a browser → DevTools → Network tab → any request →
AuthorizationheaderOr extracting it from the desktop app's LevelDB storage (macOS:
~/Library/Application Support/discord/Local Storage/leveldb/)
2. Add to Claude Code
claude mcp add discord -e DISCORD_TOKEN=your-token-here -- node /path/to/discord-user-mcp/dist/index.jsWith a default server:
claude mcp add discord \
-e DISCORD_TOKEN=your-token-here \
-e DISCORD_DEFAULT_GUILD=your-server-id \
-- node /path/to/discord-user-mcp/dist/index.js3. Build from source
git clone https://github.com/olivier-motium/discord-user-mcp.git
cd discord-user-mcp
npm install
npm run buildTools (14)
Core
Tool | Description |
| List servers you're in |
| List channels grouped by category |
| Read channel history with pagination |
| Send a message, optionally as a reply |
| Search messages by content, author, channel, date, attachment type |
Essential
Tool | Description |
| List DM conversations |
| Send a DM (by user ID or channel ID) |
| Add emoji reaction to a message |
| Get pinned messages from a channel |
| List active threads in a server |
| Server details, roles, features |
Additional
Tool | Description |
| Edit your own message |
| Delete your own message |
| User profile with server roles |
Configuration
Environment Variable | Required | Description |
| Yes | Your Discord user token |
| No | Default server ID — tools that need a guild will use this when not specified |
Design choices
Plain text output — no raw JSON. Messages formatted as
[2024-01-15 14:32] alice: content. IDs always inline for tool chaining.No discord.js — raw
fetchagainst Discord API v10. Zero runtime deps beyond MCP SDK.Rate limit handling — automatic retry with
retry_after+ jitter, up to 3 attempts.Search is the star — accepts usernames (resolved to IDs internally), date strings (
YYYY-MM-DDconverted to snowflakes), and all Discord search filters.Conservative defaults — 25 messages per read, not 100. Keeps output manageable for AI.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Your Gmail, Calendar, Drive, GitHub, Oura, wallet and confirmed profile facts in any MCP client.
MCP registry & directory: search, find & install 31k+ MCP servers & tools. Catalog and marketplace.
Official MCP server for twitterapis.com. Read and write Twitter/X: search, users, tweets, DMs.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables MCP clients to interact with Discord servers, allowing operations such as sending messages and reading message history through the Discord API.23140 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables managing Discord servers through a bot, including channel and role administration, messaging, and direct Discord API calls via MCP tools.2MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to control a logged-in Discord account through 70+ tools: browsing guilds and channels, sending and reacting to messages, moderating members, managing channels, roles, emojis, and webhooks, plus searching and analyzing captured message history stored in SQLite. Authenticates using tokens already cached by the local Discord client, requiring no bot account or manual token setup.140 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables an MCP client to read Discord servers, channels, threads, and messages, and to send messages, replies, reactions, and GIFs through an already-open Discord Web tab via a local Chrome extension and 127.0.0.1 bridge, without using a bot or the Discord HTTP API.8 npmMIT