Skip to main content

Announcing StackOne Defender: leading open-source prompt injection guard for your agent Read More

Discord MCP Server
for AI Agents

Production-ready Discord MCP server with 145 extensible actions — plus built-in authentication, security, and optimized execution.

Discord logo
Discord MCP Server
Built by StackOne StackOne

Coverage

145 Agent Actions

Create, read, update, and delete across Discord — and extend your agent's capabilities with custom actions.

Authentication

Agent Tool Authentication

Per-user OAuth in one call. Your Discord MCP server gets session-scoped tokens with zero credentials stored on your infra.

Agent Auth →

Security

Agent Protection

Every Discord tool response scanned for prompt injection in milliseconds — 88.7% accuracy, all running on CPU.

Prompt Injection Defense →

Performance

Max Agent Context. Min Cost.

Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Discord call.

Tools Discovery →

What is the Discord MCP Server?

A Discord MCP server lets AI agents read and write Discord data through the Model Context Protocol — Anthropic's open standard for connecting LLMs to external tools. StackOne's Discord MCP server ships with 145 pre-built actions, fully extensible via the Connector Builder — plus managed authentication, prompt injection defense, and optimized agent context. Connect it from MCP clients like Claude Desktop, Cursor, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.

All Discord MCP Tools and Actions

Every action from Discord's API, ready for your agent. Create, read, update, and delete — scoped to exactly what you need.

Current User Application Role Connections

  • Get Current User Application Role Connection

    Returns the application role connection for the user

  • Update Current User Application Role Connection

    Updates and returns the application role connection for the user

Guilds

  • Get Guild

    Returns the guild object for the given id

  • Delete Guild

    Delete a guild permanently

Guild Channels

  • Create Guild Channel

    Create a new channel object for the guild

  • Get Guild Channels

    Returns a list of guild channel objects

Guild Members

  • Add Guild Member

    Adds a user to the guild using an OAuth2 access token

  • List Guild Members

    Returns a list of guild member objects that are members of the guild

  • Search Guild Members

    Returns a list of guild member objects whose username or nickname starts with a provided string

  • Get Guild Member

    Returns a guild member object for the specified user

  • Remove Guild Member

    Remove a member from a guild (kick)

Guild Bans

  • Create Guild Ban

    Create a guild ban and optionally delete previous messages

  • Get Guild Bans

    Returns a list of ban objects for the users banned from this guild

  • Get Guild Ban

    Returns a ban object for the given user

  • Remove Guild Ban

    Remove the ban for a user

Guild Roles

  • Create Guild Role

    Create a new role for the guild

  • Get Guild Roles

    Returns a list of role objects for the guild

  • Get Guild Role

    Returns a role object for the specified role

  • Delete Guild Role

    Delete a guild role

Guild Member Roles

  • Add Guild Member Role

    Adds a role to a guild member

  • Remove Guild Member Role

    Removes a role from a guild member

Guild Integrations

  • Get Guild Integrations

    Returns a list of integration objects for the guild

  • Delete Guild Integration

    Delete the attached integration object for the guild

Channels

  • Get Channel

    Get a channel by ID

  • Delete Channel

    Delete a channel or close a private message

Channel Messages

  • Get Channel Messages

    Get messages from a channel

  • Get Channel Message

    Get a specific message in a channel

Messages

  • Create Message

    Send a message to a channel

  • Delete Message

    Delete a message

Reactions

  • Create Reaction

    Create a reaction for a message

  • Get Reactions

    Get users who reacted with an emoji

Channel Invites

  • Create Channel Invite

    Create a new invite object for the channel

  • Get Channel Invites

    Returns a list of invite objects for the channel

Thread Members

  • Add Thread Member

    Adds another member to a thread

  • Get Thread Member

    Returns a thread member object for the specified user if they are a member of the thread

  • List Thread Members

    Returns array of thread members objects that are members of the thread

  • Remove Thread Member

    Removes another member from a thread

Group DM Recipients

  • Add Group DM Recipient

    Adds a recipient to a Group DM using their access token

  • Remove Group DM Recipient

    Removes a recipient from a Group DM

Auto Moderation Rules

  • Create Auto Moderation Rule

    Create a new auto moderation rule

  • Get Auto Moderation Rule

    Get a single auto moderation rule

  • Delete Auto Moderation Rule

    Delete an auto moderation rule

Guild Emojis

  • Create Guild Emoji

    Create a new emoji for the guild

  • List Guild Emojis

    Get a list of emojis for the guild

  • Get Guild Emoji

    Get a specific emoji from the guild

  • Delete Guild Emoji

    Delete a guild emoji

Application Emojis

  • Create Application Emoji

    Create a new emoji for the application

  • List Application Emojis

    Get a list of emojis for the application

  • Get Application Emoji

    Get a specific emoji from the application

  • Delete Application Emoji

    Delete an application emoji

Entitlements

  • List Entitlements

    Get all entitlements for the application

  • Get Entitlement

    Get a specific entitlement

