MCPcopy Index your code
hub / github.com/diegoholiveira/localports

github.com/diegoholiveira/localports @v0.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.0 ↗ · + Follow
21 symbols 44 edges 5 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

localports

A simple command-line tool to list network ports and their associated binaries. Perfect for developers who need to quickly identify what's using a specific port.

Features

  • Lists all listening network ports
  • Shows the binary path for each port
  • Filters out system processes (focuses on developer-relevant processes)
  • Clean table output with port, PID, and binary information

Installation

Via Homebrew

brew install diegoholiveira/localports/localports

From Source

git clone https://github.com/diegoholiveira/localports.git
cd localports
cargo build --release
./target/release/localports

Usage

Simply run the command:

localports

Example output:

+-------------+-------+--------------------------------------------------+
| Port        | PID   | Bin                                              |
+-------------+-------+--------------------------------------------------+
| 3000 (TCP)  | 12345 | ~/dev/my-app/target/debug/my-server              |
| 5432 (TCP)  | 67890 | /usr/local/bin/postgres                          |
| 8080 (TCP)  | 11111 | ~/Projects/web-service/node_modules/.bin/next    |
+-------------+-------+--------------------------------------------------+

Why localports?

Ever been frustrated trying to find what's using port 8080? Instead of running multiple commands like lsof, ps, and netstat, just run localports and immediately see what's listening where.

License

MIT

Core symbols most depended-on inside this repo

Shape

Function 16
Class 4
Method 1

Languages

Rust90%
Ruby10%

Modules by API surface

src/process_info.rs10 symbols
src/port_scanner.rs5 symbols
src/main.rs3 symbols
Formula/localports.rb2 symbols
src/known_process.rs1 symbols

For agents

$ claude mcp add localports \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page