mcpField
M
Machina

Machina

Local
github.com/NyTerryDeveloper Tools0Updated 1w ago

About Machina

Machina is an MCP server for using Machina's x402-powered services from MCP-compatible AI hosts. It covers URL extraction, PDF processing, Python security scanning, email validation and domain intelligence, with per-call USDC payments handled by the server.

Key features

  1. 01URL-to-Markdown extraction
  2. 02PDF metadata and text extraction
  3. 03Python vulnerability scanning
  4. 04Single and bulk email validation
  5. 05Domain DNS, WHOIS, SSL and tech data
  6. 06Automatic x402 USDC payments

Use cases

  1. 01Extract readable content from a URL
  2. 02Inspect or extract text from PDFs
  3. 03Check Python code for security issues
  4. 04Verify email addresses or inspect a domain

MCP support

Exposes eight Machina services as tools to MCP clients. It handles x402 payment requests automatically using the configured wallet key.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"nyterry-machina": {
"command": "uvx",
"args": [
"machina-mcp"
],
"env": {
"MACHINA_WALLET_KEY": "<MACHINA_WALLET_KEY>"
}
}
}
}
Run commanduvx machina-mcp
Environment variables to set
MACHINA_WALLET_KEYSecretEthereum private key (hex, 0x-prefixed) for x402 payments in USDC on Base

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
pypimachina-mcp0.1.1

Tools

8

Saved tool list · updated 6d ago

ParameterTypeRequiredDescription
urlstringYes

Details

From the project README

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

ToolWhat it doesCost
url_extractFetch any URL → clean Markdown$0.005
scan_pythonScan Python code for security vulnerabilities$0.020
validate_emailValidate a single email (syntax, MX, SMTP)$0.007
validate_email_bulkValidate up to 100 emails$0.500
domain_intelDNS, WHOIS, SSL, tech stack for a domain$0.050
pdf_inspectPDF page count + metadataFREE
pdf_extractPDF → Markdown (≤50 pages)$0.050
pdf_extract_largePDF → Markdown (≤200 pages)$0.180

Payments are in USDC on Base (Coinbase's L2). Gas fees are fractions of a cent.


Quick Start

1. Install
pip install machina-mcp
2. 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_KEY
4. 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 [email protected] 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 varRequiredDefaultDescription
MACHINA_WALLET_KEY✅—Ethereum private key (hex, 0x-prefixed)
MACHINA_NETWORK❌eip155:8453CAIP-2 network ID (Base mainnet)
MACHINA_BASE_URL❌https://mach402.devMachina 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=true

How payments work

  1. Your agent calls a Machina MCP tool (e.g. url_extract)
  2. The MCP server sends the request to mach402.dev
  3. Machina responds with a 402 Payment Required + exact USDC amount
  4. The MCP server signs and sends the x402 payment automatically using your wallet key
  5. Machina verifies payment on-chain and returns the result
  6. 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-mcp

Pricing

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


License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.