# openPorts

Scan open ports on a host

Agent View of the PolicyLayer registry record for `openPorts`. HTML page: https://policylayer.com/tools/com-geekflare-mcp/openports

## Facts

- Tool: `openPorts`
- Server: Mcp (`@geekflare/mcp`) — https://policylayer.com/tools/com-geekflare-mcp.md
- Install: `npx -y @geekflare/mcp`
- Homepage: https://github.com/oci:geekflarehq/geekflare-api-mcp:0.3.5
- Risk category: Execute (High risk)
- Registry record: grade F, identity unverified
- Server auth posture: open
- Server CORS policy: *
- Server rate-limited: no
- Parameters: 3 (1 required)
- Recommended policy verdict: Rate-limited

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | yes | Target URL |
| `topPorts` | number | no | Scan top N ports |
| `portRanges` | string | no | Custom port ranges e.g. 80,443,1000-1010 |

Parameters from the server's own tool schema.

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "openPorts",
    "arguments": {
      "url": "<url>"
    }
  }
}
```

## Why openPorts is rated High

Port scanning is an active network operation that sends packets to a remote host to probe for open ports. This is an Execute-category action (triggers external network operations). It carries high severity because an AI agent could misuse it for reconnaissance against arbitrary hosts, potentially violating terms of service or laws (e.g., unauthorized scanning).

From the tool's own definition: "'Scan open ports on a host' — actively performs network port scanning against an external host"

Risk signals: Accepts URL/endpoint input (url)

## Use case

AI agents invoke openPorts to trigger actions in Mcp. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call: builds kicked off, notifications sent, workflows started.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Mcp:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "openPorts": {
      "limits": [
        {
          "counter": "openports_rate",
          "window": "minute",
          "max": 10,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Mcp (19)

- `lighthouse` — Execute — https://policylayer.com/tools/com-geekflare-mcp/lighthouse.md
- `mtr` — Execute — https://policylayer.com/tools/com-geekflare-mcp/mtr.md
- `ping` — Execute — https://policylayer.com/tools/com-geekflare-mcp/ping.md
- `url2Pdf` — Execute — https://policylayer.com/tools/com-geekflare-mcp/url2pdf.md
- `brokenLink` — Read — https://policylayer.com/tools/com-geekflare-mcp/brokenlink.md
- `dnsRecord` — Read — https://policylayer.com/tools/com-geekflare-mcp/dnsrecord.md
- `dnsSec` — Read — https://policylayer.com/tools/com-geekflare-mcp/dnssec.md
- `httpHeader` — Read — https://policylayer.com/tools/com-geekflare-mcp/httpheader.md
- `httpProtocol` — Read — https://policylayer.com/tools/com-geekflare-mcp/httpprotocol.md
- `loadTime` — Read — https://policylayer.com/tools/com-geekflare-mcp/loadtime.md
- `metaScrape` — Read — https://policylayer.com/tools/com-geekflare-mcp/metascrape.md
- `mixedContent` — Read — https://policylayer.com/tools/com-geekflare-mcp/mixedcontent.md
- `redirectCheck` — Read — https://policylayer.com/tools/com-geekflare-mcp/redirectcheck.md
- `screenshot` — Read — https://policylayer.com/tools/com-geekflare-mcp/screenshot.md
- `search` — Read — https://policylayer.com/tools/com-geekflare-mcp/search.md
- `siteStatus` — Read — https://policylayer.com/tools/com-geekflare-mcp/sitestatus.md
- `tlsScan` — Read — https://policylayer.com/tools/com-geekflare-mcp/tlsscan.md
- `ttfb` — Read — https://policylayer.com/tools/com-geekflare-mcp/ttfb.md
- `webScrape` — Read — https://policylayer.com/tools/com-geekflare-mcp/webscrape.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=com-geekflare-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/com-geekflare-mcp
