Trademark Screen

v0.11.7
com.trademarkscreen/trademark-clearance-mcp Checked 2 days ago Published 27 days ago

Screen a brand name against the USPTO federal register — sound, class, live status, risk verdict.

Live: https://trademarkscreen.com — free USPTO screen with watches + email alerts. A fast first-pass screen of a brand name against the USPTO federal register, inside an assistant, with plain-English risk reasoning. This tool screens. It does not clear. Real clearance is subtle: likelihood of confusion turns on sound, appearance, meaning / commercial impression, relatedness of goods, and the strength of the other mark — plus common-law use and state registrations that are not in the federal database at all. This server scores sound + appearance + class relatedness from federal data only.

Summary extracted from the README.

trademark-clearance-mcp — v0.6.14

Live: https://trademarkscreen.com — free USPTO screen with watches + email alerts.

A fast first-pass screen of a brand name against the USPTO federal register, inside an assistant, with plain-English risk reasoning.

This tool screens. It does not clear. Real clearance is subtle: likelihood of confusion turns on sound, appearance, meaning / commercial impression, relatedness of goods, and the strength of the other mark — plus common-law use and state registrations that are not in the federal database at all. This server scores sound + appearance + class relatedness from federal data only. It cannot assess commercial impression, fame, or unregistered use.

Get a trademark attorney for a full clearance before investing in a brand, filing ($350/class base fee in 2026), or launching. A clear screen here does not mean a name is safe to use or register.

Competition — and the edge

USPTO's own Trademark Search at tmsearch.uspto.gov is free. Paid tools — Corsearch, Markify, Trademarkia — already serve this market. The edge here is not the search itself. It is the AI-native workflow: plain-English explanations, related-class reasoning, phonetic/visual similarity, and a quick screen inside an assistant ("ask Claude if this name is risky") instead of a separate search UI.

Data — what works, what doesn't

  • Search: Trademark Search public backend, keyless. The UI at tmsearch.uspto.gov calls POST https://tmsearch.uspto.gov/prod-stage-v1-0-0/tmsearch with an Elasticsearch body. The versioned URL is discovered from /configuration.json at runtime. Verified live 2026-11-02: DUSKTUNE → 0 hits, NIKE → 170, APPLE → 4,186. This is NOT a published stable developer API. USPTO can change the path or add a WAF challenge at any time. Treat results as candidates and label the source + as-of date.
  • Status hydration: TSDR, free key required. USPTO_TSDR_API_KEY from https://account.uspto.gov/api-manager/ (a different key from the ODP patent key). Without a key TSDR returns 401 — verified 2026-11-02. trademark_status falls back to the Trademark Search record when no key is set, and says so.
  • Data lag: bulk records trail live filings. Every screen carries searchedAt and dataAsOf (max recordLoadDate in the hits). Very recent filings can be missed — check tmsearch.uspto.gov directly before filing.
  • Local ODP index (LIVE on the site since 2026-11-05, v0.6.15, merged to main): the durable fix for the live backend's rate limit (~200–250 queries then a ~25-min IP block). A local SQLite index built from the USPTO Open Data Portal bulk trademark XML — same scoring, only the candidate retrieval changes. LOCAL_INDEX=1 + a non-empty index file switches the screen (and the watch check) to it; otherwise the live backend is used exactly as today. /health reports the active source, the record count, and the newest record date. 12,898,217 marks, newest filing 2026-11-03, updated daily by a systemd timer (05:00 UTC, indexes every listed daily file not yet indexed). Validation: the typo set re-ran 6/6 exact on the local index, identical scores to the live backend. (First flip failed 1/6 — false clears on MICROSOFTT/TESLLA — because the local search returned the oldest matches instead of the closest ones; retrieval rewritten: variant/expansion exact lookups, prefix ranges instead of LIKE, ranked trigram fallback. See HANDOVER.md.)
    • Products (confirmed live via the ODP search endpoint, 2026-11-03): TRTYRAP (Annual Applications, 177 files, ~22.06 GB) is the first-index backfile; TRTDXFAP (Daily Applications, 673 files for all of 2026) supplies the newest daily file for updates.
    • Downloader (scripts/odp/download.mjs) is built around the ODP hard limits: strictly sequential (burst=1), max 5 files per 10s (2s apart), the 302 to the signed URL (5s expiry) followed immediately in the same flow with no key on the signed hop, 429 backoff ≥5s, weekly quota resets Sunday midnight UTC. The 600s first-byte timeout covers slow starts on large files (~125MB average). Raw files are deleted after indexing; only the newest daily file is kept.
    • Load the backfile with scripts/odp/backfill.mjs (download -> index -> delete, one file at a time, resumable); daily updates with scripts/odp/update.mjs (see docs/odp/). Sample validation: scripts/odp/validate.mjs — 16/16 conflicts flagged (recall 100%), 5/5 clear (precision 100%) against the live baseline. Needs a free ODP API key (USPTO.gov account + ID.me + MFA, X-API-KEY header; registered as the custom.uspto-odp connector). The product endpoint is called with includeFiles=true&latest=true and falls back to search (q=<productId>) on a 403 — the bare product call 403s while search works fine with the same key, which is not a key failure.

