@2mw/mcp
by f1tym1
README.md
# @2mw/mcp — Two Minute Warning MCP server
Wire **Two Minute Warning** threat intelligence into any MCP-compatible AI agent (Claude Desktop,
Cursor, etc.). Ask in natural language — *"is CVE-2021-44228 actually being exploited?"*, *"what's
the weaponization graph for Akira?"*, *"which of these CVEs have no detection rule?"* — and the agent
calls the 2mw API for you.
**Tier-gated by design.** This server rides on top of the 2mw REST API: every tool call is made with
*your* API key, so your plan's tier, quota and entitlements are enforced at the API. A free key sees
free data; a Business key sees Business data. The server holds no data and can't bypass the gate.
## Setup
Requires Node 18 or newer and a 2mw API key (from your dashboard). No other install step: `npx` fetches the package.
Prefer no local install? The same tools are hosted at `https://2mw.io/mcp` (see https://2mw.io/docs#mcp). This package is the stdio version for clients that cannot use a hosted endpoint.
**Claude Desktop** — add to `claude_desktop_config.json`:
```json
{
"mcpServers": {
"2mw": {
"command": "npx",
"args": ["-y", "@2mw/mcp"],
"env": { "TMW_API_KEY": "tmw_live_your_key_here" }
}
}
}
```
Restart the app. The 2mw tools appear automatically.
## Options
| setting | default | notes |
|---|---|---|
| `TMW_API_KEY` or `--api-key KEY` | none (required) | Your 2mw API key. The flag wins over the variable. |
| `TMW_API_BASE` or `--api-base URL` | `https://f1tym1.com/wp-json/f1tym1/v1` | API base. Leave it alone unless support tells you otherwise. |
Check it without a key or network: `npx -y @2mw/mcp --list-tools`. Other flags: `--help`, `--version`.
## Tools
| tool | plan | what it does |
|---|---|---|
| `whoami` | any | Show the authenticated plan: |
| `exploited` | Analyst+ | The CVEs worth patching right now, ranked. |
| `cve_full` | Analyst+ | Everything we hold on one CVE in a single call: |
| `compare` | Analyst+ | Check a 'we beat vendor X' claim in one call: |
| `exploitation_evidence` | Analyst+ | Graded exploitation evidence for a CVE, strongest first: |
| `observed_exploit` | Business+ | CVEs where our own first-party analysis confirmed a real sample exploiting the flaw (asserted, not inferred from a score). |
| `exploit_timing` | Analyst+ | Exploit-before-patch timing and exposure window for CVEs (first exploit date vs patch date). |
| `detection_coverage` | Analyst+ | Which Sigma rules actually detect a CVE, or the absence of any (your detection blind spots). |
| `technique` | Analyst+ | Resolve a MITRE ATT&CK technique and pivot the OTHER way: |
| `technique_coverage` | Analyst+ | Everything we hold for one MITRE ATT&CK technique in a single call: |
| `weaponization_graph` | Analyst+ | Traverse the weaponization graph from a malware family, actor or campaign: |
| `patch_velocity` | Analyst+ | How fast a vendor ships fixes: |
| `ransomware_sector` | Analyst+ | Ransomware exposure by sector: |
| `lab_unique_c2` | Business+ | Command-and-control infrastructure our first-party analysis surfaced that the public IOC feeds do NOT carry (status=lab_unique), or the set both we and a public feed agree on (corroborated). |
| `first_party_c2` | Business+ | C2 domains real samples beaconed to during our own first-party analysis, filtered for noise: |
| `malware_lab` | Business+ | Our first-party analysis results grouped per malware family: |
| `ioc_lookup` | Analyst+ | Enrich an IOC (ip/domain/url/hash) with confidence, attribution and licensed observations. |
| `phishing_nrd` | Business+ | Newly-registered domains our model flags as high-risk phishing, corroborated by an independent licence-cleared threat feed. |
| `typosquats` | Team+ | Certificate-backed typosquat domains impersonating a brand provisioned to your account. |
| `deltas` | Team+ | What's new since a timestamp: |
The plan column is documentation; the API is the real gate. Out-of-plan calls return the API's own 403 message with an upgrade link, and over-quota calls return its 429 message.
(c) Two Minute Warning LLC. Use of the data is governed by the Terms and Data Licence at https://2mw.io.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues