MCP Server (Agent)
Wallet
Auto-generated wallet management and funding.
Auto-Generated Wallet
On first run, the MCP server generates a wallet and stores it at:
~/.nanocrawl/wallet.jsonThe file has owner-only permissions (0600). No private key ever appears in commands, env vars, or config files.
Funding
The wallet needs USDC on Arc Testnet to pay for content.
- Run
npx nanocrawlto see your wallet address - Go to faucet.circle.com
- Select Arc Testnet
- Paste your wallet address
- Request USDC
Gateway Deposits
The MCP server manages Gateway deposits automatically:
- On first
browse(), it checks the Gateway balance - If low, it deposits from the on-chain wallet (default: 1 USDC)
- Subsequent payments draw from the Gateway balance
- No manual deposit management needed
Using an Existing Key
To use a specific private key instead of the auto-generated wallet:
export NANOCRAWL_BUYER_PRIVATE_KEY=0xYourPrivateKeyThis takes priority over ~/.nanocrawl/wallet.json.