Discord MCP Server
for AI Agents
Connect your AI agent to StackOne's Discord MCP server and give it 81 MCP tools out of the box. Auth, tool execution, and security all managed.
Coverage
81 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 81 pre-built actions, fully extensible via the Connector Builder — plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.
All Discord MCP Tools
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. Requires OAuth2 — does not work with bot token.
- Update Current User Application Role Connection
Updates and returns the application role connection for the user. Requires OAuth2 — does not work with bot token.
Guild Channels
- Create Guild Channel
Create a new channel object for the guild
- List 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. Requires OAuth2 — does not work with bot token alone.
- 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
- List Guild Bans
Returns a list of ban objects for the users banned from this guild
Guild Roles
- List 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
Channels
- Get Channel
Get a channel by ID
- Delete Channel
Delete a channel or close a private message
Reactions
- Create Reaction
Create a reaction for a message
- List Reactions
Get a list of users that reacted with this emoji
Channel Invites
- Create Channel Invite
Create a new invite object for the channel
- List Channel Invites
Returns a list of invite objects for the channel
Thread Members
- 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
Auto Moderation Rules
- 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
Guild Scheduled Events
- 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
Channel Messages
- Get Channel Messages
Get messages from a channel
- Get Channel Message
Get a specific message in a channel
Other (41)
- Create DM
Create a new DM channel with a user
- Create Message
Send a message to a channel
- Get Current User
Returns the user object of the requester's account
- Get User
Returns a user object for a given user ID
- List 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
- List 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 Guild
Returns the guild object for the given id
- Get Guild Preview
Returns the guild preview object for the given id
- List 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
- List Guild Integrations
Returns a list of integration objects for the guild
- Get Guild Onboarding
Returns the Onboarding object for the guild
- 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 Guild Scheduled Event Users
Get users subscribed to a scheduled event
- Get Invite
Get an invite by code
- Delete Channel Permission
Delete a channel permission overwrite for a user or role
- 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
- Modify Current User
Modify the requester's user account settings
- Leave Guild
Leave a guild
- Modify Guild
Modify a guild's settings
- Modify Current Member
Modifies the current member in a guild
- Bulk Update Guild Role Positions
Modify the positions of a set of role objects for the guild
- Modify Channel
Update a channel's settings
- 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 Guild Emoji
Modify an existing guild emoji
- Modify Application Emoji
Modify an existing application emoji
- Edit Message
Edit a previously sent message
- Bulk Delete Messages
Delete multiple messages in a single request
Set Up Your Discord MCP Server in Minutes
One endpoint. Any framework. Your agent is talking to Discord in under 10 lines of code.
Agent Frameworks
{
"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>"
]
}
}
}Platform Resources
MCP Code Mode: Keeping Tool Responses Out of Agent Context
Anthropic's code_execution processes data already in context. Custom MCP code mode keeps raw tool responses in a sandbox. 14K tokens vs 500.
11 min
Comparing BM25, TF-IDF, and Hybrid Search for MCP Tool Discovery
Benchmarking BM25, TF-IDF, and hybrid search for MCP tool discovery across 916 tools. The 80/20 TF-IDF/BM25 hybrid hits 21% Top-1 accuracy in under 1ms.
10 min
Indirect Prompt Injection Defense for MCP Tools: A Technical Guide
MCP tools that read emails, CRM records, and tickets are indirect prompt injection vectors. Here's how we built a two-tier defense that scans tool results in ~11ms.
12 min
MCP vs A2A: Architecture, Security, and When to Use Each
MCP vs A2A: what each protocol standardizes, how they differ, their shared security risks including indirect prompt injection, and when to use one, both, or a hybrid architecture.
12 min
MCP vs API: What 200+ Connector Builds Taught Us
MCP wraps APIs, it doesn't replace them. After building 200+ connectors that serve both, here's when each approach wins.
14 min read
Discord MCP Server FAQ
Does StackOne have a Discord MCP server?
Discord MCP server vs direct API integration — what's the difference?
How does Discord authentication work for AI agents?
origin_owner_id.Are Discord MCP tools vulnerable to prompt injection?
What is the context bloat of a Discord agent and how do I avoid it?
Can I limit which actions my Discord agent can access?
Can I create custom agent actions for my Discord MCP server?
When should I NOT use a Discord MCP server?
What AI frameworks and AI clients does the StackOne Discord MCP server support?
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.