API Documentation
The Ops.Tools API
Public docs for DNS, WHOIS, IP, SSL, HTTP and port scanning APIs: look up the evidence a release gate, a monitor or an AI agent needs, one GET request per check.
On this page
Quick start
- Sign up and open your workspace.
- Under API keys, create a key and copy it: it is shown once.
- Send it in the x-api-key header with the domain to check, as below.
curl --get "https://api.ops.tools/ops/dns-lookup" \
--data-urlencode "address=example.com" \
--data-urlencode "type=MX" \
-H "x-api-key: $API_KEY"const response = await fetch('https://api.ops.tools/ops/ssl-check?domain=' + encodeURIComponent('example.com'), {
headers: { 'x-api-key': process.env.API_KEY ?? '' },
});
const certificate = await response.json();
if (certificate.daysRemaining < 14) {
// renew before the release goes out
}API families
Every check is one GET request and costs 1 credit.
| Route | Answers |
|---|---|
GET /ops/dns-lookup | DNS lookup and record inspection: A, AAAA, MX, TXT, NS, CNAME, SOA or ANY for a domain or hostname. |
GET /ops/whois | WHOIS ownership and registration data: registrar, dates, name servers and the raw record. |
GET /ip/details | IP geolocation, ASN, and reputation context for an address. |
GET /ops/ssl-check | SSL and TLS validation with expiry checks: issuer, subject names, protocol and chain. |
GET /ops/http-analyze | HTTP header analysis: redirects, security headers, caching and response metadata. |
GET /ops/port-scan | Port scanning for exposed services: open, closed or filtered TCP ports on public addresses. |
Authentication
- Every request carries a workspace API key in the x-api-key header. A key belongs to one workspace and spends that workspace’s credits.
- Keep keys on your server, never in browser code, analytics events or shared spreadsheets.
- Revoke a key under API keys and it stops working at once.
Errors, credits and limits
- Errors answer
{ "error": "CODE", "message": "…" }with the HTTP status that fits. - Each check spends 1 credit; 402
INSUFFICIENT_CREDITSmeans the workspace has none left (top up on the pricing page, or turn on auto top-up). - Over the rate limit you get 429 with Retry-After in seconds; back off and retry after that time.
- Port scans run only against public addresses; scan assets you are authorized to test.
Next steps
- Use the reference when you need exact parameters, auth, and response shape.
- Use pricing when you need to model requests across monitoring, research, or CI/CD workflows.
- Use the tools and use-case pages when you need examples for operators, analysts, or platform teams.
MCP server for AI agents
Connect Claude, Cursor, VS Code or any client that speaks Streamable HTTP to https://mcp.ops.tools/mcp with your API key, and your agent runs DNS, WHOIS, SSL, HTTP and port checks with the same credits and answers as the REST API.
claude mcp add --transport http ops-tools https://mcp.ops.tools/mcp --header "x-api-key: <your-api-key>"Adds the server to the current project; add --scope user to use it in every project.
{
"mcpServers": {
"ops-tools": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.ops.tools/mcp",
"--header",
"x-api-key:<your-api-key>"
]
}
}
}claude_desktop_config.json: ~/Library/Application Support/Claude/ on macOS, %APPDATA%\Claude\ on Windows. Restart Claude Desktop after saving.
{
"mcpServers": {
"ops-tools": {
"url": "https://mcp.ops.tools/mcp",
"headers": {
"x-api-key": "<your-api-key>"
}
}
}
}.cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project.
{
"servers": {
"ops-tools": {
"type": "http",
"url": "https://mcp.ops.tools/mcp",
"headers": {
"x-api-key": "<your-api-key>"
}
}
}
}.vscode/mcp.json in the workspace; start the server from the MCP view or Copilot Chat in Agent mode.
{
"mcpServers": {
"ops-tools": {
"serverUrl": "https://mcp.ops.tools/mcp",
"headers": {
"x-api-key": "<your-api-key>"
}
}
}
}~/.codeium/windsurf/mcp_config.json; refresh the MCP servers list after saving.
curl https://mcp.ops.tools/mcp \
-H "x-api-key: <your-api-key>" \
-H "content-type: application/json" \
-H "accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"1.0"}}}'Every request is a JSON-RPC 2.0 POST; send tools/list, then tools/call with {"name": "ops_dns_lookup", "arguments": {"address": "example.com", "type": "MX"}} the same way.
API reference
Every route with its parameters, answers and errors, generated from the API’s own OpenAPI spec, so it is always current.