machina-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
machina-mcp
Machina as an MCP server. Use Machina's x402-powered agent services directly from Claude Desktop, Cursor, or any MCP-compatible AI host — no x402 integration required.
Payments happen automatically on every tool call. Configure once, pay per use.
Tools
Tool | What it does | Cost |
| Fetch any URL → clean Markdown | $0.005 |
| Scan Python code for security vulnerabilities | $0.020 |
| Validate a single email (syntax, MX, SMTP) | $0.007 |
| Validate up to 100 emails | $0.500 |
| DNS, WHOIS, SSL, tech stack for a domain | $0.050 |
| PDF page count + metadata | FREE |
| PDF → Markdown (≤50 pages) | $0.050 |
| PDF → Markdown (≤200 pages) | $0.180 |
Payments are in USDC on Base (Coinbase's L2). Gas fees are fractions of a cent.
Related MCP server: agentreader-mcp
Quick Start
1. Install
pip install machina-mcp2. Get a wallet + fund it
You need an Ethereum wallet with a small USDC balance on Base mainnet.
Option A — New wallet (easiest):
python -c "from eth_account import Account; a = Account.create(); print('Address:', a.address); print('Key:', a.key.hex())"Copy the address and send it $1–5 USDC on Base via Coinbase or bridge.base.org.
Option B — Existing wallet: Export your private key from MetaMask: Account Details → Export Private Key.
3. Set your key
export MACHINA_WALLET_KEY=0xYOUR_PRIVATE_KEY4. Add to Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"machina": {
"command": "machina-mcp",
"env": {
"MACHINA_WALLET_KEY": "0xYOUR_PRIVATE_KEY"
}
}
}
}Restart Claude Desktop. The 8 Machina tools will appear automatically.
Usage Examples
Once connected, ask Claude:
"Extract the content from https://example.com" → uses
url_extract"Scan this Python code for security issues: [paste code]" → uses
scan_python"Check if john@example.com is a real email" → uses
validate_email"Get DNS and WHOIS info for openai.com" → uses
domain_intel"How many pages is this PDF?" → uses
pdf_inspect(free)"Extract text from report.pdf" → uses
pdf_extract
Configuration
Env var | Required | Default | Description |
| ✅ | — | Ethereum private key (hex, 0x-prefixed) |
| ❌ |
| CAIP-2 network ID (Base mainnet) |
| ❌ |
| Machina API base URL |
Testnet mode (free, mock payments):
export MACHINA_NETWORK=eip155:84532
export MACHINA_BASE_URL=https://mach402.dev # testnet endpoints at same URL when TESTNET_MODE=trueHow payments work
Your agent calls a Machina MCP tool (e.g.
url_extract)The MCP server sends the request to
mach402.devMachina responds with a 402 Payment Required + exact USDC amount
The MCP server signs and sends the x402 payment automatically using your wallet key
Machina verifies payment on-chain and returns the result
The result is passed back to your agent
The agent never sees any of this — it just calls a tool and gets a result.
Running standalone (for testing)
# Test with MCP Inspector
npx @modelcontextprotocol/inspector machina-mcp
# Or run directly
export MACHINA_WALLET_KEY=0x...
machina-mcpPricing
Machina charges per call in USDC on Base mainnet. Payments are settled on-chain via Coinbase CDP. There are no subscriptions, no minimums, no monthly fees.
A $5 USDC balance covers ~1,000 URL extractions or ~250 Python code scans.
Links
API docs: https://mach402.dev/docs
Buyer guide: https://mach402.dev/docs/buyer-guide
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
17 pay-per-call web, finance, legal and onchain tools for AI agents. USDC on Base via x402/MPP.
8 pay-per-call web intel tools over MCP. Free discovery, calls settle in USDC on Base (x402).
Production-grade MCP gateway delivering 8 real-time AI tools with instant x402 micropayments settled in USDC on Base Mainnet or SPL-USDC on Solana. Features Basescan contract auditing, wallet analytics, headless browser scraping, and pre-scraped oracle data feeds.
Production-grade MCP gateway delivering 8 real-time AI tools with instant x402 micropayments settled in USDC on Base Mainnet or SPL-USDC on Solana. Features Basescan contract auditing, wallet analytics, headless browser scraping, and pre-scraped oracle data feeds.
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides AI agents with SSRF-protected URL intelligence and 32 paid REST/MCP tools, plus a free catalog search, with payments in USDC on Base Mainnet.35Apache 2.0
- AlicenseNot gradedqualityFmaintenanceMCP server providing 11 pay-per-call web intelligence tools (page reading, PDF extraction, RSS parsing, screenshots, summarization, structured data extraction) for AI agents, paid automatically in USDC via the x402 protocol on Base mainnet with no API keys required.36 npmMIT
- FlicenseNot gradedqualityDmaintenance53 security & enrichment MCP tools for AI agents. Contract scanning, threat intel, OSINT, crypto data, DNS/WAF recon. Pay-per-call via HTTP 402 + USDC on Base mainnet. No API keys. First call free.-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to use pay-per-use web scraping, Base blockchain analytics, and PDF text extraction tools, monetized via x402 USDC micropayments.MIT