Discord OAuth2 Server
FreeNot checkedEnables reading Discord messages and server information using your own account via OAuth2, no bot required.
About
Enables reading Discord messages and server information using your own account via OAuth2, no bot required.
README
A Model Context Protocol (MCP) server that provides Discord integration using OAuth2 user authentication for MCP clients like Claude Desktop. This allows Claude to access Discord with YOUR permissions, eliminating the need for bot setup and admin approvals.
Key Benefits
- ✅ No Bot Required: Use your own Discord account instead of creating a bot
- ✅ Automatic Access: Access all servers you're already a member of
- ✅ No Admin Approval: No need to get bot permissions from server administrators
- ✅ Your Permissions: Claude sees exactly what you can see on Discord
- ✅ Secure: OAuth2 with encrypted token storage and automatic refresh
Available Tools
Server Information
list_servers: List all Discord servers you have access toget_server_info: Get detailed information about a serverget_channels: List channels in a server you can seelist_members: List server members (if you have permission)get_user_info: Get information about a Discord user
Message Reading
read_messages: Read recent message history from channels you can access
Note: Write operations (sending messages, managing roles, etc.) are not included as they require special permissions that regular users typically don't have.
Installation
1. Set up Discord OAuth2 Application
- Go to Discord Developer Portal
- Click "New Application" and give it a name
- Navigate to OAuth2 → General
- Copy the Client ID and Client Secret
- Add redirect URI:
http://localhost:8000/callback - Save changes
2. Clone and Install
# Clone this repository
git clone https://github.com/YOUR-USERNAME/mcp-discord-oauth.git
cd mcp-discord-oauth
# Create and activate virtual environment
uv venv
source .venv/bin/activate # macOS/Linux
# .venv\Scripts\activate # Windows
# Install dependencies
uv pip install -e .
3. Configure Claude Desktop
Update your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"discord": {
"command": "uv",
"args": [
"--directory",
"/path/to/mcp-discord-oauth",
"run",
"mcp-discord"
],
"env": {
"DISCORD_CLIENT_ID": "your_oauth_client_id",
"DISCORD_CLIENT_SECRET": "your_oauth_client_secret",
"DISCORD_REDIRECT_URI": "http://localhost:8000/callback"
}
}
}
}
4. First Time Setup
- Restart Claude Desktop
- Try using a Discord command like "What servers do I have access to?"
- Your browser will open for OAuth2 authorization
- Grant permission to access your Discord account
- Return to Claude - it now has access to your Discord data!
How It Works
- OAuth2 Authentication: Uses standard OAuth2 flow to authenticate with your Discord account
- Token Storage: Securely stores access tokens with encryption in your home directory
- Auto Refresh: Automatically refreshes tokens when they expire
- REST API: Makes direct Discord API calls using your permissions
- MCP Integration: Provides tools to Claude Desktop for Discord interaction
Security
- Tokens are encrypted using Fernet symmetric encryption
- Stored in your home directory with restricted permissions
- Uses PKCE (Proof Key for Code Exchange) for additional security
- Automatic token refresh prevents stale credentials
License
MIT License - see LICENSE file for details.
Installing Discord OAuth2 Server
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/djanmagno/discord-mcp-oauthFAQ
Is Discord OAuth2 Server MCP free?
Yes, Discord OAuth2 Server MCP is free — one-click install via Unyly at no cost.
Does Discord OAuth2 Server need an API key?
No, Discord OAuth2 Server runs without API keys or environment variables.
Is Discord OAuth2 Server hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Discord OAuth2 Server in Claude Desktop, Claude Code or Cursor?
Open Discord OAuth2 Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Gmail
Read, send and search emails from Claude
by GoogleSlack
Send, search and summarize Slack messages
by 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
by Work90210arikusi/deepseek-mcp-server
MCP server for DeepSeek AI with chat, reasoning, multi-turn sessions, function calling, thinking mode, and cost tracking.
by arikusihashgraph-online/hashnet-mcp-js
MCP server for the Registry Broker. Discover, register, and chat with AI agents on the Hashgraph network.
by hashgraph-onlineprofullstack/mcp-server
A comprehensive MCP server aggregating 20+ tools including SEO optimization, document conversion, domain lookup, email validation, QR generation, weather data,
by 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.
by waystation-aiCompare Discord OAuth2 Server with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All communication MCPs
