MCP-Protect v1.0

Usage:
  
MCP-Protect scan --endpoint <mcp-endpoint> --regex-file <regex-file> [--proxy-host <proxy-host> --proxy-port <proxy-port>] [--extra-headers-file <json-file>] [--logfile <filename>] [--output-file <filename>]
MCP-Protect execute --endpoint <mcp-endpoint> --regex-file <regex-file> --tool-name <tool-name> --tool-args-file <json-file> [--proxy-host <proxy-host> --proxy-port <proxy-port>] [--extra-headers-file <json-file>] [--logfile <filename>] [--output-file <filename>]

scan – Run a security scan on an MCP endpoint.
  
execute – Invoke a specific MCP tool mentioned in the --tool-name and with the data mentioned in the --tool-args-file and scan the tool response.

--endpoint <mcp-endpoint> – URL of the MCP server to inspect (e.g., https://localhost:3001/mcp).

--regex-file <regex-file> – Path to a text file containing regex patterns of malicious or unwanted content.

--tool-name <tool-name> – Name of the MCP tool to invoke on the endpoint.

--tool-args-file <json-file> – JSON file containing the arguments of the tools.

--proxy-host <proxy-host> – Hostname or IP of an HTTP proxy to route all MCP requests through (optional).

--proxy-port <proxy-port> – Port number of the HTTP proxy used together with --proxy-host (optional).

--extra-headers-file <json-file> – JSON file containing extra HTTP headers (e.g., auth tokens) to send with each MCP request (optional).

--logfile <filename> – File to write detailed request/response logs and verbose diagnostic messages (optional).

--output-file <filename> – File to write structured JSON output summarizing the scan result and status flags (optional).  


Examples:
MCP-Protect scan --endpoint https://localhost:3001/mcp --regex-file .\malicious-patterns.txt
MCP-Protect execute --endpoint https://localhost:3001/mcp --regex-file .\malicious-patterns.txt --tool-name searchFiles --tool-args-file .\tool-input.json
MCP-Protect scan --endpoint https://localhost:3001/mcp --regex-file .\malicious-patterns.txt --proxy-host 127.0.0.1 --proxy-port 8080
MCP-Protect scan --endpoint https://localhost:3001/mcp --regex-file .\malicious-patterns.txt --extra-headers-file .\extra-headers.json
MCP-Protect scan --endpoint https://localhost:3001/mcp --regex-file .\malicious-patterns.txt --logfile mcp.log
MCP-Protect scan --endpoint https://localhost:3001/mcp --regex-file .\malicious-patterns.txt --output-file output.json

 
==============================================================

***COPYRIGHT***

Copyright (C) Blueinfy Solutions pvt. ltd.

***Terms of Use***

THIS SOFTWARE IS DISTRIBUTED "AS IS". Blueinfy MAKES NO GUARANTEE ABOUT ITS EFFECTIVENESS, FITNESS OR COMPLETENESS
FOR ANY PARTICULAR USE. IT MAY CONTAIN BUGS, SO USE THIS TOOL AT YOUR OWN RISK. 

Blueinfy IS NOT TAKING ANY RESPONSILBITY FOR ANY DAMAGE THAT MAY UNINTENTIONALLY BE CAUSED THROUGH ITS USE. 
YOU DO NOT HAVE THE RIGHT TO SELL THIS TOOL.
MCP-Protect IS FREE FOR NON-COMMERCIAL, EDUCATIONAL and PERSONAL USE. FOR ALL OTHER USES OF MCP-Protect, PLEASE OBTAIN AN APPROPRIATE LICENSE FROM Blueinfy.




