CIPHER MCP Scan
CIPHER is a local static scan for MCP-oriented codebases. It inspects a checked-out project locally and runs five focused static checks: authentication, over-privilege, CVE lookup, typosquatting, and tool poisoning.
The tool_poisoning check examines MCP JSON tool metadata for instruction overrides, data-exfiltration requests, dangerous URI schemes, and hidden Unicode control characters. It is always included with the four static checks; remote_oauth remains separate and opt-in through --remote-url.
Optional remote OAuth check
The fifth check is opt-in and runs only when an explicit remote URL is supplied. It probes OAuth well-known metadata, dynamic client registration, and a small set of redirect URI validation cases. It does not run during the normal cipher-scan . workflow or standard CI scans.
cipher-scan ./my-application --remote-url https://example.test/mcp --fail-on high
Remote connection failures are reported as low-severity transport results so static findings and the scan report are preserved. Only accepted dangerous redirect schemes produce high-severity remote findings. Use this check only against systems you are authorized to test; it is intended for lab and explicitly approved environments.
The remote OAuth probe is adapted from the concepts and minimal active probes in remote-mcp-scanner, copyright Nova Security, licensed under the MIT License. The reference project is not imported as a runtime dependency.
Install
pip install cipher-mcp-scan
Use CIPHER directly in the CLI
- Install:
pip install cipher-mcp-scan
- Check it works:
cipher-scan --help - Scan the current directory:
cipher-scan . --fail-on high
- Scan a specific project path:
cipher-scan path/to/project --fail-on high
- Report only without failing CI:
cipher-scan . --fail-on none
- Write a JSON report:
cipher-scan . --fail-on high --format json --output cipher-report.json
- Exit codes:
0= findings are below the selected threshold1= findings are at or above the selected threshold
--fail-onvalues:criticalhighmediumnone
Use CIPHER in GitHub Actions
Add a workflow in your project under .github/workflows/ and run the scanner after checkout. This works for public and private repos because the scan is local to the checked-out code.
Point to the demo file in this repo at examples/github-actions-cipher-scan.yml. You can copy that file into your repo as .github/workflows/cipher-scan.yml, or paste the workflow block below.
name: CIPHER MCP Scan
on:
pull_request:
push:
branches:
- main
- master
workflow_dispatch:
jobs:
cipher-scan:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install CIPHER
run: |
python -m pip install --upgrade pip
pip install cipher-mcp-scan
- name: Run CIPHER scan
env:
GITHUB_STEP_SUMMARY: ${{ github.step_summary }}
run: |
cipher-scan . --fail-on high --summary github --output cipher-scan-report.json
- name: Upload JSON report
if: always()
uses: actions/upload-artifact@v4
with:
name: cipher-scan-report
path: cipher-scan-report.json
if-no-files-found: ignore
To use it in another repo:
- Copy examples/github-actions-cipher-scan.yml to
.github/workflows/cipher-scan.yml - Or paste the block above into that file
- Open a PR or push to
main/masterto trigger the check
Optional flags
--summary githubwrites a markdown summary to the Actions job summary when available--format text|jsonchanges the output style--output REPORT.jsonsaves the machine-readable report
Short note
v0.1 is limited to the built-in CIPHER checks. Optional third-party compare engines are future work and are not required for this package.
Longer internal notes are preserved in README_ARCHIVE.md.
CLI UX
The command-line tool has a short banner on --help / -h and no noisy startup banner on successful scans. Example help output includes the package name, version, example commands, and a one-line fail-on explanation.
Local verification
Run these locally without uploading anything:
pip install -e .
cipher-scan --help
cipher-scan ./test/Cipher-demo-main --fail-on high
The demo path is useful for a quick smoke test because it includes intentionally vulnerable MCP sample code.
Metadata
Release files for cipher-mcp-scan 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cipher_mcp_scan-0.2.1.tar.gz | 54.8 kB | Without provenance | Details for cipher_mcp_scan-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cipher_mcp_scan-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for cipher_mcp_scan-0.2.1-py3-none-any.whl |
Total release size: 111.7 kB
Release files / cipher_mcp_scan-0.2.1.tar.gz
| Download URL | cipher_mcp_scan-0.2.1.tar.gz |
|---|---|
| Size | 54.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bfca4dd5a223321ac36a4f9eaf543f1861545e5c8a2f9618e07f6f12d8357c67
|
|
BLAKE2b-256 checksum How to use checksums |
99cb7d01802cb0d42011e39a365c3a135eb30af5adaa7c09e23d4895dc32c30b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.3
|
Release files / cipher_mcp_scan-0.2.1-py3-none-any.whl
| Download URL | cipher_mcp_scan-0.2.1-py3-none-any.whl |
|---|---|
| Size | 56.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1299729f5bcf400af4cd35a5a91ba7fbc4a5c5536e7da5b682668a0f1eed7b1b
|
|
BLAKE2b-256 checksum How to use checksums |
c3dd41a270c2717a4acab73c9edbd57a6ad978dae79488cc62f1a859a08c0b87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.3
|
Security for cipher-mcp-scan 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.