How to connect Discord MCP with Cursor

How to integrate Discord MCP with Cursor Cursor is one of the leading AI-powered code editors. It is built to help developers write, understand, and refactor code faster with AI assistance built directly into the editor. And in this guide, I will explain the easiest and most secure way to connect your Discord account to Cursor via Composio Connect, so it can list all Discord servers I belong to, show your connected accounts on Discord, fetch your Discord profile information, and more without ever putting your account credentials at risk.

Discord logoDiscord
Oauth2

Discord is a real-time messaging and VoIP platform for communities and teams. It lets users chat, share media, and collaborate across public and private channels.

27 Tools1 Triggers

How to integrate Discord MCP with Cursor

Cursor is one of the leading AI-powered code editors. It is built to help developers write, understand, and refactor code faster with AI assistance built directly into the editor.

And in this guide, I will explain the easiest and most secure way to connect your Discord account to Cursor via Composio Connect, so it can list all Discord servers I belong to, show your connected accounts on Discord, fetch your Discord profile information, and more without ever putting your account credentials at risk.

Also integrate Discord with

Why Composio?

  • 1,000+ SaaS toolkits out of the box. Skip the work of building and maintaining integrations, Composio gives you instant access to a vast catalog of pre-built connectors.
  • One MCP server for every app. Connect any of your applications on demand through a single endpoint, rather than juggling a separate server for each app.
  • Smart, context-aware tool loading. Unlike traditional MCP servers that dump every available tool into the LLM context window, Composio searches for and loads only the tools relevant to the task at hand. A remote CLI workbench lets LLMs compose these tools into workflows for complex automation.

Connect Discord to Cursor

Two ways to install — pick whichever you prefer.

1. Install with one click

Click the button below to add Composio to Cursor.

Install in Cursor

2. Or add manually

Add to your Cursor mcp.json

Open .cursor/mcp.json in your project root (or ~/.cursor/mcp.json for global config) and add the following configuration:

bash
{
  "servers": {
    "composio": {
      "type": "http",
      "url": "https://connect.composio.dev/mcp"
    }
  }
}

3. Authorize

Restart Cursor, then click "Connect" next to Composio in MCP Tools settings.

Cursor MCP Tools settings with Connect button next to Composio

A browser window will open to authorize.

Composio authorization browser window

Connect your Discord account

Back in Cursor, ask the agent to connect to Discord or give it any Discord-related task.

For example, ask it to:

  • "List all Discord servers I belong to"
  • "Show your connected accounts on Discord"
  • "Fetch your Discord profile information"

It will prompt you to authenticate and authorize access to Discord.

That is it. Composio tools are now available in Cursor, and your Discord account is ready to use.

Conclusion

You have successfully connected Discord to Cursor using Composio Connect. Your agent can now use Discord securely without exposing credentials in prompts or local scripts.

TOOLS & TRIGGERS

Supported Tools and Triggers

Every Discord action and event your agent gets out of the box.

Consume Entitlement

Marks a one-time purchase consumable entitlement as consumed for a given application.

Delete Test Entitlement

Deletes a currently active test entitlement for a given application.

Delete User Application Role Connection

Deletes the current user's application role connection for the specified application.

Edit Application Command Permissions

Edits the permissions for a specific application command in a guild.

Get Application Command Permissions

Retrieves the permissions for a specific application command in a guild.

Get Batch Application Command Permissions

Retrieves permissions for all commands of an application in a guild.

Get Current User Application Entitlements

Tool to retrieve entitlements for the current user for a given application.

Get Gateway

Tool to retrieve a valid WebSocket (wss) URL for establishing a Gateway connection to Discord.

Get Guild Template

Tool to retrieve information about a Discord guild template using its unique template code.

Get Guild Widget

Tool to retrieve the guild widget in JSON format.

Get Guild Widget PNG

Tool to retrieve a PNG image widget for a Discord guild.

Get my guild member

Retrieves the guild member object for the currently authenticated user within a specified guild, including roles, nickname, join date, and permissions.

Get my OAuth2 authorization

Retrieves current OAuth2 authorization details for the application, including app info, scopes, token expiration, and user data (contingent on scopes like 'identify').

Get My User

Fetches comprehensive profile information for the currently authenticated Discord user, including email if the 'email' scope is granted.

Get OpenID Connect userinfo

Retrieve OpenID Connect compliant user information for the authenticated user.

Get Public Keys

Tool to retrieve Discord OAuth2 public keys.

Get SKU Subscription

Retrieves a specific subscription by ID for a given SKU.

Get User

Retrieve information about a Discord user.

Get User Application Role Connection

Retrieves the application role connection for the currently authenticated user for a specified application.

Resolve Invite

Tool to resolve and retrieve information about a Discord invite code.

Leave Guild

Leaves a Discord guild (server) on behalf of the currently authenticated user.

List My Connections

Retrieves a list of the authenticated user's connected third-party accounts on Discord.

List My Guilds

Lists the current user's guilds, returning partial data for each; primarily used for displaying server lists or verifying memberships.

List SKU Subscriptions

Lists all subscriptions for a given SKU.

List Sticker Packs

Tool to retrieve all available Discord Nitro sticker packs.

Modify Current User

Modifies the currently authenticated Discord user's profile.

Update User Application Role Connection

Updates the application role connection for the currently authenticated user for a specified application.

FAQ

Frequently asked questions

With a standalone Discord MCP server, the agents and LLMs can only access a fixed set of Discord tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Discord and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. Cursor fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Discord tools.

Yes, absolutely. You can configure which Discord scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Discord data and credentials are handled as safely as possible.

Start with Discord.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Discord tool your agent needs.Free to start.

Start building