Discord Cli
БесплатноНе проверенDiscord CLI + MCP Server — sync, search, and send Discord messages from your terminal. Built for developers and AI agents.
Описание
Discord CLI + MCP Server — sync, search, and send Discord messages from your terminal. Built for developers and AI agents.
README
Interact with Discord from your terminal. Built for developers and AI agents.
discocli sync --follow # real-time message capture
discocli search "deployment" # offline full-text search
discocli send --to "#general" --text "Build passed ✅"
discocli serve # start MCP server for AI agents
Install
Homebrew (macOS & Linux)
brew install virat-mankali/tap/discocli
Build from source
git clone https://github.com/virat-mankali/discord-cli
cd discord-cli
go build -o discocli ./cmd/discocli/
Quick Start
# 1. Authenticate (bot token or user token)
discocli auth
# 2. Sync messages
discocli sync
# 3. Search offline
discocli search "standup notes"
# 4. Send a message
discocli send --to "#general" --text "Hello from the terminal!"
Commands
| Command | Description |
|---|---|
discocli auth |
Authenticate with Discord (bot or user token) |
discocli whoami |
Show the currently authenticated user |
discocli sync |
Sync message history to local SQLite database |
discocli sync --follow |
Real-time sync via Discord Gateway |
discocli search <query> |
Full-text search across synced messages |
discocli send --to <target> --text <msg> |
Send message to channel, DM, or thread |
discocli guilds |
List all servers you're in |
discocli channels --guild <name> |
List channels in a server |
discocli serve |
Start MCP server for AI agents |
MCP Server (AI Agents)
Add to your mcp.json:
{
"mcpServers": {
"discocli": {
"command": "discocli",
"args": ["serve"],
"env": {},
"disabled": false,
"autoApprove": [
"search_messages",
"list_guilds",
"list_channels",
"get_sync_status"
]
}
}
}
Available MCP Tools
| Tool | Description | Auto-approve? |
|---|---|---|
search_messages |
Full-text search across synced messages | ✅ |
list_guilds |
List all Discord servers | ✅ |
list_channels |
List channels in a server | ✅ |
get_sync_status |
Show sync status and message counts | ✅ |
send_message |
Send a message to a channel | ❌ |
sync_channel |
Sync a channel's history | ❌ |
- You can optionally add
send_messageandsync_channelto theautoApprovearray in yourmcp.jsonif you want your AI agent to use them without confirmation. They're excluded by default since they perform write operations.
How It Works
- Messages are synced from Discord into a local SQLite database with FTS5 full-text search
- All searches are offline — fast and private
- Incremental sync only fetches new messages on subsequent runs
- The MCP server exposes the same functionality over stdio for AI agents
- Pure Go binary, no CGO — works on all platforms
Token Setup
Bot Token (Recommended)
- Go to Discord Developer Portal
- Create application → Bot → Reset Token
- Enable Message Content Intent under Privileged Gateway Intents
- Invite bot to your server with
Read Messages,Send Messages,Read Message History,Attach Filespermissions
User Token (Personal Use)
- Open Discord in browser
- DevTools → Network → any API request → Authorization header
⚠️ Important: Bot tokens are always the safer choice. User tokens violate Discord's Terms of Service if used for automation at scale. They're fine for personal/local use and AI agents acting on your behalf, but bot tokens are more stable, officially supported, and won't risk your account. When in doubt, use a bot token.
Inspired By
- steipete/wacli — WhatsApp CLI by Peter Steinberger
- virat-mankali/telegram-cli — Telegram CLI
License
MIT
Установка Discord Cli
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/virat-mankali/discord-cliFAQ
Discord Cli MCP бесплатный?
Да, Discord Cli MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Discord Cli?
Нет, Discord Cli работает без API-ключей и переменных окружения.
Discord Cli — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Discord Cli в Claude Desktop, Claude Code или Cursor?
Открой Discord Cli на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Gmail
Read, send and search emails from Claude
автор: GoogleSlack
Send, search and summarize Slack messages
автор: SlackRunbear
No-code MCP client for team chat platforms, such as Slack, Microsoft Teams, and Discord.
Discord Server
A community discord server dedicated to MCP by [Frank Fiegel](https://github.com/punkpeye)
Klavis AI
Open Source MCP Infra. Hosted MCP servers and MCP clients on Slack and Discord.
Work90210/APIFold
Turn any REST API into a hosted MCP server. 18 free public servers (GitHub, Stripe, Slack, OpenAI, Notion, and more) — no setup required, bring your own API key
автор: Work90210arikusi/deepseek-mcp-server
MCP server for DeepSeek AI with chat, reasoning, multi-turn sessions, function calling, thinking mode, and cost tracking.
автор: arikusihashgraph-online/hashnet-mcp-js
MCP server for the Registry Broker. Discover, register, and chat with AI agents on the Hashgraph network.
автор: hashgraph-onlineprofullstack/mcp-server
A comprehensive MCP server aggregating 20+ tools including SEO optimization, document conversion, domain lookup, email validation, QR generation, weather data,
автор: profullstackWayStation-ai/mcp
Seamlessly and securely connect Claude Desktop and other MCP hosts to your favorite apps (Notion, Slack, Monday, Airtable, etc.). Takes less than 90 secs.
автор: waystation-aiCompare Discord Cli with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории communication
