Skip to main content

Security scanner for MCP (Model Context Protocol) servers — detect malicious tools, data exfiltration, and supply chain risks.

Project description

🔍 MCP Scanner

Security scanner for MCP (Model Context Protocol) servers. Detect malicious tools, data exfiltration, and supply chain risks before connecting an MCP server to your AI agent.

Python 3.10+ License: MIT


Why MCP Scanner?

MCP servers give AI agents (Claude Code, Cursor, Copilot) direct access to tools, filesystems, and APIs. But nobody is checking if those servers are safe.

MCP Scanner analyzes:

  • MCP server config files (Claude Code, Cursor, generic)
  • Command-level risks (npx --yes, curl|bash, sudo)
  • Secret exposure in environment variables
  • Filesystem and network access patterns
  • Source code of MCP server implementations (with AgentGuard integration)

Quick Start

pip install mcp-scanner

# Scan your Claude Code MCP config
mcp-scanner

# Scan a specific config
mcp-scanner ~/.cursor/mcp.json

# JSON output
mcp-scanner .mcp.json --format json

What It Detects

Rule Severity Description
Remote code execution CRITICAL `curl
Auto-install packages HIGH npx --yes without version pinning
Privileged execution CRITICAL Server running as root/sudo
Secret exposure CRITICAL Real API keys/tokens in config env vars
Host filesystem access HIGH Server accessing /etc, /root, /proc
External network access MEDIUM Server connecting to non-localhost URLs
Excessive tool count LOW Server registering >20 tools

Supported Configs

  • Claude Code (~/.claude/claude_code_config.json)
  • Cursor (~/.cursor/mcp.json)
  • Project-level (.mcp.json)
  • Generic MCP server configs

AgentGuard Integration

When AgentGuard is installed, MCP Scanner performs deep source code analysis on MCP server implementations using all 10 OWASP ASI detection rules.

License

MIT — see LICENSE.


Built by Dockfix Labs.

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

dfx_mcp_scanner-0.1.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

dfx_mcp_scanner-0.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dfx_mcp_scanner-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b5fdb253cf4d1785f7b39c8d6fb995ffe1618a32f2831e3b9745cfc4b1c5b94a
MD5 7ef7c446b7f082237931c1a229b73c8e
BLAKE2b-256 354eed165146821c27904e0d985dd6aec61cae0f72eb6fbf83585d596e7ce06d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dfx_mcp_scanner-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 377bf67e1f5e65ffc86baf45738d72c956f02b23c588609d71ef3f165be8d96a
MD5 ca74f81fa0a00fa3e762ff7d58d84cd2
BLAKE2b-256 328d7468f00d8998b934c8f11d90cc519a16a87d1d0d36a49d96f1a87a458b13

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