Skip to main content

See what an MCP server exposes before you trust or connect it.

Project description

mcp-preflight

See what an MCP server exposes before you trust or connect it.

TLDR

Run one command and get a quick capability + risk report for an MCP server (tools, resources, prompts).

Install

Recommended (CLI):

pipx install mcp-preflight

Alternative:

pip install mcp-preflight

Usage

mcp-preflight "uv run server.py"

Quick “real server” smoke test

mcp-preflight "npx @modelcontextprotocol/server-filesystem /tmp"

Other examples

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"

Example output

my-server (MCP 2025-03-26)

  Note: this runs the server locally; it does not sandbox the process.

  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)

  Signals (heuristic):
    ⚠️  system prompt mention: prompt analyze_items
    (may be false positives/negatives)

  Notes:
    ℹ️  timeout: mcp list_resources

  Risk: 2 write, 1 destructive, 2 read-only

Risk classification

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)

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_preflight-0.1.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_preflight-0.1.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file mcp_preflight-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_preflight-0.1.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.15

File hashes

Hashes for mcp_preflight-0.1.0.tar.gz
Algorithm Hash digest
SHA256 874cac758811e98dacb1275edae5aee280830e2cd40b89b3a4f4ae08b3c6867c
MD5 a33ffbbb3823a36c4801295f8b7233cf
BLAKE2b-256 7bd326710e3ae416dc2712373110cb89154c970b55300f978fc23e1d1dac553e

See more details on using hashes here.

File details

Details for the file mcp_preflight-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mcp_preflight-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.15

File hashes

Hashes for mcp_preflight-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 111db1bdf7c034b1db8270d17b69bc5ac1d5bb71f4497c21c407f13d570f1c04
MD5 bff559571967bb156582c700466cbc0b
BLAKE2b-256 60b4aa356978a48ec3a594f83b8560d29ed0737c4af3315060c07aace3c6f62d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page