MD

microck/discord.py-self-mcp

浏览器自动化

本页由 AI 翻译,技术细节请以原文为准。 查看原文

73 stars 13 forks 质量 80 趋势 22MIT

综合Discord selfbot MCP服务器,使用 discord.py-self

概览

全面的Discord Selfbot MCP服务器,实现用户完全自主权。 这是一个本地MCP服务器(Stdio传输)。你的MCP客户端作为进程生成它,你通过客户端的环境/环境配置提供秘密(比如DISCORD_TOKEN)。 自动化用户账户违反了Discord服务条款。使用此内容需自行承担风险。 discord-py-self-mcp 充当你的 AI 助手(Claude Code、OpenCode、Codex 等)与个人 Discord 账户之间的桥梁。与标准机器人不同,这个“自我机器人”以你为代言运行;允许你的 AI 阅读你的私信、回复朋友、管理服务器,并像人类用户一样操作按钮/菜单。 基于Dolfies的 discord.py 自建库。 : - Python 3.10+ - UV(推荐)或 PIP - : libffi-dev(或 libffi-devel),python-dev(例如 python3-dev) 默认包含语音依赖(PyNaCl)。在Linux上,确保先安装系统包。 NPM 包是一个包装器,使用了底层的 Python 实现。

概述(AI 翻译)

Discord-py-self-mcp

全面的Discord Selfbot MCP服务器,实现用户完全自主权。


快速开始

这是一个本地MCP服务器(STDIO传输)。你的MCP客户端作为进程生成它,你通过客户端的env/environment配置提供秘密(比如DISCORD_TOKEN。

手动运行:

重要: 自动化用户账户违反了Discord服务条款。请自行承担风险。


概述

discord-py-self-mcp 充当你的 AI 助手(Claude Code、OpenCode、Codex 等)与个人 Discord 账户之间的桥梁。与标准机器人不同,这个“自我机器人”以你为代言运行;允许你的 AI 阅读你的私信、回复朋友、管理服务器,并像人类用户一样操作按钮/菜单。

基于Dolfies的 discord.py 自建库。


快速安装

把这段内容粘贴到你的大型语言模型代理会话中:

NPM(推荐)


手动安装

先修条件:

  • Python 3.10+
  • uv(推荐)或pip
  • 语音支持(仅限Linux):libffi-dev(或[libffi-devel)、python-dev(例如python3-dev)

安装:

注意:语音依赖(PyNaCl)默认包含。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

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 instructions here:
https://raw.githubusercontent.com/Microck/discord.py-self-mcp/refs/heads/master/INSTALL.md

npm (recommended)

npm install -g discord-selfbot-mcp
discord-selfbot-mcp-setup

manual installation

prerequisites:

  • python 3.10+
  • uv (recommended) or pip
  • voice support (linux only): libffi-dev (or libffi-devel), python-dev (e.g. python3-dev)

install:

uv tool install git+https://github.com/Microck/discord.py-self-mcp.git
# or
pip install git+https://github.com/Microck/discord.py-self-mcp.git

note: voice dependencies (PyNaCl) are included by default. on linux, ensure system packages are installed first.


npm installation (node.js wrapper)

prerequisites:

  • node.js 18+
  • python 3.10+

install:

npm install -g discord-selfbot-mcp

the npm package is a wrapper that uses the underlying python implementation.


how it works (setup wizard)

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "discord-py-self": { "command": "discord-selfbot-mcp", "env": { "DISCORD_TOKEN": "${DISCORD_TOKEN}" } } } }