mcp-technical-verification

v1.0.4
mcp-technical-verification Checked 1 hour ago Published 1 day ago

Production-ready Model Context Protocol (MCP) server & TypeScript Client SDK providing deterministic technical verification (SPF/DMARC/MX DNS audits, live TLS…

Deterministic Technical Verification MCP Server Production-Ready Apify Standby Server Actor & x402 Micropayment Engine for Autonomous AI Agents An enterprise-grade, stateless Model Context Protocol (MCP) server packaged as an Apify Standby Server Actor and Smithery.ai Registry Package. Specifically engineered to rank #1 in Machine-to-Machine (M2M) algorithmic tool routers (Claude Desktop, Cursor IDE, Devin, Cline, Windsurf, LangChain, CrewAI, AutoGen, ElizaOS, and Coinbase AgentKit), providing 7 ultra-fast, deterministic technical verification tools for autonomous AI agents.

Summary extracted from the README.

Deterministic Technical Verification MCP Server

Production-Ready Apify Standby Server Actor & x402 Micropayment Engine for Autonomous AI Agents

npm version npm downloads PyPI version GitHub Action Apify Actor Model Context Protocol Smithery Glama MCP server x402 Base USDC TypeScript License Zero-Exception Telemetry

An enterprise-grade, stateless Model Context Protocol (MCP) server packaged as an Apify Standby Server Actor and Smithery.ai Registry Package. Specifically engineered to rank #1 in Machine-to-Machine (M2M) algorithmic tool routers (Claude Desktop, Cursor IDE, Devin, Cline, Windsurf, LangChain, CrewAI, AutoGen, ElizaOS, and Coinbase AgentKit), providing 7 ultra-fast, deterministic technical verification tools for autonomous AI agents.

Monetized via Dual-Channel M2M Billing:

  1. Web2 Agents: Apify Pay-Per-Event (Actor.charge) at $0.001 - $0.005 / event with Bearer token authentication.
  2. Autonomous Web3 Agents: x402 EIP-712 Base USDC micropayments on Base (8453) allowing trustless, wallet-based consumption without requiring an Apify account.

⚡ Key Architectural Advantages

Feature Specification Impact for Autonomous AI Agents
Dual Billing Apify PPE + x402 Base USDC Seamless consumption for both Web2 enterprise agents and autonomous crypto-native agent swarms.
Transport Streamable HTTP (@modelcontextprotocol/sdk) Single persistent container endpoint (/mcp), zero container cold starts, sub-500ms warm response time.
Router SEO Vector-Matched Semantic Descriptions Packed with protocol keywords (SPF, DMARC, DKIM, TLS, DNSBL, robots.txt, CNAME) and explicit conditional triggers ("Use whenever...") ensuring LLM tool routers select tools with maximum semantic confidence.
SSRF Firewall Dual-Stack IP Sanitization (src/security/ssrf.ts) Pre-resolves DNS and blocks loopback, private RFC 1918 LAN, AWS/GCP cloud metadata (169.254.169.254), and IPv4-mapped IPv6 ranges before connecting.
Strict Timeouts Strict 3000ms Budget on Probes Enforces hard cancellation timeouts so external network failures never stall an agent loop.
Token Compression High-Signal JSON Schemas Returns dense booleans, risk scores, exact counts, and remediation strings. Omits bulky raw PEM certificates and HTML response bodies unless verbose: true is requested.
Zero-Exception Policy Structured 200 OK Telemetry Never throws unhandled exceptions on invalid domains, expired certificates, or NXDOMAIN. Returns { valid: false, errorCode: "...", reason: "..." }.
Fair Monetization Zero Charges on Failure Actor.charge() is strictly called only upon successful lookup. Failed queries and security-blocked requests are never billed.

🛠️ MCP Tools Capability Matrix (7 Tools)

                                 [ Autonomous AI Agent ]
                                            │
                        ┌───────────────────┴───────────────────┐
                        ▼ (Bearer APIFY_TOKEN)                  ▼ (X-PAYMENT Base USDC)
        ┌──────────────────────────────┐        ┌──────────────────────────────┐
        │ Apify Pay-Per-Event Billing  │        │ x402 Onchain Verification    │
        │ (Actor.charge)               │        │ (EIP-712 Base 8453 USDC)     │
        └──────────────────────────────┘        └──────────────────────────────┘
                                            │
                                            ▼ Streamable HTTP POST (/mcp)
+───────────────────────────────────────────────────────────────────────────────────────────+
|                       Apify Standby MCP Actor (Node.js 20 Alpine)                         |
|                                                                                           |
|   ┌─────────────────────────────┐             ┌───────────────────────────────────────┐   |
|   │ Health Check (/health)      │             │ SSRF Security Firewall & Non-Blocking │   |
|   │ Standby Container Watchdog  │             │ c-ares DNS (3000ms Strict Timeout)    │   |
|   └─────────────────────────────┘             └───────────────────────────────────────┘   |
|                                                               │                           |
|      ┌──────────────┬──────────────┬──────────────┬───────────┴──┬──────────────┬─────────┤
|      ▼              ▼              ▼              ▼              ▼              ▼         ▼
| ┌─────────┐   ┌─────────┐   ┌───────────┐   ┌───────────┐   ┌─────────┐   ┌─────────┐ ┌─────────┐
| │ Email   │   │ SSL/TLS │   │ Webhook   │   │ DNSBL     │   │ AI Bot  │   │Subdomain│ │Composite│
| │ Security│   │ Inspect │   │ Probe     │   │ Blacklist │   │ Firewall│   │Takeover │ │ Health  │
| └─────────┘   └─────────┘   └───────────┘   └───────────┘   └─────────┘   └─────────┘ └─────────┘
+───────────────────────────────────────────────────────────────────────────────────────────+
Tool Name Routing Trigger ("Use whenever...") Billable Event Price
audit_domain_email_security "Use whenever verifying custom domain setup, outbound email health, or vendor DNS security compliance." security-audit $0.001
inspect_ssl_certificate "Use whenever verifying HTTPS deployment health, SSL renewal status, or endpoint encryption compliance." ssl-inspection $0.001
verify_webhook_endpoint "Use whenever testing webhook reachability, API uptime, or post-deployment endpoint health." webhook-probe $0.001
check_dnsbl_spam_blacklists "Use whenever evaluating sender reputation, vetting outbound sales domains, or auditing IP deliverability status." dnsbl-check $0.002
audit_ai_crawler_firewall "Use whenever planning web scraping, verifying AI crawler accessibility, or checking RAG ingestion permissions." ai-firewall-audit $0.001
detect_subdomain_takeover "Use whenever performing DNS security hygiene, pre-deployment audits, or bug bounty vulnerability assessments." subdomain-takeover-scan $0.005
audit_complete_infrastructure_health "Use whenever performing post-deployment verification, client onboarding technical audits, or continuous infrastructure monitoring." composite-health-audit $0.003

📋 Tool Reference & Example Payloads

1. audit_complete_infrastructure_health

Bundles live DNS email security (SPF/DMARC/MX), SSL/TLS certificate inspection, and HTTP webhook reachability into a single consolidated 0-100 reliability score.

{
  "domain": "google.com",
  "verbose": false
}

Output:

{
  "valid": true,
  "domain": "google.com",
  "reliabilityScore": 100,
  "rating": "EXCELLENT",
  "emailSecurity": { "valid": true, "riskScore": 0, "status": "PASS" },
  "ssl": { "valid": true, "authorized": true, "daysUntilExpiration": 72 },
  "webhook": { "valid": true, "status": 200, "ttfbMs": 142 },
  "issues": [],
  "recommendations": ["Infrastructure is in excellent operational condition across DNS, TLS, and HTTP vectors."]
}

2. check_dnsbl_spam_blacklists

Queries 10+ real-time spam blacklists (Spamhaus ZEN, Barracuda, SpamCop, SORBS, Mailspike, UCEPROTECT, DroneBL).

{
  "target": "8.8.8.8",
  "verbose": false
}

Output:

{
  "valid": true,
  "target": "8.8.8.8",
  "ip": "8.8.8.8",
  "reputationScore": 100,
  "rating": "EXCELLENT",
  "clean": true,
  "totalChecked": 10,
  "listedCount": 0,
  "listings": []
}

3. audit_ai_crawler_firewall

Audits robots.txt and HTTP headers for AI scraping permissions across GPTBot, ClaudeBot, PerplexityBot, CCBot, Google-Extended, and ByteSpider.

{
  "domain": "openai.com",
  "verbose": false
}

4. detect_subdomain_takeover

Inspects CNAME records for dangling cloud provider pointers (AWS S3, GitHub Pages, Vercel, Heroku, Azure, CloudFront, Shopify).

{
  "domain": "sub.example.com",
  "verbose": false
}

🛡️ Zero-Exception Telemetry & Billing Policy

In production M2M workflows, AI agents must receive clean, predictable JSON responses. This Actor implements Zero-Exception Telemetry:

  1. Structured Failure Responses: When a user passes a nonexistent domain, NXDOMAIN, invalid URL, or closed port, the tool returns a standard 200 OK JSON object:
    {
      "valid": false,
      "errorCode": "DNS_NXDOMAIN",
      "reason": "Domain does not exist or has no DNS records: 'nonexistent-xyz-987.org'."
    }
    
  2. Strict SSRF Firewall: All targets are pre-filtered through src/security/ssrf.ts. The following ranges are blocked before any socket is opened:
    • Loopback (127.0.0.0/8, ::1)
    • Private RFC 1918 LAN (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)
    • Cloud Instance Metadata (169.254.169.254, 169.254.0.0/16)
    • IPv4-Mapped IPv6 representations (::ffff:127.0.0.1)
    • Carrier-grade NAT (100.64.0.0/10)
    • Non-routable / multicast / reserved networks
  3. No Charge on Failure: Actor.charge() is invoked strictly after successful technical verification. Failed DNS lookups, blocked SSRF attempts, connection timeouts, or malformed queries will NEVER decrement user funds.

🤖 Client Agent Configuration

1. Smithery.ai Registry Installation (One-Click)

npx -y @smithery/cli install @meanusarcanus/mcp-technical-verification

2. Claude Desktop (claude_desktop_config.json)

Option A: Local Stdio Runner (Free Trial & Pro with Token)

{
  "mcpServers": {
    "technical-verification": {
      "command": "npx",
      "args": ["-y", "mcp-technical-verification"],
      "env": {
        "APIFY_TOKEN": "<OPTIONAL_APIFY_API_TOKEN_FOR_UNLIMITED_PRO>"
      }
    }
  }
}

Option B: Hosted Apify Standby Server (Zero Local Dependency)

{
  "mcpServers": {
    "technical-verification": {
      "url": "https://meanusarcanus--mcp-technical-verification.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_APIFY_API_TOKEN>"
      }
    }
  }
}

