Integrate Discord with Your Applications
A Klavis-built MCP server for Discord: send messages, manage channels and roles, via a hosted service or self-hosted Docker image.
python-v2.20.0Add to Favorites
Why it matters
Connect your applications to Discord to automate communication and manage server interactions. This asset provides an API for sending messages, managing channels, and handling user roles.
Outcomes
What it gets done
Send, edit, and delete messages via API
Manage Discord channels and permissions
Retrieve server and member information
Automate user role assignments
Source
Get it from source
Spark does not host a copy of it.
Open sourceReports
Agent outcome reports
No reports yet
Capabilities
Tools your agent gets
Send, edit, and delete messages in Discord channels
Manage channels and channel access permissions
Retrieve server information and member data
Manage user roles and access permissions
Handle Discord-specific bot functions
Overview
Discord MCP Server
A Klavis-built MCP server for Discord that lets an agent send and moderate messages, manage channels and permissions, and administer roles and members through Discord's own API with OAuth support. Use it when an agent needs to act directly on a Discord server, via Klavis's hosted service or a self-hosted Docker deployment.
What it does
This MCP server integrates Discord into MCP clients, letting an agent send, edit, and delete messages, manage channels and channel permissions, look up server information and member details, manage user roles and permissions, and handle bot-specific Discord functionality. It uses Discord's own API with OAuth support and is built by Klavis, which offers it both as a managed hosted service and as a self-hostable Docker image.
When to use - and when NOT to
Use it when an agent needs to act on a real Discord server: posting or moderating messages, managing channels and roles, or pulling server/member information. The hosted route (via a free Klavis API key) fits production use with no infrastructure to run yourself; the Docker route fits self-hosting when you want to run and manage the server directly with your own Discord bot token. It is a Discord-specific connector, not a general chat-platform integration - it does not cover other platforms.
Capabilities
- Message Management: send, edit, and delete messages
- Channel Operations: manage channels and channel permissions
- Server Management: get server information and member details
- User Interactions: manage user roles and permissions
- Bot Operations: handle bot-specific Discord functionality
How to install
For self-hosting via Docker:
# Pull latest image
docker pull ghcr.io/klavis-ai/discord-mcp-server:latest
# Run Discord MCP Server
docker run -p 5000:5000 -e DISCORD_TOKEN=$DISCORD_TOKEN \
ghcr.io/klavis-ai/discord-mcp-server:latest
Alternatively, use the hosted service: get a free API key at klavis.ai, install the klavis SDK (pip install klavis or npm install klavis), and create a server instance from it, for example klavis.mcp_server.create_server_instance("DISCORD", "user123") in Python. Full documentation is at klavis.ai/docs.
Who it's for
Developers and teams building AI agents or bots that need to operate a Discord server programmatically, whether through a managed hosted endpoint or a self-hosted Docker deployment. Licensed under Apache 2.0.
Source README
Discord MCP Server
A Model Context Protocol (MCP) server for Discord integration. Send messages, manage channels, and interact with Discord servers using Discord's API with OAuth support.
๐ Quick Start - Run in 30 Seconds
๐ Using Hosted Service (Recommended for Production)
Get instant access to Discord with our managed infrastructure - no setup required:
๐ Get Free API Key โ
pip install klavis
# or
npm install klavis
from klavis import Klavis
klavis = Klavis(api_key="your-free-key")
server = klavis.mcp_server.create_server_instance("DISCORD", "user123")
๐ณ Using Docker (For Self-Hosting)
# Pull latest image
docker pull ghcr.io/klavis-ai/discord-mcp-server:latest
# Run Discord MCP Server
docker run -p 5000:5000 -e DISCORD_TOKEN=$DISCORD_TOKEN \
ghcr.io/klavis-ai/discord-mcp-server:latest
๐ ๏ธ Available Tools
- Message Management: Send, edit, and delete messages
- Channel Operations: Manage channels and channel permissions
- Server Management: Get server information and member details
- User Interactions: Manage user roles and permissions
- Bot Operations: Handle bot-specific Discord functionality
๐ Documentation & Support
| Resource | Link |
|---|---|
| ๐ Documentation | www.klavis.ai/docs |
| ๐ฌ Discord | Join Community |
| ๐ Issues | GitHub Issues |
๐ค Contributing
We welcome contributions! Please see our Contributing Guide for details.
๐ License
Apache 2.0 license - see LICENSE for details.
๐ Supercharge AI Applications
Get Free API Key โข Documentation โข Discord
FAQ
Common questions
Discussion
Questions & comments ยท 0
Sign In Sign in to leave a comment.