Test Entitlements

  • Create Test Entitlement

    Create a test entitlement for testing premium features

  • Delete Test Entitlement

    Delete a test entitlement

Guild Scheduled Events

  • Create Guild Scheduled Event

    Create a new scheduled event for the guild

  • List Guild Scheduled Events

    Get all scheduled events for a guild

  • Get Guild Scheduled Event

    Get a specific scheduled event

  • Delete Guild Scheduled Event

    Delete a scheduled event

Guild Templates

  • Create Guild Template

    Create a new template for the guild

  • Get Guild Template

    Get a guild template by code

  • Get Guild Templates

    Get all templates for a guild

  • Sync Guild Template

    Sync template to guild's current state

  • Delete Guild Template

    Delete a guild template

Invites

  • Get Invite

    Get an invite by code

  • Delete Invite

    Delete an invite

Lobbys

  • Create Lobby

    Create a new lobby

  • Get Lobby

    Get a lobby by ID

  • Delete Lobby

    Delete a lobby

Other (77)

  • Create DM

    Create a new DM channel with a user

  • Create Group DM

    Create a new group DM channel with multiple users

  • Add Member To Lobby

    Add a user to a lobby

  • Get Current User

    Returns the user object of the requester's account

  • Get User

    Returns a user object for a given user ID

  • Get Current User Guilds

    Returns a list of partial guild objects the current user is a member of

  • Get Current User Guild Member

    Returns a guild member object for the current user

  • Get Current User Connections

    Returns a list of connection objects

  • Get Current Application

    Returns the application object associated with the requesting bot user

  • Get Application Role Connection Metadata Records

    Returns a list of application role connection metadata objects for the given application

  • Get Application Activity Instance

    Returns a serialized activity instance if it exists

  • Get Guild Preview

    Returns the guild preview object for the given id

  • Get Guild Invites

    Returns a list of invite objects for the guild

  • List Active Guild Threads

    Returns all active threads in the guild

  • Get Guild Role Member Counts

    Returns a map of role IDs to member counts

  • Get Guild Prune Count

    Returns the number of members that would be removed in a prune operation

  • Get Guild Voice Regions

    Returns a list of voice region objects for the guild

  • Get Guild Widget Settings

    Returns a guild widget settings object

  • Get Guild Widget

    Returns the widget for the guild

  • Get Guild Vanity URL

    Returns a partial invite object for guilds with that feature enabled

  • Get Guild Widget Image

    Returns a PNG image widget for the guild

  • Get Guild Welcome Screen

    Returns the Welcome Screen object for the guild

  • Get Guild Onboarding

    Returns the Onboarding object for the guild

  • Get Pinned Messages

    Returns all pinned messages in the channel

  • List Public Archived Threads

    Returns archived threads in the channel that are public

  • List Private Archived Threads

    Returns archived threads in the channel that are private

  • List Joined Private Archived Threads

    Returns archived threads in the channel that are private, and the user has joined

  • Get Guild Audit Log

    Returns an audit log object for the guild

  • List Auto Moderation Rules For Guild

    Get a list of all rules currently configured for the guild

  • List SKUs

    Get all SKUs for the application

  • Get Guild Scheduled Event Users

    Get users subscribed to a scheduled event

  • Get Invite Target Users

    Get users allowed to accept this invite

  • Get Invite Target Users Job Status

    Check the status of target users processing job

  • Get Channel Pins

    Get pinned messages in a channel

  • Delete Own Reaction

    Delete a reaction the current user made

  • Delete User Reaction

    Delete another user's reaction

  • Delete All Reactions

    Delete all reactions on a message

  • Delete All Reactions For Emoji

    Delete all reactions for a specific emoji

  • Delete Channel Permission

    Delete a channel permission overwrite for a user or role

  • Remove Member From Lobby

    Remove a user from a lobby

  • Modify Current User

    Modify the requester's user account settings

  • Leave Guild

    Leave a guild

  • Edit Current Application

    Edit properties of the app associated with the requesting bot user

  • Modify Guild

    Modify a guild's settings

  • Modify Guild Member

    Modify attributes of a guild member

  • Modify Guild Role

    Modify a guild role

  • Modify Current Member

    Modifies the current member in a guild

  • Bulk Guild Ban

    Ban up to 200 users from a guild

  • Modify Guild Role Positions

    Modify the positions of a set of role objects for the guild

  • Begin Guild Prune

    Begin a prune operation

  • Modify Guild Widget

    Modify a guild widget settings object for the guild

  • Modify Guild Welcome Screen

    Modify the guild's Welcome Screen

  • Modify Guild Onboarding

    Modifies the onboarding configuration of the guild

  • Modify Guild Incident Actions

    Modifies the incident actions of the guild

  • Modify Channel

    Update a channel's settings

  • Edit Message

    Edit a previously sent message

  • Bulk Delete Messages

    Delete multiple messages in a single request

  • Pin Message

    Pin a message in a channel

  • Unpin Message

    Unpin a message in a channel

  • Trigger Typing Indicator

    Post a typing indicator for the specified channel

  • Start Thread From Message

    Creates a new thread from an existing message

  • Start Thread Without Message

    Creates a new thread that is not connected to an existing message

  • Join Thread

    Adds the current user to a thread

  • Leave Thread

    Removes the current user from a thread

  • Edit Channel Permissions

    Edit the channel permission overwrites for a user or role

  • Follow Announcement Channel

    Follow an announcement channel to send messages to a target channel

  • Modify Auto Moderation Rule

    Modify an existing auto moderation rule

  • Modify Guild Emoji

    Modify an existing guild emoji

  • Modify Application Emoji

    Modify an existing application emoji

  • Consume Entitlement

    Mark a consumable entitlement as consumed

  • Modify Guild Scheduled Event

    Modify an existing scheduled event

  • Modify Guild Template

    Modify a guild template's metadata

  • Modify Lobby

    Modify a lobby

  • Leave Lobby

    Leave a lobby as current user

  • Link Channel To Lobby

    Link a text channel to a lobby

  • Unlink Channel From Lobby

    Unlink any linked channels from a lobby

  • Crosspost Message

    Crosspost a message to following channels