3. Cursor IDE / Windsurf / Cline

Configure in Cursor Settings -> Features -> MCP:

  • Type: command
  • Command: npx -y mcp-technical-verification (add --token <APIFY_TOKEN> to unlock Pro)

4. Autonomous Web3 Agents (x402 Base USDC Micropayments)

Autonomous agents can transact trustlessly on Base using the x402 protocol without needing an Apify account: See Autonomous Agent Verification Hook for full setup.


💎 Tiers & Freemium Quota Policy

Feature Community Free Tier Pro / Cloud Tier
Daily Quota 10 checks / day Unlimited
Pricing $0.00 (Free) Pay-Per-Event ($0.001 - $0.005)
Basic DNS (SPF/DMARC/MX) ✅ Included ✅ Included
SSL/TLS Certificate Inspection ✅ Included ✅ Included
HTTP Webhook Probe ✅ Included ✅ Included
DNSBL Spam Blacklists (10+ lists) 🔒 Requires Pro ✅ Included
Subdomain Takeover Vulnerability Scan 🔒 Requires Pro ✅ Included
AI Crawler Firewall (robots.txt) 🔒 Requires Pro ✅ Included
Composite Infrastructure Health Score 🔒 Requires Pro ✅ Included
Activation Default on npx Add APIFY_TOKEN or x402 Base USDC

