See what an MCP server exposes before you trust or connect it.
Project description
mcp-preflight
ls -la for MCP servers. See what an MCP server exposes before you connect it.
Install
pipx install mcp-preflight
Quick start
mcp-preflight "npx @modelcontextprotocol/server-filesystem /tmp"
Example output
my-server (MCP 2025-03-26)
Caution: the server process runs locally without sandboxing.
Use --isolate-home to prevent access to your real HOME directory.
Tools:
🟢 list_items "List all items in the database"
🟢 get_item "Get a single item by ID"
🟡 create_item "Create a new item"
🟡 update_item "Update an existing item"
🔴 delete_item "Permanently delete an item"
Resources:
📄 my-server://items
📄 my-server://items/{id}
Prompts:
💬 analyze_items (project_name)
Notes:
ℹ️ timeout: mcp list_resources
Risk: 2 write, 1 destructive, 2 read-only
Common workflows
# Run against your own server
mcp-preflight "uv run server.py"
mcp-preflight "npx my-mcp-server"
mcp-preflight "python3 /path/to/server.py"
# Save a report (JSON)
mcp-preflight --save report.json "uv run server.py"
# Diff two saved reports
mcp-preflight diff before.json after.json
# JSON output
mcp-preflight --json "uv run server.py"
Notes
- Runs the server locally.
- Enumerates exposed MCP capabilities.
Auth-gated servers / custom env
Some MCP servers only reveal tools/resources after authentication. mcp-preflight does not run login flows, so it may report capabilities as not enumerable until credentials are provided.
# Pass a token via env
mcp-preflight --env GITSCRUM_TOKEN=... "npx -y @gitscrum-studio/mcp-server"
# Point HOME (and XDG_* dirs) somewhere else (useful for servers that read ~/.config, ~/.local, etc.)
mcp-preflight --home /tmp/mcp-preflight-home "npx -y @gitscrum-studio/mcp-server"
# Isolate HOME entirely to reduce side effects/pollution
mcp-preflight --isolate-home "npx -y @gitscrum-studio/mcp-server"
Risk classification heuristic
Based on tool names and descriptions (conservative by default):
- 🟢 read-only:
get,list,search,read,fetch,find,show,view - 🟡 write:
create,add,update,set,send,write,upload - 🔴 destructive:
delete,remove,destroy,drop,purge,clear,reset - Unknown → 🟡 (assume write until proven otherwise)
Signals (heuristic)
mcp-preflight can emit “signals” based on text matching (best-effort). These are hints, not guarantees, and may have false positives/negatives.
Disable with:
mcp-preflight --no-signals "uv run server.py"
Non-goals
- No sandboxing
- No policy enforcement
- No runtime analysis
This tool inspects exposed MCP capabilities. It does not call tools (call_tool).
Support
- Bugs / feature requests:
https://github.com/jordanstarrk/mcp-preflight/issues
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_preflight-0.2.0.tar.gz.
File metadata
- Download URL: mcp_preflight-0.2.0.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3b26ad287c915a9e071ce4ba1d4470f815461e24590b6054ed4a1dff45c1625
|
|
| MD5 |
7c556c845eab5bace0aba39064eccd05
|
|
| BLAKE2b-256 |
38c6d093cb100d18556a58dceae1fb5138369be92bf5000d4a1bf8f983b8f436
|
File details
Details for the file mcp_preflight-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mcp_preflight-0.2.0-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee72952466059a80d81ec55b4cf7adafda82a8f96472e5f7421d6d25ceb6af94
|
|
| MD5 |
93c1e0950dc61335111dcd6c7f85c1fe
|
|
| BLAKE2b-256 |
a90e9edf8f31664227fd38596d0e7d13f90972f9613161ba5e450e1c1bd17dea
|