Set Up Your Discord MCP Server in Minutes

One endpoint. Any framework. Your agent is talking to Discord in under 10 lines of code.

MCP Clients

Agent Frameworks

Claude Desktop
{
  "mcpServers": {
    "stackone": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://api.stackone.com/mcp?x-account-id=<account_id>",
        "--header",
        "Authorization: Basic <YOUR_BASE64_TOKEN>"
      ]
    }
  }
}

More Communication MCP Servers

Basecamp

118+ actions

Webex

100+ actions

SendGrid

99+ actions

Braze

98+ actions

Mailgun

81+ actions

JustCall

73+ actions

Freshdesk

71+ actions

Discord MCP Server FAQ

Discord MCP server vs direct API integration — what's the difference?
A Discord MCP server and direct API integration serve different use cases. Direct API integration is for software-to-software — backend code calling Discord. A Discord MCP server is for AI agents — MCP clients like Claude and Cursor, plus framework agents built with OpenAI, LangChain, or Vercel AI — discovering and calling Discord at runtime. StackOne provides both.
How does Discord authentication work for AI agents?
Discord authentication for AI agents works through a StackOne Connect Session. Create one via the dashboard or the SDK — you get an auth link and ready-to-paste config for Claude Desktop, Cursor, and other MCP clients. Your user authenticates their own Discord account; StackOne handles token exchange, storage, and refresh. Credentials never reach the LLM, and each user is isolated via origin_owner_id.
Are Discord MCP tools vulnerable to prompt injection?
Yes — Discord MCP tools can be vulnerable to indirect prompt injection. Any tool that reads user-written content — documents, messages, tickets, records, or free-text fields — is a potential vector. StackOne Defender scans every tool response before it enters the agent's context — regex patterns in ~1ms, then a MiniLM classifier in ~4ms. 88.7% accuracy, CPU-only.
What is the context bloat of a Discord agent and how do I avoid it?
Context bloat happens when Discord tool schemas and API responses eat your Discord agent's memory, preventing it from reasoning effectively. A single Discord query can return a massive JSON response, and connecting multiple tools compounds the problem. Tools Discovery and Code Mode reduce context bloat — loading only relevant tools per query and keeping raw responses out of the agent's context.
Can I limit which actions my Discord agent can access?
Yes — you can limit which actions your Discord agent can access directly from the StackOne dashboard. Toggle actions on or off, or restrict them to specific accounts, with no code changes to your agent. Session tokens can be scoped to exact actions so if one leaks, exposure stays contained.
Can I create custom agent actions for my Discord MCP server?
Yes — you can create custom agent actions for your Discord MCP server using Connector Builder. It's an integration agent your coding assistant (Claude Code, Cursor, or Copilot) can invoke to research Discord's API, generate production-ready connector YAML, test against the live API, and validate before you ship.
When should I NOT use a Discord MCP server?
Skip a Discord MCP server if your integration is purely software-to-software — direct Discord API integration is simpler when no AI agent is involved. For deterministic, compliance-critical operations (financial transactions, regulatory reporting), direct API gives you predictable behavior without agent-driven decision-making. MCP shines when AI agents need to dynamically discover and call Discord actions at runtime.
What AI frameworks and AI clients does the StackOne Discord MCP server support?
The StackOne Discord MCP server supports both. MCP clients (paste-and-go apps): Claude Desktop, Claude Code, Cursor, VS Code, Goose. Agent frameworks (code SDKs you build with): OpenAI Agents SDK, Anthropic, Vercel AI, Google ADK, CrewAI, Pydantic AI, LangChain, LangGraph, Azure AI Foundry.

Put your AI agents to work

All the tools you need to build and scale AI agent integrations, with best-in-class connectivity, execution, and security.