🤖 GitHub Action CI/CD Gate

Drop deterministic infrastructure and SSL verification directly into your deployment pipeline:

name: "Post-Deployment Verification Gate"
on:
  deployment_status:
  push:
    branches: [main]

jobs:
  verify:
    runs-on: ubuntu-latest
    steps:
      - name: Verify Live Domain & SSL Health
        uses: meanusarcanus/mcp-technical-verification@v1
        with:
          domain: "myapp.com"
          webhook-url: "https://myapp.com/api/webhook"
          min-score: "70" # Fails CI if composite score is < 70

Action Inputs & Outputs

Input Description Default
domain Target domain or hostname to audit (e.g. example.com) Optional
webhook-url Webhook or API endpoint URL to probe Optional
min-score Minimum acceptable reliability score (0-100) 70
fail-on-error Whether to fail the workflow step on low score or error true

Outputs: ${{ steps.verify.outputs.reliability-score }}, ${{ steps.verify.outputs.status }}, ${{ steps.verify.outputs.ssl-valid }}.


🚀 Development & Testing

Installation & Build

npm install
npm run build

Running Test Suite

npm test

Starting Standby Server Locally

npm start

The server binds to http://0.0.0.0:8080:

  • Health Check: GET http://0.0.0.0:8080/health
  • Streamable HTTP MCP Endpoint: POST http://0.0.0.0:8080/mcp

📄 License

This project is licensed under the Apache 2.0 License. See the LICENSE file for details.