find_process_by_port
Find which process is using a specific network port.
This record as markdown: /tools/19miha99-system-monitor-mcp/find-process-by-port.md
What find_process_by_port does on Desktop Commander MCP Server
AI agents call find_process_by_port to retrieve information from Desktop Commander MCP Server without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
Why find_process_by_port is rated Low
This tool queries system state (which process occupies a port) and returns information—it has no side effects, does not execute commands, does not modify data, and does not trigger external operations. It is purely informational, similar to the sibling tools like get_process_details, get_network_stats, and get_cpu_per_core, all of which are Read category.
From the tool's definition Tool name 'find_process_by_port' and description 'Find which process is using a specific network port' indicate a read-only query operation that retrieves process information without modification or execution of code.
Attacks that exploit this kind of access
The rule that runs find_process_by_port safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Desktop Commander MCP Server, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For find_process_by_port, this is the rule to start with:
find_process_by_port is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Desktop Commander MCP Server, apply this rule, and every find_process_by_port call is checked against it from then on.
Questions about find_process_by_port
Find which process is using a specific network port. It is categorised as a Read tool in the Desktop Commander MCP Server MCP Server, which means it retrieves data without modifying state.
Register the Desktop Commander MCP Server MCP server in PolicyLayer and add a rule for find_process_by_port: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Desktop Commander MCP Server. Nothing to install.
find_process_by_port is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the find_process_by_port rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for find_process_by_port. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
find_process_by_port is provided by the Desktop Commander MCP Server MCP server (19miha99/system-monitor-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Desktop Commander MCP Server, and thousands of servers like it.
This server
Across the catalogue