scanpay-mcp
Facilitates micropayments in SOL via the x402 protocol to pay for per-scan security analysis.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@scanpay-mcpscan this Python code for vulnerabilities: eval(userInput)"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ScanPay โ Code Security Scanner with x402 v2 Micropayments
๐ Try ScanPay Live (Solana Mainnet)
Pay 0.0007 SOL (~$0.10) per scan. No account. No API key.
Live API: https://theoretical-config-hobby-kruger.trycloudflare.com
Landing page: https://misterio070.github.io/scanpay-landing/
AgentBridge: https://invest-ftp-cast-surround.trycloudflare.com
MCP Server:
npx scanpay-mcp-serverCLI:
npx scanpay-cli scan --language python --file ./code.pyllms.txt: https://github.com/Misterio070/scanpay/blob/main/llms.txt
Related MCP server: SAST MCP Server
๐ฐ Pricing
Python / JavaScript / TypeScript scan: 0.0007 SOL
AgentBridge job escrow commission: 10%
No subscriptions, no free trial abuse.
Deterministic AST-based security scanning for Python and JavaScript/TypeScript. No code execution. No AI inference. Just fast, reliable vulnerability detection. Pay per scan with Solana micropayments โ $0.10/scan.
๐ฏ What It Does
ScanPay analyzes source code for security vulnerabilities using deterministic AST parsing. No AI, no code execution โ just fast, reliable pattern matching that catches 45+ vulnerability classes before code runs.
Built for AI agents that generate code: scan before execution, block dangerous patterns, log audit trails.
โจ Features
45+ vulnerability patterns across Python and JS/TS/TSX
Deterministic analysis โ same input always produces same output
x402 v2 payment protocol โ pay per scan with SOL on Solana
Dual language support โ Python (
astmodule) and JS/TS (tree-sitter)No false AI hallucinations โ pure rule-based detection
FastAPI-powered โ sub-100ms scan latency
SARIF output โ industry-standard vulnerability report format
Batch scanning โ scan multiple files in one request
๐ Live Demo
ScanPay is deployed and running:
Public API:
https://theoretical-config-hobby-kruger.trycloudflare.comProducts:
https://theoretical-config-hobby-kruger.trycloudflare.com/api/v1/productsPayment: x402 v2 on Solana mainnet (0.0007 SOL โ $0.10 per scan)
Wallet:
JDKXvegmW5j4sAJPB6YCA9ffJbN422WLMmCWCcpy1vm4
Try it
curl -X POST https://theoretical-config-hobby-kruger.trycloudflare.com/api/v1/scan \
-H "Content-Type: application/json" \
-d '{"language":"python","source_code":"import os; os.system(\"rm -rf /\")"}'Returns 402 Payment Required with Solana payment details. Send payment and retry with X-PAYMENT header to get the scan result.
๐ Quick Start
Using the Live API (mainnet)
# Health check
curl https://repository-nil-camcorder-divx.trycloudflare.com/api/v1/health
# List available products
curl https://repository-nil-camcorder-divx.trycloudflare.com/api/v1/products
# Scan code (requires payment)
curl -X POST https://repository-nil-camcorder-divx.trycloudflare.com/api/v1/scan \
-H "Content-Type: application/json" \
-d '{"source_code":"eval(userInput)","language":"python"}'
# โ 402 Payment Required (0.0007 SOL)Self-Host
git clone https://github.com/Misterio070/scanpay.git
cd scanpay
pip install -r requirements.txt
python main.py
# โ http://localhost:8484๐ณ Payment Flow (x402 v2)
Client requests scan โ receives
402 Payment RequiredClient pays 0.0007 SOL (~$0.10) to merchant wallet via Solana
Client retries with
X-PAYMENTheader containing payment proofServer verifies payment on-chain, runs scan, returns results
Merchant wallet: JDKXvegmW5j4sAJPB6YCA9ffJbN422WLMmCWCcpy1vm4
๐ค For AI Agents (MCP Server)
ScanPay includes an MCP server for AI agents to scan code before execution:
{
"mcpServers": {
"scanpay": {
"command": "npx",
"args": ["-y", "scanpay-cli", "scanpay-mcp"],
"env": { "SCANPAY_URL": "https://repository-nil-camcorder-divx.trycloudflare.com" }
}
}
}Agents call scan_code to check code for vulnerabilities before running it.
Network: Solana mainnet (mainnet coming soon)
๐ Configuration
cp .env.example .envEnv Var | Default | Description |
|
|
|
| โ | Solana wallet address |
|
| Price in lamports (0.0007 SOL) |
|
| Solana RPC endpoint |
|
| Server port |
๐งช Detected Vulnerabilities
Python
eval()/exec()โ code injectionsubprocesswithshell=Trueโ command injectionpickle.loads()โ deserialization attacksos.system()โ command injectionSQL injection patterns
Path traversal (
../)Hardcoded credentials
And more...
JavaScript/TypeScript
eval()โ code injectioninnerHTMLโ XSSdocument.write()โ XSSnew Function()โ code injectionSQL injection patterns
Prototype pollution
And more...
๐ API Reference
GET /api/v1/health
Returns service status and configuration.
GET /api/v1/products
Returns available scan products and pricing.
POST /api/v1/scan
Scans source code for vulnerabilities. Requires payment in mainnet/mainnet mode.
Request:
{
"source_code": "eval(userInput)",
"language": "python"
}Response (200):
{
"status": "ok",
"findings": [
{
"rule": "PY001",
"severity": "critical",
"message": "Use of eval() detected โ code injection risk",
"line": 1
}
],
"summary": {
"total": 1,
"critical": 1,
"high": 0,
"medium": 0,
"low": 0
}
}๐ค Built For
AI Agents โ scan generated code before execution
CI/CD Pipelines โ pre-deployment security gate
IDE Extensions โ real-time vulnerability detection
Code Review โ automated security audit
๐ License
MIT
๐ Links
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Pay-per-call cybersecurity for AI agents: vuln scans, threat intel, compliance, code security.
Pre-execution governance for AI agents. Deterministic PASS/FAIL/REVIEW verdicts, replayable proof.
Deterministic runtime safety for AI agents: scan PII, gate tool actions, verify LLM output.
Pay-per-call safety checks for AI agents: screen a crypto address or URL before you transact.
Related MCP Servers
- AlicenseAqualityAmaintenanceA security scanner for AI coding agents and autonomous assistants that scans code for vulnerabilities, detects hallucinated packages, blocks prompt injection, and provides LLM-powered semantic code review via MCP or CLI.221,936121MIT
- AlicenseAqualityAmaintenanceEnables AI agents to scan code for security vulnerabilities using multiple static analysis tools, with support for filtering, deduplication, and CI/CD integration.272MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to scan code for security and quality issues and receive machine-readable reports with suggested fixes and verification criteria.722MIT
- AlicenseNot gradedqualityBmaintenanceAI-powered smart contract security analysis for AI agents and developers, enabling scanning of Solidity repos for vulnerabilities.238MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Misterio070/scanpay'
If you have feedback or need assistance with the MCP directory API, please join our Discord server