Free web screen (v0.3.0) — the free launch

Founders won't install an MCP server to check a name. The free product is a web page: GET / — name + what you sell → verdict + closest marks, same scoring as the MCP tool (one implementation in src/screen.ts, so the page can never drift from the MCP result). No signup, no email, no analytics, no cookies. The screen-not-clear warning is on the page itself.

  • API: POST /api/screen {name, goodsDescription, classes?} → same JSON as screen_trademark. No public stats endpoint — usage counts live in data/usage.json on the server only; the home page renders its footer line server-side (counts shown only after 50+ screens, so a new site doesn't advertise tiny numbers).
  • Free limit: 10 screens/day per person (salted daily IP hash, kept in memory only, never stored). 11th call gets 429 + X-RateLimit-* headers.
  • Usage tracking — count-only: data/usage.json stores totals and per-day counts only. No searched names, goods descriptions, or IPs are ever stored. This is the whole measurement plan: free first, see how many people use it, then monetize.
  • Monetization trigger (decided 2026-11-02): 100 screens in the first month, or 20 watches created → build the $39 report checkout. Under 20 screens in a month → portfolio piece, don't build payments. Lots of screens + zero watches → one-time report, not a subscription.
  • Verified live 2026-11-02: GET / serves the page; DUSKTUNE → no conflict (risk 0, classes 9/38/41/42); NIKE → HIGH RISK 1.0, 8 hits, first serial 72414176; rate limit fired exactly on the 11th call (429); usage.json contained counts only, no names. MCP tests still pass after the refactor (test-live.mjs, test-watch.mjs).
  • Not yet public: the server runs locally on :8789. Deploying it to a public URL (Oracle host, or another host) is the next step — the page is ready, it just has no public address yet.

Tools (11)

Tool What it does
screen_trademark Main screen: exact + variant + token search, similarity scoring, class relatedness, live/dead status, plain-English verdict
trademark_status One mark by serial (sn…) / registration (rn…) — TSDR if keyed, else Trademark Search
suggest_classes Nice classes 1–45 for a goods/services description
analyze_name Distinctiveness spectrum, phonetic checks, what common-law/state checks to do next — no live data
compare_marks Two names side-by-side: visual, Jaro-Winkler, phonetic (Soundex), overall score
check_domains (v0.4.0) Domain availability via RDAP — .com/.io/.ai/.co/.app/.dev/.net/.org (or custom TLDs)
check_global_marks (v0.4.0) EU + UK marks via TMview, same scoring — best-effort, degrades gracefully when TMview refuses
request_watch_code (v0.6.1) Send a 6-digit verification code to an email, for watch access — list, stop, or attach an email to a watch
watch_mark Start watching a mark for NEW filings — baseline screen seeds seen serials, only later filings alert. email required (verified first — see request_watch_code)
list_watches (v0.6.1) List your watches, last-checked, alert counts — private to one verified email; no email addresses returned
unwatch_mark Stop watching a mark (a watch with an email needs that email verified first)
check_watches Run a watch check now (all, or one by id) — returns only new filings, plus email send status

Watch service (v0.2.0)

The only part of this product that justifies a subscription. A screen is a one-time job; a watch is ongoing: after you file, someone else can file a confusingly similar name, and you have a short window to oppose it.

  • watch_mark runs a baseline screen and marks everything already on the register as seen. You are not alerted for old marks.
  • check_watches (or npm run watch:check, or POST /watches/check) re-searches and alerts only on serials never seen before with filedDate >= watch start. The filedDate gate matters: tmsearch returns a top-N sample for common words, so "not seen" alone resurrects old marks — verified 2026-11-02, a 1981 NIKE mark false-positived on the first run before the gate was added.
  • Schedule: weekly, Tuesday after the Gazette publishes: 0 9 * * 2 cd /path/to/trademark-clearance-mcp && npm run watch:check State lives in data/watches.json (or $WATCH_FILE). Report goes to data/last-check.json.
  • Email alerts (v0.4.0): watch_mark takes a required email (v0.6.2). When a check finds new hits, the digest is sent via Resend (free tier 3,000 emails/mo, 100/day, permanent). Setup: free Resend account → API key → verify a sending domain → set RESEND_API_KEY and RESEND_FROM (default Trademark Screen <support@trademarkscreen.com> — must be verified in Resend before mail delivers). No key → no email is sent, the check still works, and the watch records lastEmailError. Email is additive, never a dependency. The address is stored only in the watch record itself. A confirmation email with the stop link goes out when a watch is created, on the web and over MCP (v0.6.3).
  • Watch OTP (v0.6.1): a watch list is private to the email on the watches, and an email on a watch must be proven owned before it is attached — same rule on the web page and over MCP (request_watch_code sends a 6-digit code, 10 min, 5 tries; verifying returns a 60-minute session token). No email addresses are ever returned by the MCP watch tools. An email is required on every watch (v0.6.2) — it is the watch's owner. Codes are capped at 10/day per email (v0.6.4), counted in data/rate-limits.json so deploys don't reset the count.
  • Limits: federal register only, data lag, best for distinctive names (DUSKTUNE-like). For very common words (NIKE 170 hits, APPLE 4,186) the top-N sample can still miss a genuinely new filing. A watch alert is a flag to look, not a legal opinion.

Domains + EU/UK signals (v0.4.0)

check_domains / POST /api/domains / web "Domains" card — RDAP (registry's own JSON API, free, no key) across .com/.io/.ai/.co/.app/ .dev/.net/.org. 200 = registered (registrar + dates when given), 404 = available, "unknown" = the TLD has no RDAP service or RDAP was unreachable. Quirk found in testing: Node's fetch (undici) throws "terminated" on RDAP 404s (empty body + abruptly closed socket), while curl and node:https read the same 404 fine — so the RDAP client uses node:https/http directly, with manual redirect following. A free domain does not mean the trademark is clear; a taken domain does not block the trademark. Verified live 2026-11-02: dusktune.com registered (DomainRegistry.com LLC, since 2026-10-29), dusktune.io/.ai/.co/.app/ .dev/.net/.org all available; trademark-screen.com still available.

check_global_marks / POST /api/global / web "Outside the US" card — TMview (EUIPO-operated, offices EM + GB), same similarity × class × status scoring as the US screen. Best-effort by design: TMview has no published API and resets connections from plain HTTP clients — from this VM the warm-up GET returns 200 but the search POST is connection-reset or returns an HTML error page instead of JSON (same pattern found in a September 2026 probe: reachable only from a real browser). When TMview won't answer, the tool returns { checked: false, reason } with a manual TMview link instead of failing, and the US screen is unaffected. The Oracle host may behave differently — test there after deploy. WIPO's Global Brand Database is NOT used (Altcha-CAPTCHA-gated, verified live). EUIPO's eSearch Plus API needs a registered app + identity docs + approval — not wired in; the per-number detail endpoint is tried best-effort to verify EU hits. Verified via a local mock TMview server (real endpoint shape from the September 2026 probe): SUMMRISE → EU SUMRISE 018936322 Registered classes 9/35/42 scores high with class-9 overlap; class-22 SUMORISE scores lower. Live from this VM: checked false, graceful.

Filing is deliberately NOT built: there is no public USPTO filing API, filing needs the applicant's signature + specimens + $350/class fee, and filing on someone's behalf edges into legal work. What can be added later is a filing-prep pack (classes, ID Manual wording, checklist).

Verified live 2026-11-02: DUSKTUNE watch — baseline 0 hits; NIKE watch — baseline 5 hits shown, 100 serials seeded; immediate re-check 0 new; two CLI runs 0 new; duplicate watch rejected; unwatch works.

How risk is scored

Per candidate: overall similarity (visual 45% + Jaro-Winkler 25% + phonetic 30%) × class factor × status factor

  • Class: same class 1.0, related/coordinated class 0.75, unrelated 0.35
  • Status: live + registered 1.0, live pending 0.85, dead 0.25
  • Verdict: ≥0.85 HIGH, ≥0.65 MEDIUM-HIGH, ≥0.45 MEDIUM, ≥0.25 LOW-MEDIUM, else LOW / no conflicting mark found

Verified live 2026-11-02

  • screen_trademark DUSKTUNE / music streaming app → no conflicting federal mark found, classes 9/38/41/42 suggested, coined/arbitrary — strong. Not a clearance.
  • screen_trademark NIKE / clothing → HIGH RISK, 1.0 — live NIKE, Class 25, REGISTERED AND RENEWED, owner Nike, Inc.
  • screen_trademark APPLE / software, Class 9 → HIGH RISK, 1.0 — live APPLE, Class 9, REGISTERED AND RENEWED (after widening the candidate pool from 10 to 30/50 — the first pass missed the Class 9 hit in ES score order, a recall lesson)
  • compare_marks SUMMRISE vs SUMRISE → overall 0.936, Soundex S562 = S562, HIGH — the one-letter / same-sound case
  • trademark_status sn76707023 → NIKE, ABANDONED-FAILURE TO RESPOND, Class 5, dead
  • HTTP: GET /health → {"ok":true,"version":"0.5.2","tsdrKeySet":false,"emailConfigured":true,"watches":0} on :8790; GET / (web screen), POST /api/screen, POST /api/domains, POST /api/global, GET /watches, POST /watches/check also live
  • v0.4.0 (2026-11-02): email alerts (no-key → graceful not-configured; fake key → 401 handled), domains live RDAP (dusktune.com registered, trademark-screen.com available), global via mock TMview (SUMRISE EU hit scores high, class-9 overlap) + live graceful-unavailable from this VM; test-new-features.mjs 17/17 pass; test-live.mjs + test-watch.mjs still pass
  • v0.5.7 (2026-11-02): SEO — canonical + Open Graph + Twitter card + JSON-LD (WebSite + FAQPage) on the home page, a visible FAQ section (5 Q&As, mirrored in the JSON-LD), sitemap.xml (/, /privacy, /terms), Sitemap line in robots.txt, og.png social preview image (1200×630, PIL, navy + gold), canonicals on the legal pages.
  • v0.5.8 (2026-11-02): Google Search Console verification meta tag in the home page head. Property verified under divreddypremium@gmail.com (URL-prefix, HTML tag method) and the sitemap submitted — Status: Success, 3 pages discovered. Indexing pending (takes days).
  • v0.5.9 (2026-11-02): trust fixes — verdict "Low risk" renamed to "No conflicts found in the federal register" (with the not-a-clearance reminder next to it); How it works section (incl. honest data-source note: the screen queries the USPTO Trademark Search public backend, which has no published API contract — the plan is to move to the ODP daily bulk files before charging); 30-name accuracy test published on the page (15/15 conflicts flagged HIGH at 1.0, 15/15 clear names clear; data in docs/accuracy-2026-11-02.json); Privacy Policy now states retention plainly (screens not kept; watches kept until stopped, then deleted immediately; codes 10 min, hashed); $350/class linked to the official USPTO fee schedule; footer now says "Built by an independent developer — not a law firm". Unsubscribe link re-verified end to end.
  • v0.6.0 (2026-11-02): two false-clear bugs fixed after an external 10-name test run — (1) class detection no longer silently defaults to software classes 9/35/41/42: keyword map expanded (~60 goods phrases), and when no keyword matches the classes are NOT assumed (verdict "CLASSES NOT CONFIRMED", never a clear) with a class picker on the page and classes passable directly to the MCP tool; (2) typo recall: adjacent-transposition variants + per-position wildcard queries (verified: "KLE*NEX" returns KLEENEX) + a class-filtered exact query (verified: "039" returns Delta Air Lines) + Damerau-Levenshtein scoring (GOOGEL vs GOOGLE 0.842 → 0.917 HIGH). Also: same/related-class hits rank first, counts are exact-wordmark only ("47 live DELTA marks across 18 classes"), dataAsOf is the max across all responses, goods truncated to 200 chars, MCP has its own 100/day limit (web stays 10/day/IP) with remaining returned. CAUTION (2026-11-02 evening): a test burst of ~400 backend queries in 34s got the Oracle host IP 403-blocked by the USPTO WAF — the live site 502s on screens until the block lifts. Per-screen queries cut to ~17 with 200ms pacing between batches, retry-once on 403/429, base URL cached on disk with a hardcoded fallback. Block pattern: the backend allows ~200–250 queries then 403-blocks the IP for ~15–20 min — the 14-name rerun tripped it again, so the 30-name regression must run in small chunks with long pauses. 'Social networking' was unmapped (FACEBOOK would have returned CLASSES NOT CONFIRMED) — fixed to classes 9, 38, 45. Accuracy section now publishes the adversarial 14-name results (9 of 10 as expected; APPLE/fresh fruit medium-high on APPEL, a live class-29 mark — under verification) and labels the 30-name set as run on v0.5.9, with its v0.6.0 re-run pending. RATE LIMITS OFF (2026-11-02, testing phase): the web 10/day/IP and MCP 100/day limits are disabled (usage.ts RATE_LIMITS_OFF = true; flip to false before launch) and the page no longer advertises 10/day; OTP limits (5 codes/day) untouched. NOTE: our limit was never the cause of the live 502s — those are the USPTO backend 403-blocking the host IP; our limit returns 429, not 502. With our limit off, heavy testing can re-trigger the USPTO block faster. 502 MITIGATIONS (2026-11-02 evening): the ban lasts ~25-30 min, and every failed screen still fired ~17 backend requests + retries, which can extend the ban — so a ban from one burst was kept alive by retries/re-tests (including Muse's own verification calls). Fixes deployed: circuit breaker (first 403/429 → 10-min breaker, NO backend requests while set, retries only for network errors/5xx); probe (after 5 min, one cheap config GET; 200 clears the breaker, else extends 10 min — max ~5 min dead time after the ban lifts); 6h screen cache (same name + classes = zero backend queries; verified live: 2nd NIKE 0.004s vs 1.33s, identical result); backend-blocked now returns 429 with 'try again in a few minutes' instead of 502 (Cloudflare passes 429s through with our message). Caveat: none of this makes screens WORK during a ban — the durable fix is the ODP bulk-data local index (no live backend calls), still the plan before charging, not built yet. REVIEWER ROUND 2 (2026-11-02 evening): (1) services filter — a description saying 'service(s)' keeps only service classes 35–45 ('yoga studio services' → 41 only, was 28,41 with archery marks driving a false HIGH); span dedup so longer phrases win ('search engine' → 9,42 beats 'engine' → 7; 'yoga studio' → 41 beats 'yoga'); (2) descriptive-word down-weighting — similarity computed on the distinctive parts when both names have them, cap 0.45 when the user's name is all descriptive (FRESH BAKERY vs FRESH BY MELAO BAKERY 0.794 → 0.450; exact matches never capped); (3) ranking — ties broken by goods-text match, then wordmark (deterministic), hits grouped by owner (adidas x6, Microsoft x25) with ownerMarks count, page shows 'N live marks; showing the M most relevant'; classesGuessed flag added (keyword-derived classes, visible notice; assumed still means no clear verdict); (4) variant fixes from the untuned-set retest — K→C (COCA KOLA missed COCA-COLA), KS↔X (NETFLIKS missed NETFLIX), double-letter expand restored (GOGLE missed GOOGLE; wrongly dropped in v0.6.0), 5-char prefix wildcard; retest COCA KOLA 0.931 HIGH, NETFLIKS 0.868 HIGH, GOGLE 0.915 (GOOGLE 0.914) — new typo set 6/6 HIGH. Terms/Privacy stale 10/day language fixed; fee re-verified $350/class on the official USPTO schedule (2.6(a)(1)(iii), 2026-11-03). Accuracy section publishes the new 6-name set with the 3 initial misses listed. Batch-2 (invented + common words) + 30-name re-run + APPEL/Delta + ZORVANTLE verification still pending the backend rate-limit ban (batch-2 tripped it; breaker + probe working as designed).
  • v0.5.0 (2026-11-02): home page redesigned — official light paper-and-navy look (deliberately NOT the Dusktune dark/violet theme), shield logo + "Trademark Screen" branding, DUSKTUNE removed as example/placeholder (examples now NOVABREW / FERNWICK / NIKE); watch-with-email UI on the page (POST /watches + DELETE /watches/:id, watch list with Stop, email on/off note from /health); default RESEND_FROM is now support@trademarkscreen.com (the user's Northwest business email); dead api-manager URL fixed to data.uspto.gov. LIVE at https://trademarkscreen.com, weekly watch cron Tue 09:00 on the host. Resend: key set by user via systemd drop-in, domain verified, sender support@ — email alerts live.

Run it

npm install
npm run build
node dist/index.js            # stdio — Claude Desktop / Cursor / Claude Code
PORT=8790 node dist/index.js --http   # web screen at GET /, MCP at POST /mcp, GET /health, GET /watches, POST /watches/check
npm run watch:check           # CLI: check all watches now, write data/last-check.json
# Optional: USPTO_TSDR_API_KEY=... node dist/index.js
# Optional: WATCH_FILE=/path/to/watches.json node dist/index.js
# Optional (email alerts): RESEND_API_KEY=... RESEND_FROM="Trademark Screen <alerts@trademark-screen.com>" node dist/index.js --http
# Test-only overrides: TMVIEW_BASE_URL=http://127.0.0.1:PORT RDAP_BASE_URL=https://rdap.org/domain/

Claude Desktop config:

{
  "mcpServers": {
    "trademark-clearance-mcp": {
      "command": "node",
      "args": ["/absolute/path/to/trademark-clearance-mcp/dist/index.js"],
      "env": { "USPTO_TSDR_API_KEY": "optional — free at account.uspto.gov/api-manager" }
    }
  }
}

Pricing / realistic expectations

Do not sell this as clearance. The honest model, same lesson as the finance MCP: quotes/search are free everywhere, the analysis is the product — and even then, subscription revenue is unproven until validated with real founders / attorneys. Plausible: free screen as a lead magnet, paid per-report deep screen ($39, unvalidated), or a watch product ($9/mo in the validation kit, unvalidated — Trademarkia charges $99/quarter for monitoring). The watch is built, but the $9 price was NOT validated — the user jumped from "validate first" to "build the watch" on 2026-11-02, so the interviews in VALIDATION.md are still open. Indirect value is more certain: portfolio piece + lead generator for consulting / custom MCP builds.

Files

  • src/index.ts — MCP server, 9 tools, stdio + Streamable HTTP + web screen
  • src/screen.ts — shared screen logic (MCP tool and web API both call this)
  • src/web.ts — free web page (single self-contained HTML, no external assets)
  • src/usage.ts — count-only usage tracking + 10/day rate limit (no names/IPs stored)
  • src/referrals.ts — "what to do next" slots: official links by default, paid referrals only when their env var is set (docs/monetization.md, Play 1)
  • src/data.ts — tmsearch (keyless) + TSDR (keyed) clients
  • src/similarity.ts — Levenshtein, Jaro-Winkler, Soundex, phonetic key, variants
  • src/classes.ts — Nice classes, related-class map, class suggester, distinctiveness
  • src/watch.ts — watch store + checker (baseline seeding, filedDate gate)
  • src/watch-check.ts — CLI for scheduled checks (npm run watch:check)
  • test-live.mjs — end-to-end MCP client test (run: node test-live.mjs)
  • test-watch.mjs — watch flow test (run: node test-watch.mjs)
  • VALIDATION.md — willingness-to-pay validation kit (10 interviews, still open)