Omnicord

io.github.OrygnsCode由 GitHub 帳號 OrygnsCode 發布v1.4.1更新於 Oct 24, 2026

Discord server management MCP for AI agents: chat, moderation, admin, and full server building.

已驗證STDIO僅桌面效率與工作流溝通與協作

概覽

AI 產生的概覽

讓 AI 助理透過你自己的機器人全面管理 Discord 伺服器的 MCP 伺服器,涵蓋聊天、審核、管理與整站建置。

可以做什麼
  • 建置與重建伺服器:角色、分類、頻道、權限,並可存成藍圖重複套用
  • 傳送與管理訊息:編輯、置頂、轉發、表情回應、投票、排程訊息、私訊、Webhook、元件版面
  • 讀取伺服器資料:頻道歷史、訊息全文搜尋、成員、角色、權限、稽核日誌
  • 管理成員:禁言、踢出、封鎖、批次操作、清理訊息、突襲鎖定,以及 AutoMod 過濾規則
  • 管理結構與社群功能:頻道排序與複製、活動、舞台、討論串、論壇、邀請、歡迎畫面與新手導引、表情與貼圖
  • 訂閱即時伺服器事件,並執行設定檢查、權限說明等診斷
適用情境
適合想讓助理依一段簡短需求建置或經營 Discord 社群,或代為處理日常訊息、審核與伺服器管理、省去在 Discord 介面逐項操作的情況。也適合用一套安裝管理多個機器人、每個伺服器一個機器人的團隊。
執行需求
以 npm 套件形式在本機透過 stdio 執行,需要 Node 20 或更新版本以及 Discord 帳號。Discord 機器人權杖透過 DISCORD_TOKEN 環境變數提供,通常由初始化精靈寫入本機 .env 檔案;OMNICORD_GUILD 為選用,用於設定預設伺服器 ID。機器人需要開啟設定時所選的特殊 intent 與邀請權限。另有選用的 HTTP 模式與 Docker 映像供自架使用。
安裝前請注意
機器人權杖可對伺服器進行廣泛控制,應避免寫入用戶端設定或共用檔案。刪除、封鎖、踢出、禁言、批次操作等破壞性操作會先回傳預覽與一次性確認權杖,但將 OMNICORD_SAFE_MODE 設為 false 會關閉這道確認。助理可以傳送、編輯、刪除訊息並變更權限,確認前請核對預覽。HTTP 模式以 OMNICORD_HTTP_TOKEN 保護機器人存取,未設定時不得綁定到 localhost 以外。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Omnicord,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Omnicord

Discord server management MCP for AI agents.

[CI] [npm] [Glama score] [License: Elastic 2.0] [Node] [MCP]

Omnicord is an MCP server that gives your AI assistant full operational control of a Discord server. Day to day chat, moderation, administration, and at the top end: building out an entire community server from a one paragraph brief.

You describe what you want. Your AI decides how to do it. Omnicord makes sure it happens correctly, and that nothing destructive happens without your say so.

How it works

Your AI client (Claude Desktop, Cursor, Windsurf, Claude Code, or any other MCP client) is the brain. Omnicord is the hands: it talks to Discord through your own bot, enforces Discord's rules before they bite, queues politely behind rate limits, and gates every destructive action behind a preview you confirm. There is no LLM inside Omnicord and no cloud service behind it. Your bot token stays in a file on your machine.

Quick start

You need Node 20 or newer and a Discord account. One command:

npx @orygn/omnicord init

Or from source:

git clone https://github.com/OrygnsCode/Omnicord.git && cd Omnicordnpm installnpm run buildnode dist/index.js init

Prefer to watch? Here is the full setup, start to finish:

[Omnicord setup walkthrough]

This walkthrough is a little dated now, but the core steps still apply. A fuller, updated walkthrough is planned.

