Atlas / MCP servers / microck / Discord Py Self

Discord Py SelfCAUTION

mcp/microck/discord-py-self

comprehensive Discord selfbot MCP server using discord.py-self

Verdict
CAUTION
Grade
B
Trust score
88 /100
Exposed tools
—
Transport
stdio · streamable-http
License
MIT
Stars
71
01

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
Read from source at commit 0ee4227cf176OBSERVED · 2026-10-08
02

Connect

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-code (npm)
claude mcp add discord-selfbot-mcp -- npx -y [email protected]
03

Trust audit

CAUTIONgrade B · trust 88/100 Install with care. The audit found things worth knowing before you trust its output.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeWARN
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (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)

MEDIUMInformation disclosure · disclose.log_secret · CWE-209, CWE-532
setup-wizard.js:198
console.log(`Token found: ${maskSecret(token)}`);
MEDIUMInformation disclosure · disclose.log_secret · CWE-209, CWE-532
setup-wizard.js:257
console.log(JSON.stringify(generateConfig(token), null, 2));
LOWInventory / provenance · inv.hidden_file · CWE-1104
.releaserc.json
.releaserc.json
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
README.md:184
This exposes the MCP endpoint at `http://127.0.0.1:7781/mcp`. The listener is
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
tests/test_main.py:55
assert security.allowed_origins == ["http://127.0.0.1", "http://127.0.0.1:*"]
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
tests/test_main.py:63
assert security.allowed_origins == ["http://127.0.0.2", "http://127.0.0.2:*"]
LOWObfuscation / stealth · obf.decode_call · CWE-506, CWE-94
discord_py_self_mcp/tools/folders.py:60
payload = base64.b64decode(encoded_settings, validate=True)
LOWObfuscation / stealth · obf.decode_call · CWE-506, CWE-94
scripts/dcli.py:243
destination.write_bytes(base64.b64decode(item["content_base64"]))
LOWObfuscation / stealth · obf.decode_call · CWE-506, CWE-94
tests/test_folders.py:50
return PreloadedUserSettings.FromString(base64.b64decode(payload["settings"])), payload
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
playwright, @semantic-release/changelog, @semantic-release/exec, @semantic-release/git, semantic-release
Why it matters. 5 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
requirements.txt
mcp, python-dotenv, playwright, hcaptcha-challenger, audioop-lts, camoufox, tls-client, httpx
Why it matters. 14 requirement(s) not pinned with ==
Fix. pin exact versions
LOWInventory / provenance · mcp.no_tools_extracted · CWE-1104
server.json
Why it matters. the tool list is enumerated at runtime by tools/list, not declared in source
Fix. the page says so rather than showing an empty table
INFOInventory / provenance · inv.oversize · CWE-1104
showcase.mp4
showcase.mp4
Why it matters. 20030235 bytes not read

Gates applied: no_behavioural_pass.

Audited 2026-10-08 · audit v0.4.1 · source sha 0ee4227cf176full audit observations/trust-audit/mcp-server/microck__discord-py-self.json · Report an issue / request a re-scan
04

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-080ee4227cf176CAUTIONB88first audit
05

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.

Advertisement