Discord Community MCP
Provides tools for searching, reading, and analyzing Discord community conversations and members, including conversation recall, message context, community research, growth analytics, and optional sending of messages and reactions via a Discord bot.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Discord Community MCPFind the conversation where someone said onboarding felt like homework."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Discord Community MCP
A local-first Model Context Protocol server that gives AI agents read-only Discord search, conversation recall, community research, and growth analysis through a bot account. Sending messages and reactions is available only when explicitly enabled.
What it can do
Find conversations from a vague memory, even when the wording is uncertain
Reconstruct context around a matching message
Index selected Discord history in a local SQLite database
Analyze activity, response times, participation, concentration, reciprocity, and themes
Save member snapshots and analyze joins, departures, roles, and contributor growth
Optionally send messages, replies, and reactions
Related MCP server: Discord MCP Server
Requirements
Node.js 22.5 or newer
A Discord application and bot token
An MCP client that supports local stdio servers, such as Codex
1. Create a Discord bot
Open the Discord Developer Portal and create an application.
Open Bot, create the bot, and copy its token.
Under Bot → Privileged Gateway Intents, enable:
Message Content Intent for message text and search
Server Members Intent for member snapshots, join dates, roles, and growth
Presence Intent is not required.
Under OAuth2 → URL Generator, select the
botscope.Give the bot View Channels and Read Message History. Add Send Messages or Add Reactions only if you plan to enable write tools.
Open the generated URL and invite the bot to your Discord server.
The bot can only access channels its Discord role is allowed to view.
2. Install
git clone https://github.com/blackgirlbytes/discord-community-mcp.git
cd discord-community-mcp
npm ci
npm run build
cp .env.example .envOpen .env and replace the placeholder token:
DISCORD_BOT_TOKEN=replace-with-your-bot-token
DISCORD_ENABLE_WRITE=falseKeep .env private. It is excluded from git.
3. Add it to an MCP client
Codex CLI
Use absolute paths so the client can start the server from any directory:
codex mcp add discord-community -- \
node \
--env-file=/absolute/path/to/discord-community-mcp/.env \
/absolute/path/to/discord-community-mcp/dist/index.jsRestart Codex after adding the server.
Generic stdio configuration
Clients that use an mcpServers JSON object can use:
{
"mcpServers": {
"discord-community": {
"command": "node",
"args": [
"--env-file=/absolute/path/to/discord-community-mcp/.env",
"/absolute/path/to/discord-community-mcp/dist/index.js"
]
}
}
}Restart the MCP client after changing its configuration. You can then ask it to list the Discord servers and channels available to the bot.
Example questions
“Find the conversation where someone said onboarding felt like homework.”
“What did we decide about renaming the SDK last spring?”
“Why are beta testers responding slowly? Look for evidence across the last three months.”
“How has the community grown by month, and how does growth compare with participation?”
“Which support questions went unanswered last week?”
For broad analysis, the agent should first synchronize the relevant channels and date range, check index coverage, and then run community research. Behavioral explanations should be presented as hypotheses unless messages directly support them.
Available tools
Tool | Purpose |
| List servers available to the bot |
| List channels in a server |
| Read recent messages with pagination |
| Search for a vaguely remembered conversation |
| Read messages surrounding a match |
| Build or refresh the local message index |
| Produce an evidence packet for a community question |
| Check indexed channels, dates, and coverage |
| Save current membership, join-date, and role data |
| Analyze membership and participation over time |
| Send a message when writes are enabled |
| Reply when writes are enabled |
| React when writes are enabled |
Data and privacy
Message content and membership metadata are stored unencrypted in data/discord-analytics.sqlite by default. Override the location with DISCORD_ANALYTICS_DB.
DISCORD_ANALYTICS_DB=/absolute/private/path/discord-analytics.sqliteIndex only channels and date ranges needed for the analysis.
Protect and delete the database according to your community's privacy policy.
Give the bot the minimum Discord permissions it needs.
Keep
DISCORD_ENABLE_WRITE=falseunless sending content is intentional.Rotate the bot token immediately if it is exposed.
Analysis limitations
A message archive can show behavioral patterns but cannot prove why people behaved that way.
Discord users may respond without using the Reply action, so reply metrics can undercount responses.
Historical role membership is not reconstructed; older messages use the latest observed role.
Exact departures are detected only between saved member snapshots.
A first member snapshot cannot recover people who left before the bot observed them.
Search and analytics cover only channels visible to the bot and history that was synchronized.
Direct messages are not supported.
Write access
Write tools are registered but blocked by default. To enable them, update .env:
DISCORD_ENABLE_WRITE=trueThe bot must also have the corresponding Discord permissions. Keep writes disabled for research-only installations.
Development
npm ci
npm run check
npm testThe server writes operational logs to stderr because stdout is reserved for the MCP stdio protocol.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceEnables interaction with Discord through natural language, including reading and sending messages, managing servers, and user actions.
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with Discord through the REST API and real-time events, supporting message management, user info, channel operations, and more with security controls.131MIT
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to send and read messages in Discord channels, manage servers, channels, and roles via Discord's API.162MIT
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to read and write Discord messages, search content, and compute channel statistics via a Discord bot.MIT
Related MCP Connectors
Persistent docs and memory for AI agents — read, write, organize & search a shared workspace.
Give your agent live data from Twitter, Reddit, the web and GitHub. No API keys, no scraping stack.
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/blackgirlbytes/discord-community-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server