discord
Provides tools for interacting with Discord via a user token, including retrieving the authenticated user, listing guilds, channels, and DMs, reading and sending messages, fetching users, and searching messages.
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-cli
English | Português (Brasil)
Discord CLI (user token) and MCP server with no dependencies, built on the
discord-userdoccers documentation. Ships with the discord-cli binary and
output in English, Portuguese (pt-BR), French and Spanish.
⚠️ Uses a user token, which is against Discord's ToS when used for automation. Use a secondary account and at your own risk.
Install
npm install -g discord-cli
# or run straight from the repo
node bin/discord-cli.js helpRequires Node.js >= 18.
Related MCP server: Discord MCP server
Quick start
discord-cli login --token <YOUR_TOKEN> # stores the token in ~/.config/discord-cli/config.json
discord-cli whoami
discord-cli guilds
discord-cli channels <guild-id>
discord-cli read <channel-id> --limit 50
discord-cli send <channel-id> "hello from the terminal"The token is also read from DISCORD_TOKEN, and the config file is written
with 0600 permissions.
Languages
The CLI, the error messages and the MCP tool descriptions are translated.
Supported locales: en, pt-BR, fr, es.
Resolution order (first match wins):
DISCORD_LOCALEenvironment variable--lang <locale>(or--lang=<locale>)langsaved in the config fileLC_ALL/LANGen
discord-cli --lang fr help # French help
discord-cli lang pt-BR # persist the language
discord-cli lang # show the current language + supported list
DISCORD_LOCALE=es discord-cli help # per-invocation overrideAccents are optional in input: fr-FR, pt_BR.UTF-8, en_US, es-419 are
normalized automatically.
Commands
Command | Description |
| Save the token and validate it |
| Show the authenticated user |
| Change |
| List sessions / end the current one |
| Fetch a user |
| Full profile |
| Set a user note |
| List guilds / guild info |
| List guild channels |
| Members or member search |
| Search messages in a guild |
| List DMs / open a DM |
| Read messages |
| Send a message |
| Edit a message |
| Delete a message |
| Search messages in a channel |
| Live gateway events |
| Gateway info |
| Show or set the language |
| Start the MCP server on stdio |
Global flags: --lang, --verbose, --json, --help, --version.
Output is JSON by default, so it pipes cleanly into jq:
discord-cli guilds | jq '.guilds[].name'MCP server
The MCP server speaks JSON-RPC 2.0 over stdio and needs no dependencies. Tool descriptions and protocol errors follow the active locale, so a French-speaking model gets French descriptions.
Register it with Claude Desktop / any MCP client:
{
"mcpServers": {
"discord": {
"command": "discord-cli",
"args": ["mcp", "--lang", "en"],
"env": { "DISCORD_TOKEN": "your-user-token" }
}
}
}Tools: whoami, list_guilds, list_channels, list_dms, read_messages,
send_message, get_user, search_messages.
initialize also reports locale and supportedLocales, and honours a
clientInfo.locale hint.
Development
npm run lint # syntax check + i18n key parity across locales
npm test # node:test suite (i18n, CLI, MCP)
npm run check # lint + tests, what CI runsAdding a language = adding one object to CATALOGS in src/i18n.js (plus the
tool strings in src/i18n-tools.js). npm run lint fails if any locale is
missing a key.
License
MIT — see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Discover MCP servers and A2A agents; verify, message, post, follow, react, and receive webhooks.
Managed MCP gateway with OAuth, per-agent permissions, shared accounts and activity logs.
Use your Pronto feed, Spaces, Posts, Artifacts, and agents from any MCP client.
Your Gmail, Calendar, Drive, GitHub, Oura, wallet and confirmed profile facts in any MCP client.
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.23141 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables an MCP client to inspect and manage Discord through a bot account, including channels, roles, messages, members, and moderation actions.1MIT
- FlicenseNot gradedqualityCmaintenanceEnables MCP clients to read, post to, and moderate a Discord server through the Discord REST API, with opt-in guardrails and dry-run safeguards.-
- 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.141 npmMIT