The wizard goes from a bare Discord application to a working setup in about a minute. It takes the bot token with input hidden, verifies it live against Discord, checks the privileged intent toggles and waits while you fix any that are off, generates an invite link at the permission level you pick, saves the token locally (a gitignored .env for a source checkout, or .omnicord/.env in your user folder for an npx or global install), and writes the omnicord entry into your AI client's config (backing the file up first). Claude Desktop (including the Microsoft Store build), Cursor, Windsurf, and project level Claude Code are detected automatically, even before you have set up MCP in them; anything else gets a snippet to paste. It only adds the omnicord entry and never overwrites the rest of the file.

Then fully restart your AI client and ask it:

run a setup check on my Discord bot

Eight checks, plain English results, and the exact fix for anything that is wrong.

To update later, run npx @orygn/omnicord@latest init and choose Re-register with your AI client. Your bots and settings carry over.

What it can do

AreaExamples
Server buildingPlan and execute a full server build from a brief: roles, categories, channels, permissions, in one additive operation. Save, diff, and rebuild layouts as blueprints.
MessagingSend, edit, pin, forward, react, polls, scheduled messages, DMs, webhooks, and rich Components V2 layouts for rules and welcome panels.
ReadingChannel history, full-text message search, members, roles, permissions, audit log.
ModerationTimeouts, kicks, bans, bulk actions, and prune, all preview first, plus raid lockdown to pause invites and DMs.
AutoModDiscord's server side filters: keyword rules, Discord maintained preset lists (slurs, profanity), member profile checks, spam and mention flood limits.
Real timeSubscribe to live server events and ask "what did I miss?"
StructureChannels, categories, permission overwrites, reordering, cloning, voice channel status.
CommunityEvents (one-off or recurring), stages, threads, forums, invites, welcome screen, onboarding.
ExpressionEmojis, stickers, soundboard sounds.
DiagnosticsSetup check, bot info, rate limit status, permission explainers.

The full contract for every tool is in the tool catalog.

The safety model

Destructive operations (deleting, banning, kicking, timeouts, bulk actions) never execute on the first call. They return a human readable preview and a confirmation token bound to that exact action; repeating the call with the token executes it. Tokens are single use and expire after two minutes. Moderation additionally preflights Discord's hierarchy rules, owner protection, and self protection before the gate, so the failure mode is an explanation rather than a 403.

This is enforced by Omnicord itself, not by the model's judgment. A confused or compromised AI session cannot skip the gate.

Multiple bots

Omnicord can drive several bots from one install, one per server. Point it at a server and it uses the bot that is actually in that server, so a test bot and a real bot, or a separate bot per community, sit side by side without swapping tokens. Set it up by answering the wizard's "how many bots" prompt, or by hand in a bots.json. Destructive previews name the acting bot so a misrouted action is caught before it runs. A single DISCORD_TOKEN is unchanged and never sees any of this. Full details in Multiple bots.

Running it

Stdio, the default, for desktop MCP clients:

node dist/index.js

Streamable HTTP, for remote capable clients and self hosting:

node dist/index.js --http              # 127.0.0.1:3414/mcpnode dist/index.js --http --port 8080

A bot token sits behind the HTTP endpoint, so the defaults are strict: binding beyond localhost without OMNICORD_HTTP_TOKEN refuses to start, bearer auth is compared in constant time, browser origins are rejected unless allowlisted, and the Host header is validated in loopback mode to close DNS rebinding. Details in self-hosting.

Docker

A published image is on Docker Hub (orygn/omnicord), or you can build your own. The image runs the HTTP transport as a non root user with the container health check wired to the health endpoint. It binds beyond loopback, so it requires OMNICORD_HTTP_TOKEN and exits with a clear message without one. The token never lives in the image; everything arrives through the environment at runtime.

docker run -d -p 3414:3414 \  -e DISCORD_TOKEN=your-bot-token \  -e OMNICORD_HTTP_TOKEN=a-strong-secret \  orygn/omnicord

To build it yourself instead: docker build -t omnicord .. Or with compose, after exporting the two secrets: docker compose up -d.

Configuration

Environment variables, or a .env file (the wizard writes one for you; source checkouts use .env next to package.json, npx and global installs use .omnicord/.env in your user folder). Multiple bots are configured in a bots.json in the same directory; see Multiple bots.

