Skip to main content

MCP Sniffer is a network traffic inspector for MCP clients and servers. It runs as a reverse proxy between the client and server, monitoring all communication between them.

Reason this release was yanked:

web ui wasn't included

Project description

MCP Sniffer

PyPI - License PyPI - Python Version

MCP Sniffer is a network traffic inspector for MCP clients and servers. It runs as a reverse proxy between the client and server, monitoring all communication between them.

Install

pipx install mcp-sniffer

Usage

$ mcp-sniffer --help
usage: mcp-sniffer [-h] [--listen-host LISTEN_HOST] [--listen-port LISTEN_PORT] [--upstream-host UPSTREAM_HOST]
                   [--upstream-port UPSTREAM_PORT] [--web-ui-host WEB_UI_HOST] [--web-ui-port WEB_UI_PORT]
                   [--log-level LOG_LEVEL]

MCP Sniffer

options:
  -h, --help            show this help message and exit
  --listen-host LISTEN_HOST
                        Host to listen on (default: env LISTEN_HOST or 127.0.0.1)
  --listen-port LISTEN_PORT
                        Port to listen on (default: env LISTEN_PORT or 3002)
  --upstream-host UPSTREAM_HOST
                        Upstream host (default: env UPSTREAM_HOST or 127.0.0.1)
  --upstream-port UPSTREAM_PORT
                        Upstream port (default: env UPSTREAM_PORT or 3001)
  --web-ui-host WEB_UI_HOST
                        Web UI host (default: env WEB_UI_HOST or 127.0.0.1)
  --web-ui-port WEB_UI_PORT
                        Web UI port (default: env WEB_UI_PORT or 8888)
  --log-level LOG_LEVEL
                        Log level (default: env LOG_LEVEL or INFO)

Run

mcp-sniffer --listen-port 3002 --upstream-port 3001
# INFO:     Started server process [32580]
# INFO:     Waiting for application startup.
# INFO:     Application startup complete.
# 2025-04-19 00:25:04 devmachine.local mcp_sniffer.proxy[32580] INFO Listening on ('127.0.0.1', 3002)...
# INFO:     Uvicorn running on http://127.0.0.1:8888 (Press CTRL+C to quit)
# INFO:     127.0.0.1:52396 - "GET / HTTP/1.1" 200 OK
# INFO:     127.0.0.1:52396 - "GET /assets/index-C93YJcsR.css HTTP/1.1" 200 OK
# INFO:     127.0.0.1:52397 - "GET /assets/index-CwtNIZdB.js HTTP/1.1" 200 OK
# INFO:     127.0.0.1:52397 - "GET /connections HTTP/1.1" 200 OK

Web UI

Visit http://127.0.0.1:8888.

Setup Web UI

Browse Connections Web UI

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_sniffer-0.1.1.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

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

mcp_sniffer-0.1.1-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file mcp_sniffer-0.1.1.tar.gz.

File metadata

  • Download URL: mcp_sniffer-0.1.1.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mcp_sniffer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 225b2a2227b1e525573235faee09b8d5b8b707f26f0c4016f8bd352daf12b9cc
MD5 745a891023bf04ec89487b265e6b466d
BLAKE2b-256 90b9f91bcda4df0ea58ce12bac7a72d5cee0576d987566978cd5680a41131a0a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_sniffer-0.1.1.tar.gz:

Publisher: create-release.yaml on shivdeepak/mcp-sniffer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_sniffer-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mcp_sniffer-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mcp_sniffer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4e86d3b8647e7f15cf024765939d7b734f2bbc21388b28df24aff1e57e64ac82
MD5 2dd280b0b075f45737b2591e2ea50fe1
BLAKE2b-256 d743c4ba667ffe0026929d8b2fa147eb31fffd4ad655362391ef55be5ff7fca1

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_sniffer-0.1.1-py3-none-any.whl:

Publisher: create-release.yaml on shivdeepak/mcp-sniffer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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