# PapaCasper Open Port Scanner

> PapaCasper Open Port Scanner is a paid API for AI agents from papacasper.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Scans a hostname or IP address for open TCP ports and returns which ports are reachable

## Facts

- Endpoint: POST https://papacasper.com/mcp/pay/check_open_ports
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/papacasper-open-port-scanner-5c496487
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KqcMOnuiA7bHNXi_DJtdw

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability papacasper-open-port-scanner-5c496487 -d '<json body>'
```

Example prompt: Can you scan api.mycompany.com for open ports — specifically check ports 22, 80, 443, 3306, and 5432?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call port scan without standing up your own scanning infrastructure. Ideal for AI agents performing lightweight network audits, firewall verifications, or connectivity troubleshooting on individual hosts. Prefer over self-hosted solutions when simplicity and low cost per scan matter more than deep packet inspection or large-scale scanning.

## Known failure modes

- Invalid or unresolvable hostname returns an error
- More than 100 ports specified triggers a validation error
- Firewall or network timeout may cause ports to appear closed when filtered
- Private/reserved IP ranges may be rejected or return no results
- Host unreachable results in a connection failure error

## How this service works

A hosted MCP server exposing utility tools any AI agent can call over HTTP — page-to-markdown, SEO audits, robots/sitemap checks, and more.

## Output

Returns a structured object listing each scanned port and its status (open or closed/filtered) for the specified hostname or IP. Covers up to 100 ports per call, defaulting to a common-ports list if none are specified.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "host"
 ],
 "properties": {
  "host": {
   "type": "string",
   "description": "Hostname or IP to scan (no scheme)"
  },
  "ports": {
   "type": "array",
   "description": "Specific ports to check. Defaults to a common-ports list. Max 100 ports per call."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/papacasper-open-port-scanner-5c496487/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from papacasper.com](https://www.zero.xyz/host/papacasper.com/llms.txt)
