Skip to main content
Glama
DRE MCP Server
by studioKjm

DRE — Domain Reverse Engineering

CI npm version

Analyze the business and domain side of a reference site, platform, or product: business model, positioning, marketing, ads, tech stack, financials, and pricing history — with evidence and explicit uncertainty on every claim. The business-side counterpart to REA, which covers the technical side.

Status: pre-release. 12 MCP tools built and tested; AC-008 (independent accuracy benchmark, self-labeled by an independent subagent with no access to DRE's own reports) currently scores 87.4%, passing the 85% target — see .harness/ouroboros/evaluations/ for the full history and docs/adr.yaml for the design decisions behind each feature.

Install

npx dre-agents setup

Auto-detects installed agents (Claude Code, Cursor, Gemini CLI, Codex, Grok Build) and registers the DRE MCP server with each. Open a new session and the tools below appear automatically.

Options:

  • npx dre-agents setup --agent=claude,cursor,gemini,codex,grok — skip detection, target specific agents (or --agent=all)

  • npx dre-agents setup --project — register Claude Code/Cursor/Grok Build for the current project only (default: all projects; Gemini CLI and Codex are user-scope only)

Related MCP server: Brand Intelligence MCP

Tools

Tool

What it does

Blocking resistance

analyze_company

pricing + terms + tech stack + ads in one call, from just a domain

—

collect_pricing

plan/price text; auto-discovers the pricing page from a home URL

archive.org fallback on bot blocks

collect_terms

billing/refund passages, following same- and cross-origin links

medium

collect_appstore

iOS/Play in-app purchase listings

high

collect_techstack

frameworks, CMS, payment/analytics scripts from headers+HTML

very high (can't be blocked without breaking the page)

collect_ad_library

Google Ads Transparency Center ad counts

high (Google only — Meta is excluded, see below)

collect_financials

SEC EDGAR revenue/net income, plus revenue-by-segment (e.g. subscription/ads) when the 10-K discloses it

high (free, no key)

collect_financials_kr

DART (Korean FSS) revenue/net income

high (free, needs your own API key)

collect_price_history

pricing over time via archive.org snapshots

— (REA has no equivalent)

collect_jobs

open postings via Greenhouse/Lever

very high

collect_structured_data

schema.org Organization/Product JSON-LD (employee count, founding date, price)

very high (SEO markup — breaking it hurts the site's own search results)

submit_report

validates and saves a claim-based report

—

Principles

  1. Only directly observed facts are labeled observed; the rest is inferred or estimated.

  2. Estimates are ranges with stated assumptions, never single numbers.

  3. Works with public sources and your own LLM key (BYOK). No paid data required.

  4. DRE never bypasses robots.txt, bot/CAPTCHA detection, or login walls — see docs/adr.yaml ADR-004/005 for why (and why Meta's ad library is deliberately not covered: facebook.com's robots.txt specifically disallows ClaudeBot).

  5. DRE never calls an LLM or search engine itself. When a collector is blocked, the calling agent may supplement with its own research, but must mark it source: "agent" and inferred/estimated — never observed (ADR-003).

Examples

See examples/ for two real runs: a golden-path analysis (Notion) and an honest collection failure (a CAPTCHA-blocked site) — showing what DRE reports when it's blocked instead of silently returning nothing or faking a result.

Claim schema

Each claim has type (observed | inferred | estimated), confidence, evidence[] (each with an optional source: "dre" | "agent"), assumptions[]. Revenue-model labels are a fixed taxonomy with precise definitions — see packages/core/src/labels.ts and packages/core/src/schema.ts.

Develop

npm install
npm test
node packages/cli/dist/index.js eval reports benchmarks/gold   # AC-008 accuracy check
node packages/cli/dist/index.js analyze <domain>                # raw collector output (JSON); DRE
                                                                  # itself never labels claims (ADR-003)
                                                                  # — for a labeled report, call the
                                                                  # analyze_company MCP tool from an agent
npm run mutation   # Stryker mutation testing — packages/core only, see CONTRIBUTING.md

To rebuild the publishable dre-agents bundle after changing any package:

cd packages/dre-agents && npm run build

Optional environment variables

  • DRE_DART_API_KEY — free key from opendart.fss.or.kr, enables collect_financials_kr

  • DRE_SEC_USER_AGENT — your own "org contact@email" string for SEC EDGAR (recommended over the default)

  • DRE_CHROME_PATH — Chrome/Chromium path, for JS-rendered pages (collect_pricing with js: true)

  • DRE_ALLOW_PRIVATE_NETWORK=1 — local dev/testing only; disables the SSRF guard

Contributing

See CONTRIBUTING.md for dev setup, the harness gates CI enforces, and how to add a collector. Security issues: SECURITY.md. Changes: CHANGELOG.md.

Roadmap

  • Done: pricing/terms/appstore/techstack/ad-library/financials(US+KR)/price-history/jobs/ structured-data collectors, analyze_company orchestrator, npm packaging, multi-agent setup (Claude Code/ Cursor/Gemini CLI/Codex/Grok Build), CI (7 harness gates + build/test on Node 20/22)

  • Next: traffic/CPC/CTR/CVR/ROAS scenario estimates (user-supplied external API keys, stated assumptions — see non_goals in .harness/ouroboros/seeds/seed-v1.yaml for what DRE deliberately does not do)

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      Provides AI agents with tools to detect Shopify apps, WordPress plugins, DNS/email/SaaS footprint, and estimate SaaS spend for competitive intelligence and vendor research.
      -
    • A
      license
      Not graded
      quality
      F
      maintenance
      Provides domain and brand intelligence for AI agents, including company enrichment, tech stack detection, and brand research from free public sources with an on-demand cache.
      MIT
    • A
      license
      Not graded
      quality
      F
      maintenance
      Provides real-time website audits, lead scoring, tech-stack detection, and local-business search for AI agents doing sales outreach and competitor research.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Domain and company intelligence for AI agents. Enables vetting companies, qualifying leads, and mapping targets from free public data without API keys.
      6
      1
      MIT