Discord Py SelfCAUTION
comprehensive Discord selfbot MCP server using discord.py-self
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
discord-py-self-mcp
comprehensive discord selfbot mcp server for full user autonomy.
<video src="https://github.com/user-attachments/assets/d7d9fc9f-c466-49c0-a666-05bed2fa8ca9 " controls preload="auto" width="100%" style="border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); max-width: 800px;">
quick start
this is a local mcp server (stdio transport). your mcp client spawns it as a process, and you provide secrets (like DISCORD_TOKEN) via the client's env/environment config.
manual run:
DISCORD_TOKEN="your_discord_token_here" python3 -m discord_py_self_mcp.main
important: automating user accounts is against the Discord ToS. use this at your own risk.
overview
discord-py-self-mcp acts as a bridge between your ai assistant (Claude Code, OpenCode, Codex, etc) and your personal discord account. unlike standard bots, this "selfbot" runs as you; allowing your ai to read your dms, reply to friends, manage your servers, and interact with buttons/menus just like a human user.
built on the discord.py-self library by dolfies.
quick installation
paste this into your llm agent session:
Install and configure discord-selfbot-mcp by following the ins
0ee4227cf176OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add discord-selfbot-mcp -- npx -y [email protected]
Trust audit
CAUTIONgrade B · trust 88/100 Install with care. The audit found things worth knowing before you trust its output.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | WARN |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (2 observation(s))
- Shell
- declared (5 observation(s))
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (13)
console.log(`Token found: ${maskSecret(token)}`);console.log(JSON.stringify(generateConfig(token), null, 2));
.releaserc.json
This exposes the MCP endpoint at `http://127.0.0.1:7781/mcp`. The listener is
assert security.allowed_origins == ["http://127.0.0.1", "http://127.0.0.1:*"]
assert security.allowed_origins == ["http://127.0.0.2", "http://127.0.0.2:*"]
payload = base64.b64decode(encoded_settings, validate=True)
destination.write_bytes(base64.b64decode(item["content_base64"]))
return PreloadedUserSettings.FromString(base64.b64decode(payload["settings"])), payload
playwright, @semantic-release/changelog, @semantic-release/exec, @semantic-release/git, semantic-release
mcp, python-dotenv, playwright, hcaptcha-challenger, audioop-lts, camoufox, tls-client, httpx
showcase.mp4
Gates applied: no_behavioural_pass.
0ee4227cf176full audit observations/trust-audit/mcp-server/microck__discord-py-self.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 0ee4227cf176 | CAUTION | B | 88 | first audit |
Questions
What is the Discord Py Self MCP server?
comprehensive Discord selfbot MCP server using discord.py-self
Is Discord Py Self safe to connect to an agent?
With care. The audit graded it B (88/100) and found 13 things worth knowing before you trust this server, listed below with the exact line each was found on.
What credentials does Discord Py Self need?
It reads DISCORD_TOKEN and GEMINI_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Discord Py Self run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as discord-selfbot-mcp at 1.8.1.
How current is this page?
The grade is for one exact copy of the source (0ee4227cf176), read on 2026-10-08. The repository is watched and re-audited when it changes.