Contentum Check
# CONTENTUM Check
[](https://github.com/techfunder/contentum-check/actions/workflows/test.yml)
A passive, outside-in security check of one domain, for people and AI agents: CLI, MCP server and A2A agent. It looks only at what every visitor and every mail server already sees:
DNS records, one TLS handshake, the response headers of the start page, and `security.txt`.
No port scan. No login attempts. No payloads. No exploitation. Node core only, zero dependencies.
> Not a penetration test, not a certified audit, not a compliance certificate. It is a quick public-surface check.
> Run it only against domains you own or have permission to check.
## What it checks
| Group | Checks |
|---|---|
| TLS | certificate validity and expiry, TLS version, legacy TLS 1.0/1.1 accepted, plain HTTP redirects to HTTPS |
| Headers | HSTS, Content-Security-Policy, X-Frame-Options / frame-ancestors, X-Content-Type-Options, Referrer-Policy, version disclosure in `Server` / `X-Powered-By`, cookie flags (Secure, HttpOnly) |
| Mail | SPF (present, single record, sane `all`), DMARC (present, policy), MTA-STS and TLS-RPT announcement records (only for domains that receive mail) |
| Org | `security.txt` (RFC 9116), CAA records |
Each check is `pass`, `warn` or `fail`. A weighted score (0 to 100) maps to a grade A to E (A is 90 and up, B 75, C 60, D 40).
Safety rules built in: only public IP addresses are ever contacted (private, loopback, link-local, CGNAT, documentation and
multicast ranges are refused), IP literals and internal-looking names are rejected, redirects are followed only between the
domain and its `www` name, and response bodies are capped.
## Run
Requires Node 18 or newer. No install step and no dependencies.
```bash
npx github:techfunder/contentum-check example.com # straight from GitHub, works today
npx github:techfunder/contentum-check example.com --json # full result as JSON (schema/result.v1.schema.json)
```
Once the package is on npm this becomes `npx contentum-check example.com`.
From a clone:
```bash
git clone https://github.com/techfunder/contentum-check && cd contentum-check
node bin/contentum-check.js example.com
npm test
```
Exit code is 1 when at least one check fails, 2 for an invalid domain, 3 for an error.
Use as a library:
```js
const { normalize, run } = require('./src/check');
const domain = normalize('https://www.example.com/');
run(domain).then((result) => console.log(result.score, result.grade, result.checks));
```
## Use from AI agents
Any agent can discover it, run it and read the result. One result format (JSON Schema in `schema/result.v1.schema.json`) with,
for every finding, `status`, `severity`, a plain-English `explanation` and a `fix`.
**MCP server (stdio)**: `npx contentum-check --mcp`. Tools: `check_domain`, `explain_finding`, `list_checks`.
Claude Desktop (`claude_desktop_config.json`) and Cursor (`.cursor/mcp.json`):
```json
{
"mcpServers": {
"contentum-check": { "command": "npx", "args": ["-y", "contentum-check", "--mcp"] }
}
}
```
Claude Code: `claude mcp add contentum-check -- npx -y contentum-check --mcp`
Any other MCP client: command `npx`, arguments `-y contentum-check --mcp`, stdio transport, no environment variables, no secrets.
Until the npm package is live, use `npx -y github:techfunder/contentum-check --mcp`.
**A2A agent (HTTP)**: `npx contentum-check --serve` starts an [A2A](https://a2a-protocol.org) 1.0 agent on `127.0.0.1:8787`.
The agent card is at `/.well-known/agent-card.json` (a copy is in `.well-known/`), skills `check-domain` and `explain-finding`.
**CLI for scripts and CI**: `npx contentum-check example.com --json`, schema via `--schema`.
Details, call examples and the stability promise for the format: [`docs/agents.md`](docs/agents.md). Agents that want to
contribute: [`AGENTS.md`](AGENTS.md). Machine-readable summary: [`llms.txt`](llms.txt).
## Hosted deep scans at contentum.com
This repository is the free, passive check. Deeper, permission-based scans, written reports and fix tracking are offered
as a hosted service at contentum.com.
## License
MIT, see `LICENSE`. Copyright (c) 2026 Techfunder World AG.
The names CONTENTUM and CONTENTUM Check and their logos are trademarks of Techfunder World AG and are not licensed under MIT.
TDQS
Scored across 3 tools
Each tool has a clearly separate role: check_domain runs an active scan against a domain, explain_finding explains a check id without scanning, and list_checks enumerates available check ids. The read-only metadata tools are explicitly contrasted with the scanning tool, so an agent can select correctly without ambiguity.
All three names follow a clean verb_noun snake_case pattern (check_domain, explain_finding, list_checks). Verbs are distinct and accurately describe the action performed.
Three tools is on the lean side, but each earns its place: one executes the scan, one provides documentation for findings, one provides discovery of check ids. The narrow single-domain scanning scope makes a small surface reasonable rather than deficient.
The core lifecycle is covered: discover checks, run a scan, and explain results, with score/grade/findings returned inline so no follow-up fetch is needed. Gaps are minor workflow conveniences (no batch or multi-domain scan, no stored report retrieval or comparison), which agents can work around by calling check_domain repeatedly.