x402-preflight-mcp
# x402-preflight-mcp
Zero-dependency Model Context Protocol (MCP) server exposing **16 deterministic, zero-LLM, pay-per-call x402 v2 microservices** settled in **USDC on Base (`eip155:8453`) and Solana (`solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`)**.
No API keys, no subscriptions, no rate-limit tiers — pay `$0.01–$0.05` USDC per call via standard `x402` v2 `payment-signature` headers.
## Quick Start (Zero-Install)
```bash
npx -y github:animus3d/x402-preflight-mcp
```
### Claude Desktop / Cursor / Windsurf MCP Config
```json
{
"mcpServers": {
"x402-preflight": {
"command": "npx",
"args": ["-y", "github:animus3d/x402-preflight-mcp"]
}
}
}
```
## Tools & Pricing (16 Deterministic x402 v2 Endpoints)
| Tool | Endpoint | Price (USDC) | Category |
|---|---|---:|---|
| `json_config_preflight` | `POST /v1/qa/json-config-preflight` | `$0.01` | Developer Tools |
| `solidity_quickscan` | `POST /v1/audit/solidity-quickscan` | `$0.05` | Security |
| `i18n_json_qa` | `POST /v1/qa/i18n-json` | `$0.02` | Developer Tools |
| `csv_json_reconcile` | `POST /v1/reconcile/csv-json` | `$0.03` | Data |
| `prompt_injection_scan` | `POST /v1/security/prompt-injection-honeypot-scan` | `$0.02` | Security |
| `diff_bug_triage` | `POST /v1/code/diff-bug-triage` | `$0.05` | Developer Tools |
| `sharpe_cvar_tearsheet` | `POST /v1/quant/sharpe-cvar-tearsheet` | `$0.04` | Finance |
| `amm_slippage_il` | `POST /v1/defi/amm-slippage-impermanent-loss` | `$0.03` | DeFi |
| `evm_tx_risk_preflight` | `POST /v1/crypto/evm-tx-risk-preflight` | `$0.05` | Security |
| `mcp_tool_schema_validator` | `POST /v1/agent/mcp-tool-schema-validator` | `$0.02` | AI Agents |
| `dependency_typosquat_audit` | `POST /v1/sec/dependency-typosquat-audit` | `$0.03` | Security |
| `cron_systemd_auditor` | `POST /v1/ops/cron-systemd-auditor` | `$0.02` | DevOps |
| `sql_migration_lock_analyzer` | `POST /v1/ops/sql-migration-lock-analyzer` | `$0.04` | DevOps |
| `openapi_breaking_diff` | `POST /v1/ops/openapi-breaking-diff` | `$0.04` | Developer Tools |
| `jwt_oidc_security_linter` | `POST /v1/ops/jwt-oidc-security-linter` | `$0.03` | Security |
| `github_actions_supplychain_pin` | `POST /v1/ops/github-actions-supplychain-pin` | `$0.03` | Security |
## x402 Payment Flow
1. Call any MCP tool without `_paymentSignature` to receive the exact `x402` v2 `402` challenge (`accepts` for Base USDC and Solana USDC + `extensions.bazaar` schemas).
2. Sign an EIP-3009 (Base) or SPL Token (Solana) authorization with your agent wallet (Coinbase AgentKit, BankrBot, AgentCash, etc.).
3. Re-invoke the tool with `_paymentSignature` (or set `X402_PAYMENT_SIGNATURE`) to settle on-chain via Ultravioleta Facilitator and receive the deterministic JSON report.
## Discovery & Specs
- **OpenAPI 3.1**: [`openapi.json`](./openapi.json)
- **A2A Agent Card**: [`.well-known/agent.json`](./.well-known/agent.json)
- **Catalog**: [`catalog.json`](./catalog.json)
## Glama MCP Server Listing
View this server on [Glama MCP Servers](https://glama.ai/mcp/servers/@animus3d/x402-preflight-mcp) to:
- browse all 16 deterministic security, quant, and DevOps tools and inspect quality scores
- test the server online using [MCP Inspector](https://glama.ai/mcp/inspector)
[](https://glama.ai/mcp/servers/@animus3d/x402-preflight-mcp)
## License
MIT
TDQS
Scored across 16 tools
Each tool targets a distinct analysis domain, so an agent can usually map intent to one tool. There is minor overlap between prompt_injection_scan and mcp_tool_schema_validator, since both can involve prompt-injection or description-poisoning checks.
All names use lowercase snake_case and are descriptive domain-first identifiers. The suffix/action style varies (preflight, scan, qa, audit, analyzer, linter, diff), but the overall convention remains predictable and readable.
Sixteen tools is slightly over the typical sweet spot, but each tool covers a distinct preflight/audit domain and none appear redundant. The set is broad but still reasonably scoped for a multi-domain static-checking server.
The server offers broad coverage across config, security, dependency, infrastructure, API, and financial preflight checks. No obvious lifecycle operations are missing for a stateless analyzer suite, though some adjacent domains such as IaC or container config auditing are not covered.