whats_on_port
Identifies every process listening on a given port, including PID, command line, framework, bind address, and process tree, and checks whether the port is free or reserved.
Instructions
Answer "what is using port N?" in detail.
Returns every listener on the port: PID, process name, user, full command line, working directory, the inferred framework, the address it is bound to (and whether that exposes it to the network), the process's parent and children, and whether kill_port would refuse it (system process, your own MCP client). If nothing is listening it says so, and also checks whether the port can be bound, which catches OS-reserved ports (Windows excluded ranges) and listeners hidden by missing privileges.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"port": "<port>"
},
"name": "whats_on_port"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | ||
| protocol | No | tcp |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |