discord-rag

discord-rag is a skill for Claude Code, Codex from sandraschi/discord-mcp. It costs 0 tokens per session (432 once invoked), scanned A, original, MIT.

A search system for finding messages in Discord history by meaning, not only by exact words. Discord is a chat service where messages are grouped into channels.

In plain words
What is it for?
Use it to import channel messages into a local searchable database, then find relevant messages with their channel, author, timestamp, and content.
Why use it?
It makes older discussions easier to find when you remember the topic but not the precise wording used in the messages.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to import channel messages into a local searchable database, then find relevant messages with their channel, author, timestamp, and content.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sandraschi/discord-mcp/discord-rag
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sandraschi/discord-mcp --skill discord-rag
Clone the repo
git clone --depth 1 https://github.com/sandraschi/discord-mcp

Made for: Claude Code, Codex.

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 discord-rag

README.md
[![agentmods](https://agentmods.dev/badge/skills/sandraschi/discord-mcp/discord-rag/github.svg)](https://agentmods.dev/skills/sandraschi/discord-mcp/discord-rag)
Your own site
<a href="https://agentmods.dev/skills/sandraschi/discord-mcp/discord-rag"><img src="https://agentmods.dev/badge/skills/sandraschi/discord-mcp/discord-rag/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for discord-rag

Your own site · 80×15
<a href="https://agentmods.dev/skills/sandraschi/discord-mcp/discord-rag"><img src="https://agentmods.dev/badge/skills/sandraschi/discord-mcp/discord-rag.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 432 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00000 $0.00432
Opus 5 $0.00000 $0.00216
Sonnet 5 $0.00000 $0.00086
Haiku 4.5 $0.00000 $0.00043

Measured 11d ago against content hash 82bccebbcd67, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

discord-rag 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 11d 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.

mcpb/src/discord_mcp/skills/discord-rag/SKILL.md · 44 lines

What it actually says

Discord RAG Skill

Overview

Retrieval-Augmented Generation over Discord message history. Ingest channel messages into a local LanceDB vector database, then search semantically — find messages about a topic even when the exact words don't match.

How It Works

  1. rag_ingest(channel_id, limit=50) fetches recent messages, generates embeddings via sentence-transformers (all-MiniLM-L6-v2), and stores them in LanceDB at data/discord_lancedb.
  2. rag_query(query_text, top_k=10) finds the top_k most semantically similar messages and returns them with channel name, author, and timestamp.

Data persists across restarts. You can use different table_name values to organize data from different channels or servers.

Workflow

1. Ingest Messages

discord(operation="rag_ingest", channel_id="...", limit=100)

Start with a reasonable limit (50-100 messages). Larger ingests take longer due to embedding generation.

2. Search

discord(operation="rag_query", query_text="discussion about deployment", top_k=10)

Prefer narrow, specific queries for best results.

3. Act on Results

The returned messages include channel_id, author, timestamp, and the message content. From here you can:

  • Use get_messages to fetch the full thread context
  • Use send_message to respond in the same channel
  • Use export_messages to archive the discussion

Tips

  • Ingest separate channels into separate tables by setting table_name="..." — this keeps contexts clean.
  • The first ingest call loads the embedding model (takes ~5-10s). Subsequent queries are fast.
  • RAG requires sentence-transformers and its dependencies (installed via uv sync --extra rag).
  • Data is local-only. No external API calls are made during ingest or query.

Env Dependencies

  • LANCEDB_DISCORD_PATH — Override LanceDB storage path (default: data/discord_lancedb).
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. 11d ago First seen · 44 lines · 0 tokens per session scan A 82bccebbcd67

Subscribe to this mod's changes

discord-rag is a skill published in the GitHub repository sandraschi/discord-mcp (2 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 432 tokens. 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 skills, from other repositories

graph-retrieval

Exposes graph-based retrieval as a tool capability via querygraph. Reads normalized graph store files, builds a query-relevant subgraph, and returns LLM-friendly semantic triples with replayable evidence metadata.

study8677/repobrain · 46 tokens

knowledge-layer

High-level deployment wrapper over RepoBrain core with graph-first knowledge injection and all-file support. Exposes refreshfilesystem and askfilesystem for building and querying the knowledge graph.

study8677/repobrain · 42 tokens

opik-evaluate

Build an LLM evaluation and run it against your app, returning an experiment with scores. Covers datasets, LLM judges, RAG evaluation, synthetic data, error analysis, and validating evaluators against human labels. Use when the user wants to measure or improve AI product quality, or asks about evals, judges, or…

comet-ml/opik-mcp · 73 tokens

haiku-rag

Search, read and compute over the user's haiku.rag knowledge base through the haiku-rag MCP tools. Use whenever a request could be answered from the user's ingested documents, when asked to find, look up, check or cite something in their documents or knowledge base, or when the question is about the user's own…

ggozad/haiku.rag · 76 tokens

local-rag-search

Efficiently perform web searches using the mcp-local-rag server with semantic similarity ranking. Use this skill when you need to search the web for current information, research topics across multiple sources, or gather context from the internet without using external APIs. This skill teaches effective use of…

nkapila6/mcp-local-rag · 80 tokens

setup

Configure the Qdrant Power after installation. Use this skill for missing uvx, missing environment variables, unapproved environment variables, unavailable Qdrant tools, "Failed to connect" errors, and setup requests.

qdrant/mcp-server-qdrant · 45 tokens