Port Sentry
FreeNot checkedAn MCP server that gives AI coding agents structured port intelligence — finding free ports, identifying port hogs, and killing zombie processes without leaving
About
An MCP server that gives AI coding agents structured port intelligence — finding free ports, identifying port hogs, and killing zombie processes without leaving the chat.
README
port-sentry
An MCP server that gives AI coding agents superpowers over network ports — find free ports, identify port hogs, and kill zombie processes without ever leaving the chat.

🎯 Why?
AI coding agents constantly try to start dev servers on ports that are already in use, leading to cascading failures and wasted tokens. While tools like lsof and netstat exist for humans, there is no MCP server that gives agents structured, actionable port intelligence — forcing them to parse raw shell output or guess random port numbers.
Target audience: Developers using AI coding agents (Claude Code, Cursor, Codex, Copilot) who frequently run dev servers, databases, and microservices locally and are tired of 'port already in use' errors derailing their agent workflows.
✨ Features
- ✨ List all ports currently in use with owning process name, PID, and command line
- ✨ Find the next N available ports within a specified range
- ✨ Check if a specific port is available or occupied
- ✨ Kill the process occupying a specific port (with safety confirmations)
- ✨ Wait/poll for a port to become free with configurable timeout
🚀 Quick Start
# Install
pip install port-sentry
# Run
port-sentry --help
📦 Installation
From Source
git clone https://github.com/YOUR_USERNAME/port-sentry.git
cd port-sentry
# Create virtual environment
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
# Install in development mode
pip install -e ".[dev]"
# Run tests
pytest -v
🎬 Demo
The GIF above was recorded using Charm VHS:
vhs < demo.tape
📖 Usage
# Show help
port-sentry --help
# Common usage examples
port-sentry --example
🏗️ Architecture
graph LR
A[Input] --> B[Core Engine]
B --> C[Output]
B --> D[Plugins]
D --> E[Extensions]
🤝 Contributing
Contributions are welcome! Please:
- Fork the repo
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📄 License
MIT © 2026 — See LICENSE for details.
If this project helped you, please ⭐ star it!
Installing Port Sentry
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/yulinlina/port-sentryFAQ
Is Port Sentry MCP free?
Yes, Port Sentry MCP is free — one-click install via Unyly at no cost.
Does Port Sentry need an API key?
No, Port Sentry runs without API keys or environment variables.
Is Port Sentry hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Port Sentry in Claude Desktop, Claude Code or Cursor?
Open Port Sentry on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Gmail
Read, send and search emails from Claude
by GoogleSlack
Send, search and summarize Slack messages
by SlackRunbear
No-code MCP client for team chat platforms, such as Slack, Microsoft Teams, and Discord.
Discord Server
A community discord server dedicated to MCP by [Frank Fiegel](https://github.com/punkpeye)
Klavis AI
Open Source MCP Infra. Hosted MCP servers and MCP clients on Slack and Discord.
Work90210/APIFold
Turn any REST API into a hosted MCP server. 18 free public servers (GitHub, Stripe, Slack, OpenAI, Notion, and more) — no setup required, bring your own API key
by Work90210arikusi/deepseek-mcp-server
MCP server for DeepSeek AI with chat, reasoning, multi-turn sessions, function calling, thinking mode, and cost tracking.
by arikusihashgraph-online/hashnet-mcp-js
MCP server for the Registry Broker. Discover, register, and chat with AI agents on the Hashgraph network.
by hashgraph-onlineprofullstack/mcp-server
A comprehensive MCP server aggregating 20+ tools including SEO optimization, document conversion, domain lookup, email validation, QR generation, weather data,
by profullstackWayStation-ai/mcp
Seamlessly and securely connect Claude Desktop and other MCP hosts to your favorite apps (Notion, Slack, Monday, Airtable, etc.). Takes less than 90 secs.
by waystation-aiCompare Port Sentry with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All communication MCPs
