Omnicord
Gives your AI assistant full control of a Discord server: 148 tools for chat, moderation, automod, events, and administration, up to building a complete community server from one paragraph. Every destructive action previews first and waits for your confirmation.
README
Omnicord
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 Omnicord
npm install
npm run build
node dist/index.js init
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 to a gitignored .env, 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;
anything else gets a snippet to paste.
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.
What it can do
| Area | Examples |
|---|---|
| Server building | Plan and execute a full server build from a brief: roles, categories, channels, permissions, in one additive operation. Save, diff, and rebuild layouts as blueprints. |
| Messaging | Send, edit, pin, react, polls, scheduled messages, DMs, webhooks. |
| Reading | Channel history, search, members, roles, permissions, audit log. |
| Moderation | Timeouts, kicks, bans, bulk actions, prune, all preview first. |
| AutoMod | Discord's server side filters: keyword rules, Discord maintained preset lists (slurs, profanity), spam and mention flood limits. |
| Real time | Subscribe to live server events and ask "what did I miss?" |
| Structure | Channels, categories, permission overwrites, reordering, cloning. |
| Community | Events, stages, threads, forums, invites, welcome screen, onboarding. |
| Expression | Emojis, stickers, soundboard sounds. |
| Diagnostics | Setup 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.
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/mcp
node 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
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 build -t omnicord .
docker run -d -p 3414:3414 \
-e DISCORD_TOKEN=your-bot-token \
-e OMNICORD_HTTP_TOKEN=a-strong-secret \
omnicord
Or with compose, after exporting the two secrets: docker compose up -d.
Configuration
Environment variables, or a .env file next to package.json:
| Variable | What it does |
|---|---|
DISCORD_TOKEN |
The bot token. Required for anything real; the server boots without it and the diagnostics explain what to fix. |
OMNICORD_GUILD |
Optional default server ID so tools can omit the guild parameter. |
OMNICORD_SAFE_MODE |
Default on. Destructive tools preview first and require a confirm token; set to false only for trusted automation. |
OMNICORD_GATEWAY |
Default 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_DATA_DIR |
Where 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_PORT |
HTTP port, default 3414. |
OMNICORD_HTTP_HOST |
HTTP bind address, default 127.0.0.1. |
OMNICORD_HTTP_TOKEN |
Bearer token for HTTP mode. Required to bind beyond localhost. |
OMNICORD_HTTP_ORIGINS |
Comma separated browser origins allowed to call the HTTP endpoint. Empty means none. |
Client config for stdio (Claude Desktop and compatible):
{
"mcpServers": {
"omnicord": {
"command": "node",
"args": ["/absolute/path/to/dist/index.js"]
}
}
}
No token goes in the client config; the server reads .env from its own
package root regardless of what directory the client spawns it from.
Documentation
| Doc | What is in it |
|---|---|
| Getting started | Setup in a few minutes, wizard or by hand. |
| Connecting AI clients | Exact config for Claude Desktop, Claude Code, Cursor, Windsurf, ChatGPT, and anything else. |
| Self-hosting | HTTP transport, Docker, and the security model for networked deployments. |
| Troubleshooting | Common problems and their fixes. |
| Security whitepaper | Plain language: what Omnicord can and cannot touch, for whoever decides whether to install it. |
| SECURITY.md | The engineering level threat model and audit findings. |
| Tool catalog | The full contract of all 148 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, gate
node scripts/smoke.mjs # stdio protocol session, no token needed
node scripts/smoke-http.mjs # HTTP transport, sessions, auth, security gates
node 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.
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. While the
major version is 0 the tool surface may still shift between minor
versions; 1.0.0 marks the public launch. The version in package.json
flows everywhere automatically: the MCP server identity, the health
endpoint, and the wizard.
Built by Orygn LLC. Security reports: security@orygn.tech.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。