relayshield-screen
Screen an MCP server, URL, wallet, or email against RelayShield live threat intel, and print a verdict. Free, open source, no local install beyond pip.
This tool screens and reports. It does not block, quarantine, or enforce anything. The hosted RelayShield Firewall is what enforces.
Install
pip install relayshield-screen
Requires Python 3.9 or newer. No other dependencies.
Usage
relayshield-screen https://example-mcp-server.com/mcp --type mcp-server
relayshield-screen https://suspicious-link.example.com
relayshield-screen 0x742d35Cc6634C0532925a3b844Bc454e4438f44e
relayshield-screen someone@example.com
The target type is auto-detected when you leave out --type: a URL is screened as a link, an address with @ as an email breach check, a 0x address as a wallet. Use --type mcp-server when the URL is an MCP server, so the output says so.
Example output
A clean link:
$ relayshield-screen https://www.google.com
URL: https://www.google.com (no flags found)
[UNKNOWN] https://www.google.com
Signals: IOC corpus=False | threat feeds=False | domain age=10667d
Note: the best verdict this check returns is 'unknown' - absence of evidence is not evidence of absence.
Note: no flags found means nothing is known against this target. It does not mean the target is safe.
A clean wallet:
$ relayshield-screen 0x742d35Cc6634C0532925a3b844Bc454e4438f44e
Wallet: 0x742d35Cc6634C0532925a3b844Bc454e4438f44e (no flags found)
Address: 0x742d35cc6634c0532925a3b844bc454e4438f44e
Chain: evm | Risk: LOW
- No flags: nothing known against this address (verdict 'unknown', not 'safe').
An email found in breaches:
$ relayshield-screen test@example.com
Email: test@example.com (FLAGGED)
Email: test@example.com
Breaches found: 275
- Adobe (2013-10-04)
- Stratfor (2011-12-24)
- Yahoo (2012-07-11)
...
Exit codes
| Code | Meaning |
|---|---|
| 0 | Screened, no flags found. The verdict is unknown, not safe. |
| 1 | Flagged. The link matched the threat corpus, the wallet carries risk, or the email appeared in breaches. |
| 2 | The check did not run. The endpoint was unreachable, refused auth, timed out, or returned a result this tool could not parse. |
CI should fail the build on both 1 and 2. Code 2 means the check never ran, which is not a pass.
What each screen does
| Screen | What it calls | What counts as flagged |
|---|---|---|
| MCP server URL | check_link on the server URL |
The URL is flagged in the threat corpus for phishing, malware, or scam abuse |
| URL | check_link |
Same as above |
| Wallet | check_wallet |
Risk MEDIUM, HIGH, or CRITICAL |
check_breach |
The email appears in one or more breaches |
An MCP server URL is screened as a link: the server URL is checked against the threat corpus, and its domain age is reported. There is no typosquat or registration-age check on the free endpoint, so this tool does not claim one.
Endpoint and token
By default the CLI calls the keyless RelayShield free server:
https://relayshieldadmin-relayshield-free-mcp.hf.space/mcp
No account, no token, no API key. It serves the link, wallet, email, and breach checks for free.
Point at a different endpoint with --endpoint or RELAYSHIELD_ENDPOINT. Two options:
- Your hosted demo or tenant proxy,
https://tnt-demo.proxy.relayshield.net/mcp(or your own tenant proxy URL from the console). That endpoint needs a token. Get a free token from the RelayShield console (free tier: 50 screened calls a month, no card required), then pass it with--tokenor setRELAYSHIELD_TOKEN. Without a token the CLI exits 2 with an authentication error. - Your own RelayShield MCP server URL, if you run one.
Example against the hosted demo endpoint with a token:
relayshield-screen https://example-mcp-server.com/mcp --type mcp-server --endpoint https://tnt-demo.proxy.relayshield.net/mcp --token $RELAYSHIELD_TOKEN
Machine-readable output
relayshield-screen https://www.google.com --json
{"target": "https://www.google.com", "type": "url", "tool": "check_link", "endpoint": "https://relayshieldadmin-relayshield-free-mcp.hf.space/mcp", "verdict": "pass", "label": "unknown", "detail": "[UNKNOWN] https://www.google.com\nSignals: IOC corpus=False | threat feeds=False | domain age=10667d\n..."}
Use it in CI
The GitHub Action runs this CLI as a CI step. See action.yml in this repo. Example workflow:
- name: Screen the MCP server
uses: relayshield/relayshield-firewall/relayshield-screen@v0.1.0
with:
target: "https://example-mcp-server.com/mcp"
type: "mcp-server"
No token is needed: the Action defaults to the keyless free server. Only pass token when pointing at an endpoint that needs one, for example the hosted demo endpoint.
A full example workflow is in examples/screen-mcp-server.yml. The step fails when the verdict is bad, and also fails when the check did not run, so a silent skip cannot pass the build.
What this tool does not do
- It does not block, quarantine, or approve MCP servers. It screens and reports a verdict.
- It does not run a local detection-rule library, SAST scan, or SSH check. It queries the RelayShield live corpus through the endpoint.
- It does not store anything. Each run is one screening call.
Development
python -m unittest discover -s tests
Tests use a fake in-process MCP server. No network calls to the real endpoint.
Metadata
Release files for relayshield-screen 0.1.0
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 |
|---|---|---|---|---|
| relayshield_screen-0.1.0.tar.gz | 12.4 kB | Without provenance | Details for relayshield_screen-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| relayshield_screen-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for relayshield_screen-0.1.0-py3-none-any.whl |
Total release size: 22.6 kB
Release files / relayshield_screen-0.1.0.tar.gz
| Download URL | relayshield_screen-0.1.0.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
766b6a2db0d114d86070d90be6b76323abe37529e50d156352302b9aa071ba3a
|
|
BLAKE2b-256 checksum How to use checksums |
ae5b2f3fdd3b20db7b31b8c3095bc1b9c8f656892398d7e686f1ad2b29ba1375
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.5
|
Release files / relayshield_screen-0.1.0-py3-none-any.whl
| Download URL | relayshield_screen-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5094be892bccbf5d73b07e62514426dbcbfd449b3bb9f958fe10c34a25a19bc
|
|
BLAKE2b-256 checksum How to use checksums |
96d6af481539172be45507bbd9aa11533e643f83dbdf950929145f2d93b08075
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.5
|
Security for relayshield-screen 0.1.0
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.