API & MCP
Everything a person can do on IOC Defang and Refang, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://obscuriqiocconverter.usefulweb.site/api/v1/calculate– run IOC Defang and RefangGET https://obscuriqiocconverter.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
IOC Defang and Refang
Convert recognized HTTP URLs, email domains, domains and IPv4 addresses in pasted text between normal and bracket-dot defanged notation. Hashes and crypto identifiers stay unchanged.
| Field | Type | Default | Description |
|---|---|---|---|
text | textarea | "Suspicious link hxxps://example[.]org/login and analyst@example.org. Host 192.0 | Text to inspect. Paste text you are authorized to review. No lookups are performed. |
mode | select (defang, refang) | "defang" | Conversion |
Example request
Defang a link
curl -X POST https://obscuriqiocconverter.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"text":"Visit https://example.org/path and mail analyst@example.org","mode":"defang"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://obscuriqiocconverter.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
obscuriq_ioc_converter - Local stdio connector:
node src/mcp-stdio.ts --tool=obscuriq-ioc-converter
{
"mcpServers": {
"obscuriq-ioc-converter": { "type": "http", "url": "https://obscuriqiocconverter.usefulweb.site/mcp" }
}
}