npm scanpay-mcp-serverstdioupdated 20d ago
Pay 0.0007 SOL ($0.10) per scan. No account. No API key.
scanpay 能做什么?
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-server - CLI:
npx scanpay-cli scan --language python --file ./code.py - llms.txt: https://github.com/Misterio070/scanpay/blob/main/llms.txt
💰 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.com - Products:
https://theoretical-config-hobby-kruger.trycloudflare.com/api/v1/products - Payment: 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 Required - Client pays 0.0007 SOL (~$0.10) to merchant wallet via Solana
- Client retries with
X-PAYMENTheader containing payment proof - Server 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 .env
| Env Var | Default | Description |
|---|---|---|
SCANPAY_PAYMENT_MODE |
disabled |
disabled, mainnet, or mainnet |
SCANPAY_MERCHANT_WALLET |
— | Solana wallet address |
SCANPAY_PRICE_LAMPORTS |
700000 |
Price in lamports (0.0007 SOL) |
SCANPAY_RPC_URL |
https://api.devnet.solana.com |
Solana RPC endpoint |
SCANPAY_PORT |
8484 |
Server port |
🧪 Detected Vulnerabilities
Python
eval()/exec()— code injectionsubprocesswithshell=True— command injectionpickle.loads()— deserialization attacksos.system()— command injection- SQL injection patterns
- Path traversal (
../) - Hardcoded credentials
- And more...
JavaScript/TypeScript
eval()— code injectioninnerHTML— XSSdocument.write()— XSSnew Function()— code injection- SQL 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
安装
把 scanpay 添加到你的客户端。选择你正在使用的那个。
claude mcp add scanpay-mcp-server -- npx -y scanpay-mcp-servercodex mcp add scanpay-mcp-server -- npx -y scanpay-mcp-serveramp mcp add scanpay-mcp-server -- npx -y scanpay-mcp-server{
"mcpServers": {
"scanpay-mcp-server": {
"command": "npx",
"args": [
"-y",
"scanpay-mcp-server"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"scanpay-mcp-server": {
"command": "npx",
"args": [
"-y",
"scanpay-mcp-server"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"scanpay-mcp-server","command":"npx","args":["-y","scanpay-mcp-server"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"scanpay-mcp-server": {
"command": "npx",
"args": [
"-y",
"scanpay-mcp-server"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"scanpay-mcp-server": {
"command": "npx",
"args": [
"-y",
"scanpay-mcp-server"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"scanpay-mcp-server": {
"command": "npx",
"args": [
"-y",
"scanpay-mcp-server"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"scanpay-mcp-server": {
"type": "local",
"command": "npx",
"args": [
"-y",
"scanpay-mcp-server"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"scanpay-mcp-server": {
"command": {
"path": "npx",
"args": [
"-y",
"scanpay-mcp-server"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y scanpay-mcp-serverRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
评分
39 / 100
不完整
- 文档25/25
- 维护19/25
- 可信度6/20
- 能力0/15
- 安装体验12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 13 days ago
- Has a release history
- Repository is not archived
- No licence detected
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
版本历史
| 版本 | 发布于 |
|---|---|
| 0.2.0最新 | 2026年8月12日 |