Machina

v0.1.1
io.github.NyTerry/machina-mcp Checked 1 day ago Published 29 days ago

x402-powered AI agent services — URL extraction, PDF processing, code scanning, and more.

Values you need

VariableWhat it is
MACHINA_WALLET_KEYrequired secret Ethereum private key (hex, 0x-prefixed) for x402 payments in USDC on Base

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add machina-mcp -e 'MACHINA_WALLET_KEY=<MACHINA_WALLET_KEY>' -- uvx machina-mcp==0.1.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "machina-mcp": {
      "args": [
        "machina-mcp==0.1.1"
      ],
      "command": "uvx",
      "env": {
        "MACHINA_WALLET_KEY": "<MACHINA_WALLET_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "machina-mcp": {
      "args": [
        "machina-mcp==0.1.1"
      ],
      "command": "uvx",
      "env": {
        "MACHINA_WALLET_KEY": "<MACHINA_WALLET_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "MACHINA_WALLET_KEY",
      "id": "machina-wallet-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "machina-mcp": {
      "args": [
        "machina-mcp==0.1.1"
      ],
      "command": "uvx",
      "env": {
        "MACHINA_WALLET_KEY": "${input:machina-wallet-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.machina-mcp]
command = "uvx"
args = ["machina-mcp==0.1.1"]
env = { "MACHINA_WALLET_KEY" = "<MACHINA_WALLET_KEY>" }

For AI agents

  1. Ask the user for: MACHINA_WALLET_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: url_extract, scan_python, validate_email, validate_email_bulk, domain_intel, pdf_inspect, pdf_extract, pdf_extract_large.
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json