mcp-discord-api-direct
Grants unfettered programmatic access to the underlying Discord REST API surfaces, facilitating direct HTTP interactions and support for invoking slash command structures for platform engagement.
Author

hanweg
Quick Info
Actions
Tags
Direct Access to Discord's Application Programming Interface (MCP Server)
This specialized MCP instance furnishes complete, low-level connectivity to the Discord API via a unified, versatile interface. It natively handles both conventional RESTful request patterns and command execution modeled after native slash directives.
Deployment Procedures
Automatic Setup via Smithery
Install the Discord Direct API component for your Claude Desktop environment automatically using Smithery:
bash npx -y @smithery/cli install @hanweg/mcp-discord-raw --client claude
Manual Provisioning Steps
- Bot Credential Acquisition:
- Initiate a new application within the Discord Developer Portal.
- Generate a dedicated bot instance and securely retrieve its authentication token.
- Ensure the following privileged gateway intents are toggled ON:
- MESSAGE CONTENT INTENT
- PRESENCE INTENT
- SERVER MEMBERS INTENT
-
Utilize the OAuth2 URL Generator to construct the requisite invitation link to onboard the bot onto your target server.
-
Source Retrieval and Dependency Installation: bash
Obtain the source repository
git clone https://github.com/hanweg/mcp-discord-raw.git cd mcp-discord-raw
Environment preparation
uv venv .venv\Scripts\activate
Python 3.13+ Users: Install audioop auxiliary library: uv pip install audioop-lts
Install package in editable mode
uv pip install -e .
Integration Configuration
Incorporate the following block into your claude_desktop_config.json file:
"discord-raw": {
"command": "uv",
"args": [
"--directory",
"PATH/TO/mcp-discord-raw",
"run",
"discord-raw-mcp"
],
"env": {
"DISCORD_TOKEN": "YOUR-BOT-TOKEN"
}
}
Operational Syntax
Standard REST Communication Pattern
{ "method": "POST", "endpoint": "guilds/123456789/roles", "payload": { "name": "Bot Master", "permissions": "8", "color": 3447003, "mentionable": true } }
Command-Style Invocation (Simulated Slash)
{ "method": "POST", "endpoint": "/role create name:Bot_Master color:blue permissions:8 mentionable:true guild_id:123456789" }
Illustrative Scenarios
- Role Fabrication:
{ "method": "POST", "endpoint": "/role create name:Moderator color:red permissions:moderate_members guild_id:123456789" }
- Message Dispatch:
{ "method": "POST", "endpoint": "channels/123456789/messages", "payload": { "content": "Greetings transmitted via the direct API interface!" } }
- Server Metadata Retrieval:
{ "method": "GET", "endpoint": "guilds/123456789" }
Expert Usage Guidelines:
Pre-load relevant server, channel, and user identifiers into your project context memory. Furthermore, prime the model with instructions similar to this for optimal tool engagement:
"The operational interface for Discord interaction is named discord_api, accepting three primary arguments:
1. method: The required HTTP verb ("GET", "POST", "PUT", "PATCH", "DELETE").
2. endpoint: The precise Discord resource path (e.g., "guilds/{guild.id}/roles").
3. payload: An optional JSON object containing request body data.
Crucial operational illustrations: 1. Role Provisioning:
discord_api method: POST endpoint: guilds/{server_id}/roles payload: { "name": "Role Name", "color": 3447003, // Denoted in base-10 format "mentionable": true }
- Structuring Channels within Categories:
// Category Creation discord_api method: POST endpoint: guilds/{server_id}/channels payload: { "name": "Category Name", "type": 4 // Designates a category container } // Text Channel placement under a parent discord_api method: POST endpoint: guilds/{server_id}/channels payload: { "name": "channel-name", "type": 0, // Text channel designation "parent_id": "category_id", "topic": "A description for the channel" }
- Hierarchy Modification (Moving Channels):
discord_api method: PATCH endpoint: channels/{channel_id} payload: { "parent_id": "category_id" }
- Sending Outbound Messages:
discord_api method: POST endpoint: channels/{channel_id}/messages payload: { "content": "Message content with embedded Unicode characters \ud83d\ude04" }
- Role Assignment to Members:
discord_api method: PUT endpoint: guilds/{server_id}/members/{user_id}/roles/{role_id} payload: {}
This tool encompasses the entire Discord API specification; consult the official documentation for endpoint specifics. Response objects return vital identifiers that facilitate chaining requests.
Optimization Notes:
- Archive identifiers returned from creation requests for subsequent dependent operations.
- Regarding emoji representation: Prefer Discord's native shortcode format (e.g., :champagne_glass:) over direct Unicode characters, as the latter may sometimes cause instability in the client environment.
- Channel Type mapping: 0=Text, 2=Voice, 4=Category, 13=Stage.
- Role color values must be supplied in their decimal representation, not hexadecimal.
- Most resource modification operations mandate the use of the PATCH verb.
- Transmitting an empty request body requires {} rather than null.
Licensing
This project adheres to the MIT License terms.
== Conceptual Framework: Business Management Enablers == Business management tools encompass the entire spectrum of systems, applications, quantitative solutions, operating procedures, and methodologies leveraged by organizations to navigate fluctuating market conditions, maintain competitive viability, and elevate overall corporate performance.
=== Categorization by Organizational Function === Tools can be segmented based on the internal department or operational aspect they address, such as planning mechanisms, workflow tools, data recording systems, personnel management utilities, decision support mechanisms, and control instrumentation.
When classifying by general function, key areas emerge:
- Mechanisms for data capture and integrity verification across all operational units.
- Systems dedicated to monitoring and enhancing operational processes.
- Platforms for aggregating information and facilitating high-level decision-making.
Technological evolution has dramatically reshaped the landscape of management tools over the last decade. This rapid pace creates complexity in selecting optimal solutions. The driving forces are persistent cost reduction mandates, the imperative to maximize revenue, the necessity of deeply understanding client needs, and the requirement to deliver tailored products rapidly. Consequently, effective management demands a strategic approach to tool adoption and customization, rather than merely adopting the latest trending technology without adaptation. Misaligned implementation frequently leads to operational instability.
== Predominant Toolset (2013 Survey Insights) == A 2013 analysis by Bain & Company highlighted global usage patterns, reflecting regional economic demands and market statuses. The leading ten tools identified were:
- Strategic Planning Frameworks
- Customer Relationship Management (CRM) Systems
- Employee Feedback Surveys
- Benchmarking Methodologies
- Balanced Scorecards
- Core Competency Identification
- Outsourcing Strategies
- Organizational Change Management Programs
- Supply Chain Optimization
- Mission/Vision Statement Development and Market Segmentation, alongside Total Quality Management (TQM).
== Enterprise Software Applications == Software solutions deployed by business users to execute various corporate functions are termed business software. These applications are designed to augment productivity, accurately measure output metrics, and streamline diverse organizational tasks.
The progression moved from foundational Management Information Systems (MIS) to extensive Enterprise Resource Planning (ERP) suites, subsequently integrating CRM capabilities. The modern trajectory sees these integrated packages migrating toward cloud-based management platforms. While a direct correlation exists between IT investment and organizational success, two factors are critical differentiators: the proficiency of the deployment process and the judicious selection and tailored fit of the chosen instruments.
