lock-smith-mcp
Standalone home: QuincyGB/lock-smith-mcp — sibling of the fleet's token-verdict-mcp, route-verdict-mcp and list-smith-mcp wrappers.
MCP server for LockSmith — an automated security audit for x402 endpoints, sold pay-per-call over x402: $0.50 USDC on Base, no account, no API key. Give it the URL of a paid x402 route and it reports whether that endpoint would pass an informed buyer's security screen — paywall presence, challenge sanity, garbage/forged payment rejection, exposure surface (.env/.git/debug paths), error hygiene, body caps, discovery consistency — as a SECURE / FINDINGS / EXPOSED verdict with per-check evidence.
Scope, stated plainly: these are automated security checks run with unpaid probes only — not a penetration test, and a SECURE verdict is not a guarantee. It is a fast, cheap, repeatable screen.
This package gives any MCP host (Claude Desktop, Cursor, …) a native
lock_audit tool that handles the full x402 v2 payment flow itself —
402 challenge → EIP-3009 TransferWithAuthorization signature (USDC on
Base, EIP-712) → paid retry — using your agent wallet.
Tools
| Tool | What it does | Price |
|---|---|---|
lock_audit |
POST /v1/audit — 8-check non-destructive security audit of one x402 endpoint URL; returns the verdict, summary counts and per-check detail |
$0.50 USDC (Base) |
Install
pip install lock-smith-mcp
# or run without installing:
uvx lock-smith-mcp
Configuration
All configuration is environment variables — set them on the MCP server process in your host's config. Your key never leaves your machine; the service only ever sees a signed payment authorization.
| Variable | Required | Meaning |
|---|---|---|
AGENT_PRIVATE_KEY |
for paid calls | EVM private key (0x…) of your wallet holding USDC on Base. Used locally to sign the x402 payment. |
AGENT_KEY_FILE |
alternative | Path to a file containing that key instead. |
LOCK_SMITH_URL |
no | Service base URL override (default: production). |
LOCK_SMITH_MAX_AMOUNT_UNITS |
no | Spend guard per call, USDC micro-units (default 500000 = $0.50, the known price). The client refuses to sign any challenge priced above this. |
Without a signer the tool never pays. It returns the parsed 402
challenge as a structured error — {"error": "payment_required", "accepts": […], …} — so the calling agent can see the exact price,
asset, network and payTo and decide what to do. With a signer, charges
above the spend guard are likewise refused before signing.
MCP host config
{
"mcpServers": {
"lock-smith": {
"command": "uvx",
"args": ["lock-smith-mcp"],
"env": {
"AGENT_PRIVATE_KEY": "0xYOUR_AGENT_WALLET_KEY"
}
}
}
}
The endpoint being wrapped
POST https://lock-smith-production.up.railway.app/v1/audit
{"endpoint_url": "https://token-verdict-production.up.railway.app/v1/verdict"}
→ 200 {"ok": true, "service": "lock-smith", "audit_version": "1.0.0",
"target": {...}, "verdict": "SECURE",
"summary": {"passed": 8, "findings": 0, ...},
"checks": [{"id": "paywall_present", "status": "pass", ...}, ...],
"scope_note": "Automated security checks, not a penetration test. ..."}
The schemas in src/lock_smith_mcp/schemas.py are copied verbatim from
the service's own discovery document (/.well-known/x402) — the
published contract, not a paraphrase.
Development
pip install -e ".[dev]"
pytest
Tests mock the HTTP layer and use a throwaway signer generated at test
time — no network, no real money, no key material in the repo. The 402
fixture in tests/fixtures/ is real: captured from an unpaid probe of
production on 2026-10-27.
License
MIT
Metadata
Release files for lock-smith-mcp 0.1.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 |
|---|---|---|---|---|
| lock_smith_mcp-0.1.1.tar.gz | 15.7 kB | With provenance | Details for lock_smith_mcp-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lock_smith_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for lock_smith_mcp-0.1.1-py3-none-any.whl |
Total release size: 27.4 kB
Release files / lock_smith_mcp-0.1.1.tar.gz
| Download URL | lock_smith_mcp-0.1.1.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6eee2f8e808f006e5c6b6eb6b4d7c13bcc4043308068976517ac092568c2a524
|
|
BLAKE2b-256 checksum How to use checksums |
a824222b9be912db627f5f1c6291cad70ccedcab0f456a166b6134f1a10ccf98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.
Transparency logRelease files / lock_smith_mcp-0.1.1-py3-none-any.whl
| Download URL | lock_smith_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32dea85cc8dcbd7cf89a165162597d4cf275f30ce75c52300dafdc8e48b6a450
|
|
BLAKE2b-256 checksum How to use checksums |
e484053688205b5a0d28e6da690d400987e689d602facc6685c8a80b43308041
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.
Transparency logSecurity for lock-smith-mcp 0.1.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for lock_smith_mcp-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.
Transparency logA 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.