dns-security-mcp: Instructions file for Claude Code

CLAUDE.md

dns-security-mcp CLAUDE.md is an instructions file for Claude Code from badchars/dns-security-mcp. It costs 444 tokens per session, scanned A, original, MIT.

Repository instructions for a Bun and Node.js MCP server that provides DNS security information through tools for checks such as DNSSEC, hijacking, tunneling, typosquatting, email security, and certificates.

In plain words
What is it for?
Use them when adding or changing DNS analysis tools, tool schemas, external lookups, protocol registration, or security-related server behavior.
Why use it?
They set architecture and safety rules for a large tool collection, including strict TypeScript, optional API keys, caching, rate limits, and free data sources.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is badchars/dns-security-mcp's own configuration. It tells Claude Code how to work on dns-security-mcp 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 dns-security-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to badchars/dns-security-mcp. 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/badchars/dns-security-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/badchars/dns-security-mcp

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 dns-security-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/badchars/dns-security-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/badchars/dns-security-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/badchars/dns-security-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/badchars/dns-security-mcp/claude-md/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 dns-security-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/badchars/dns-security-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/badchars/dns-security-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 444 This file is loaded in full into every session.
When invoked 444 The same file — it is already loaded in full.
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.00444 $0.00444
Opus 5.5 $0.00178 $0.00178
Sonnet 5.5 $0.00089 $0.00089
Haiku 4.5 $0.00044 $0.00044

Measured 1mo ago against content hash 0ff269bd0d91, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dns-security-mcp 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 1mo 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 · 35 lines

What it actually says

dns-security-mcp — DNS Security Intelligence MCP Server

Overview

103-tool MCP server for DNS security intelligence: DNSSEC validation, hijacking detection, DNS tunneling analysis, typosquatting, email security (SPF/DKIM/DMARC), certificate transparency, blocklist checking, infrastructure audit, DNS privacy testing.

Architecture

  • Runtime: Bun 1.3.9+ (dev), Node.js (publish)
  • Dependencies: @modelcontextprotocol/sdk, zod, dns-packet
  • Transport: stdio only
  • Pattern: Each category in own directory under src/, tools registered in src/protocol/tools.ts

Key Rules

  • TypeScript strict mode, English code/comments
  • Node.js built-ins: node:dns/promises, node:tls, node:https, node:net, node:dgram, node:crypto
  • dns-packet for raw DNS wire-format encoding/decoding (AXFR, DNSSEC, custom queries)
  • Every tool schema field must have .describe()
  • API keys always optional — graceful fallback when missing
  • Rate limiter + TTL cache for external API calls
  • Import paths use .js extension (ESM)
  • Free APIs only: crt.sh (CT logs), RDAP (WHOIS), DNSBL via DNS, URLhaus
  • Optional: SECURITYTRAILS_API_KEY, VIRUSTOTAL_API_KEY, SAFEBROWSING_API_KEY

Categories (13)

dns (12), dnssec (8), email (9), hijack (9), tunnel (7), ct (7), domain (10), typo (8), blocklist (6), infra (9), privacy (6), threat (7), report (5)

Commands

bun install          # Install deps
bun run dev          # Dev mode (watch)
bun run build        # Build for npm
bun run src/index.ts --help   # CLI help
bun run src/index.ts --list   # List all tools
bun run src/index.ts --tool <name> '<json>'  # Run single tool
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. 1mo ago First seen · 35 lines · 444 tokens per session scan A 0ff269bd0d91

Subscribe to this mod's changes

dns-security-mcp CLAUDE.md is an instructions file published in the GitHub repository badchars/dns-security-mcp (9 stars, last pushed 1mo ago), licensed MIT. It adds 444 tokens to every session, about $0.0018 per session on Opus 5.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