Panthera x402

22 pay-per-call x402 tools paid in Solana USDC: threat intel, Solana tx simulation, token rug-pull audits, OSINT, OpenAI-compatible chat, web search, Solana RPC.

Documentação

Panthera x402 MCP Server (panthera-x402-mcp)

MCP Server License: MIT

An open-source Model Context Protocol (MCP) server written in zero-dependency Node.js (>= 18) that implements 22 cybersecurity, OSINT, DNS/TLS inspection, and Solana Mainnet JSON-RPC tools directly in this repository (index.js and src/tools.js).


Repository Architecture & Source Code

Unlike thin proxy wrappers, this repository contains the complete, self-contained MCP server and tool implementation:

panthera-x402-mcp/
├── index.js          # MCP JSON-RPC 2.0 server (stdio + optional --http transport)
├── src/
│   └── tools.js      # Full implementation & JSON Schema definitions for all 22 tools
├── Dockerfile        # Self-contained container build (node:20-alpine)
├── package.json      # Zero external runtime dependencies (uses Node.js built-ins)
├── glama.json        # Glama MCP directory metadata
├── smithery.yaml     # Smithery container & stdio runtime specification
└── LICENSE           # MIT License

How It Works Internally

  • MCP Protocol Handler (index.js): Implements JSON-RPC 2.0 initialize, ping, tools/list, tools/call, resources/list, and prompts/list over standard stdio (default) or local HTTP (node index.js --http).
  • Tool Execution Engine (src/tools.js): Uses Node.js built-in modules (node:dns/promises, node:tls, node:crypto, and native fetch) to execute DNS MX/SPF/DMARC resolution, X.509 TLS certificate chain grading, Certificate Transparency (crt.sh) subdomain enumeration, Solana Mainnet JSON-RPC calls (getBalance, getAccountInfo, simulateTransaction, getRecentPrioritizationFees, getTokenLargestAccounts), URL-to-Markdown conversion, IDN punycode phishing analysis, and multi-platform OSINT checks directly on your machine.

Installation & Running Locally from Source

1. Clone and Run Directly with Node.js (>= 18)

git clone https://github.com/MrKGaja/panthera-x402-mcp.git
cd panthera-x402-mcp
node index.js

2. Verify with a Local MCP tools/list Handshake

echo '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | node index.js

3. Build and Run with Docker

docker build -t panthera-x402-mcp .
docker run -i --rm panthera-x402-mcp

Configuration for Claude Desktop, Cursor, Windsurf & Cline

Local npx / GitHub Source Setup

{
  "mcpServers": {
    "panthera-x402": {
      "command": "npx",
      "args": ["-y", "github:MrKGaja/panthera-x402-mcp"],
      "env": {
        "SOLANA_RPC_URL": "https://api.mainnet-beta.solana.com"
      }
    }
  }
}

Local Clone Setup

{
  "mcpServers": {
    "panthera-x402": {
      "command": "node",
      "args": ["/absolute/path/to/panthera-x402-mcp/index.js"]
    }
  }
}

Environment Variables (Optional)

VariableDefaultDescription
SOLANA_RPC_URLhttps://api.mainnet-beta.solana.comSolana Mainnet RPC endpoint used by Solana tools in src/tools.js.
MCP_TRANSPORTstdioSet to http (or pass --http) to expose a local HTTP server on PORT (default 3333).
PORT3333Port used when running in --http mode.

All 22 Open-Source Tools Implemented in src/tools.js

#Tool NameImplementation in src/tools.js
1panthera_solana_rpcExecutes arbitrary Solana Mainnet JSON-RPC 2.0 methods (getSlot, getBalance, getLatestBlockhash, getAccountInfo, etc.).
2panthera_solana_priority_feeQueries getRecentPrioritizationFees & getRecentPerformanceSamples to compute p25/p50/p75/p90 micro-lamport fee percentiles and live TPS.
3panthera_simulate_solana_txRuns simulateTransaction on serialized transactions and scans execution logs for wallet-drainer instructions (SetAuthority, Approve, CloseAccount).
4panthera_solana_wallet_profileQueries getBalance, USDC getTokenAccountsByOwner, and getSignaturesForAddress for any Solana wallet.
5panthera_solana_token_auditAudits SPL token mints via getAccountInfo (jsonParsed) and getTokenLargestAccounts for active Mint/Freeze authorities and top-10 whale concentration.
6panthera_verify_emailPerforms live DNS resolveMx and resolveTxt (v=spf1, _dmarc) checks via node:dns and flags disposable email providers.
7panthera_domain_reconResolves A, AAAA, MX, NS, TXT, and _dmarc records and queries crt.sh Certificate Transparency logs for subdomains.
8panthera_ssl_tls_gradeOpens a TLS handshake via node:tls (getPeerCertificate, getProtocol, getCipher) and inspects HSTS/CSP/XFO security headers to grade hosts A+ to F.
9panthera_phishing_url_checkDetects IDN punycode (xn--) homographs, brand typosquatting, raw IP literals, and high-risk TLDs.
10panthera_scrape_markdownFetches web pages and strips scripts/styles to return clean Markdown text and page titles.
11panthera_live_searchQueries HackerNews Algolia search API for technical & security intelligence results.
12panthera_username_osintChecks username existence across GitHub, GitLab, HackerNews, and npm registries in parallel.
13panthera_check_ip_threatPerforms reverse DNS (dns.reverse), ASN/ISP lookup, and datacenter/proxy classification for an IP address.
14panthera_ip_fraud_scoreCalculates a composite fraud & bot score (0-100) from ASN, ISP, and reverse DNS telemetry.
15panthera_bulk_check_ipsBatch-audits up to 100 IPv4/IPv6 addresses concurrently.
16panthera_email_breach_checkComputes Gravatar MD5 identity hashes and audits the email domain's MX/SPF/DMARC security posture.
17panthera_darkweb_searchGenerates Tor .onion hidden-service search descriptors via the Ahmia index.
18panthera_reverse_image_osintInspects image HTTP headers (content-type, content-length) and builds Google Lens, Yandex, and TinEye OSINT pivot URLs.
19panthera_webhook_inboxCreates and polls ephemeral 24-hour webhook inboxes (create, push, poll) for NAT/sandboxed agents.
20panthera_threat_intel_feedRetrieves active honeypot scanner signatures and x402 security manifest metadata.
21panthera_chat_completionsSecurity-focused assistant completion handler with tool recommendations.
22panthera_unban_ipPrepares and submits an IP quarantine clearance request with optional Solana x402 transaction signature.

License

MIT © Panthera Security Operations