DiscordMCP: Instructions file for Claude Code

CLAUDE.md

DiscordMCP CLAUDE.md is an instructions file for Claude Code from Rastrian/DiscordMCP. It costs 2,198 tokens per session, scanned A, original, Apache-2.0.

Project instructions for a Discord MCP platform, which connects AI clients to authorised Discord bots and server automation.

In plain words
What is it for?
They guide work on user identity, server context, workspace connections, bot installation and configuration, permissions, and authorised automation.
Why use it?
They define the platform's identity, approved Discord and OAuth methods, audit expectations, and behaviours that must not be built.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md.

This is Rastrian/DiscordMCP's own configuration. It tells Claude Code how to work on DiscordMCP itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything DiscordMCP configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Rastrian/DiscordMCP. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Rastrian/DiscordMCP/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/Rastrian/DiscordMCP

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for DiscordMCP CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rastrian/discordmcp/claude-md.svg)](https://agentmods.dev/instructions/rastrian/discordmcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/rastrian/discordmcp/claude-md"><img src="https://agentmods.dev/badge/instructions/rastrian/discordmcp/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,198 This file is loaded in full into every session.
When invoked 2,198 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02198 $0.02198
Opus 5 $0.01099 $0.01099
Sonnet 5 $0.00440 $0.00440
Haiku 4.5 $0.00220 $0.00220

Measured 2d ago against content hash 46ccb872589a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

DiscordMCP CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 425 lines

How it starts

The opening of the file, as written. The whole thing — 425 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Discord MCP Platform — Claude Project Instructions

Project Identity

Project name: discord-mcp-platform

Working description:

A multi-server Discord MCP control plane that allows users to connect their Discord identity, install/configure Discord bots, and manage Discord server automation through MCP-compatible AI clients.

This project is a Discord MCP because it exposes Discord operations as Model Context Protocol tools, resources, and prompts.

The product must use official Discord bot and OAuth2/application flows.

Core Framing

Users do not connect their Discord account so the system can control the account.

Users connect their Discord account so the platform can:

  • identify them;
  • discover relevant guild context when permitted;
  • verify whether they should be allowed to manage a guild;
  • connect them to workspaces;
  • authorize bot installation/configuration flows;
  • audit actions performed through MCP clients.

Actual Discord automation must be executed through authorized Discord bot accounts or official webhooks.

Strict Non-Goals

Do not implement self-bot behavior.

Do not use Discord user tokens.

Do not ask a user to paste their Discord token.

Do not automate a normal Discord user account.

Do not send messages as a personal Discord user.

Do not read user DMs by imitating a user.

Do not use browser automation to control Discord.

Do not bypass Discord permissions, rate limits, OAuth scopes, gateway restrictions, or API limits.

Do not build spam, raid, mass-DM, invite-spam, reaction-spam, or stealth-monitoring tools.

Product Goal

Build a platform where a user can say, through an MCP-capable AI client:

  • "Create a support channel in my server."
  • "Summarize the last 100 messages in #general."
  • "Create a moderation bot for #support."
  • "Post this announcement in #updates."
  • "Create a private incident thread and invite moderators."
  • "Create an automation that answers FAQs and escalates unresolved questions."
  • "List users with the Trial Member role."
  • "Draft a moderation warning for this message."

Read the full file on GitHub · 425 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · +11 lines · +185 tokens per session 46ccb872589a
  2. 6d ago First seen · 414 lines · 2,013 tokens per session scan A badea6b2945d

Subscribe to this mod's changes

DiscordMCP CLAUDE.md is an instructions file published in the GitHub repository Rastrian/DiscordMCP (8 stars, last pushed yesterday), licensed Apache-2.0. It adds 2,198 tokens to every session, about $0.0110 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens