Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Discord Selfbot MCP

MCP server by Microck Verified · npm:discord-selfbot-mcp

Lets an AI assistant act through a personal Discord account to read DMs, send messages and manage servers. It is aimed at users who want an assistant to run their own account. The source warns that automating user accounts breaks Discord's terms of service.

  • Score 77
  • 81 stars
  • 76 a week
  • MIT
  • Updated

Install Discord Selfbot MCP

Built from the published package, never by AI.

claude mcp add discord-selfbot-mcp -- npx -y discord-selfbot-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Discord Selfbot MCP in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the discord-selfbot-mcp block.

About

Discord Selfbot MCP is a local MCP server that connects an AI assistant such as Claude Code, OpenCode or Codex to a personal Discord account. It runs as the user rather than as a bot, so the assistant can read DMs, reply to friends, manage servers and use buttons, menus and modals. It runs over stdio by default, with an optional Streamable HTTP transport on localhost, and the token is passed through the client's env config.

The project is built on discord.py-self and offers tools for messages, channels, roles, permissions, threads, slash commands and server folders. An npm package wraps the Python implementation and includes a setup wizard that can extract a token from a browser session. It suits developers who want an AI assistant to manage their own Discord account, and the source warns that automating user accounts is against Discord's terms.

Written from the project's README and checked against it.

Tools it gives your assistant

  • send_messageSends a message to a Discord channel.
  • read_messagesReads messages from a channel.
  • list_dm_channelsLists open 1:1 and group DM channels, with an optional name filter.
  • list_unread_dmsLists unread direct messages.
  • send_slash_commandInvokes an application command in a channel or DM.
  • click_buttonClicks a button and reports any modal it opens.
  • submit_modalSubmits field values for a pending modal.
  • list_rolesReturns every role as JSON, sorted highest-first.
  • analyze_server_sidebarReturns the folder layout and a summary of each server.
  • create_threadCreates a thread in a channel.

What you need

  • A Discord user token (DISCORD_TOKEN)
  • Python 3.10 or newer
  • Node.js 18 or newer for the npm wrapper
  • uv or pip for the Python install
  • libffi-dev and python-dev for voice support on Linux

Try asking

  • List my unread Discord DMs and summarize them.
  • Find the DM with Alex and send them a reminder message.
  • Analyze my server sidebar and suggest folder groupings.

Good to know

  • Automating user accounts is against Discord's terms of service; use at your own risk.
  • It runs as your personal account, not as a bot.
  • Role edits are limited by your highest role; guild owners are exempt.
  • The HTTP transport listens on localhost by default.

Security check

B
  • Runs a script automatically when the package is installedIn package.json: "postinstall":

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Discord Selfbot MCP

All alternatives →

Compare with Jitsu, Vexa or Linkedin MCP server

Discord Selfbot MCP: common questions

Does it run as a bot account?

No. The source says it runs as your personal account, a selfbot, so the assistant acts as you.

Is it safe to use with Discord?

The source warns that automating user accounts is against Discord's terms of service and that use is at your own risk.

Can I run it over HTTP instead of stdio?

Yes. Start it with --transport streamable-http, which exposes an endpoint at /mcp on localhost by default.

How do I install Discord Selfbot MCP?

In Claude Code run claude mcp add discord-selfbot-mcp -- npx -y discord-selfbot-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Discord Selfbot MCP the official server?

Discord Selfbot MCP is published by npm:discord-selfbot-mcp from its verified domain in the official MCP Registry.

Is Discord Selfbot MCP free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Discord Selfbot MCP safe to use?

It scores 77 of 100. Grades: maintenance A, licence A, quality B. Security check: grade B (runs a script automatically when the package is installed). Review the code before you install. How grades work.

What are alternatives to Discord Selfbot MCP?

Similar MCP servers: Jitsu, Vexa, Linkedin MCP server, Netsapiens MCP.

Does Discord Selfbot MCP work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Discord Selfbot MCP Install

Add to stack

Loading.