VariableWhat it does
DISCORD_TOKENThe bot token. Required for anything real; the server boots without it and the diagnostics explain what to fix.
OMNICORD_GUILDOptional default server ID so tools can omit the guild parameter.
OMNICORD_TOOLSWhich tool groups to load. Unset loads all 155. See Toolsets.
OMNICORD_SAFE_MODEDefault on. Destructive tools preview first and require a confirm token; set to false only for trusted automation.
OMNICORD_GATEWAYDefault on when a token is set: the bot shows as online and real time event subscriptions work. Set to off for REST only operation.
OMNICORD_HOMEOptional. One directory to hold .env, bots.json, and saved data. Defaults to the package root for a source checkout, .omnicord in your user folder for an installed copy.
OMNICORD_DATA_DIRWhere saved blueprints and scheduled messages live. Default: .omnicord next to package.json for a source checkout, .omnicord in your user folder for an installed copy.
OMNICORD_PORTHTTP port, default 3414.
OMNICORD_HTTP_HOSTHTTP bind address, default 127.0.0.1.
OMNICORD_HTTP_TOKENBearer token for HTTP mode. Required to bind beyond localhost.
OMNICORD_HTTP_ORIGINSComma separated browser origins allowed to call the HTTP endpoint. Empty means none.

Client config for stdio (Claude Desktop and compatible):

json
{  "mcpServers": {    "omnicord": {      "command": "node",      "args": ["/absolute/path/to/dist/index.js"]    }  }}

No token goes in the client config. The server finds .env and bots.json no matter where the client spawns it from: it checks OMNICORD_HOME if set, then the current directory, then the package root, then .omnicord in your user folder, and a real environment variable overrides all of them.

Documentation

DocWhat is in it
Getting startedSetup in a few minutes, wizard or by hand.
Multiple botsRunning several bots, one per server, from one install.
Connecting AI clientsExact config for Claude Desktop, Claude Code, Cursor, Windsurf, ChatGPT, and anything else.
Self-hostingHTTP transport, Docker, and the security model for networked deployments.
TroubleshootingCommon problems and their fixes.
Security whitepaperPlain language: what Omnicord can and cannot touch, for whoever decides whether to install it.
SECURITY.mdThe engineering level threat model and audit findings.
Tool catalogThe full contract of all 155 tools.

The docs are written to be read by AI assistants too: paste a page at your AI and have it walk you through.

Omnicord is also listed on the official MCP registry, Smithery, and Docker Hub.

Tests

node scripts/unit.mjs        # pure logic: resolver, permissions, planner, gatenode scripts/smoke.mjs       # stdio protocol session, no token needednode scripts/smoke-http.mjs  # HTTP transport, sessions, auth, security gatesnode scripts/acceptance.mjs  # live end-to-end against a real test server

The acceptance suite needs DISCORD_TOKEN and OMNICORD_GUILD pointing at a disposable test server, and cleans up after itself. scripts/smoke-docker.mjs builds and verifies the container image and needs a running Docker daemon.

The unit and smoke suites need no Discord token, so you can watch the confirmation gate block a destructive call, and then let it through only with the token, before you trust this server with a bot of your own.

Contributing

Bug reports and pull requests are welcome. CONTRIBUTING.md covers the layout, the test suites, the conventions, and the one hard rule: any tool that deletes content, removes access, punishes a member, or fans a change out across many entities must go through the confirmation gate. The project follows the Contributor Covenant.

License

Omnicord is source available under the Elastic License 2.0. In plain terms: anyone may read, use, modify, and self host it freely, including businesses running their own communities. The one thing the license forbids is offering Omnicord to third parties as a hosted or managed service. The code is public so it can be audited; it is not up for resale as a service.

Versioning

Semantic versioning, tracked in CHANGELOG.md. 1.0.0 marked the public launch; releases since follow semver, and the npm badge above shows the current version. The version in package.json flows everywhere automatically: the MCP server identity, the health endpoint, and the wizard.

Built by Orygn LLC. Security reports: [email protected].

來源:README.md,提交 98ed053

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v1.4.1最新Oct 18, 2026
  2. v1.4.0Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。