AgentPay Pharos
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AgentPay Pharos What's my wallet balance?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AgentPay Pharos
A drop-in MCP skill that gives AI agents a real on-chain wallet on Pharos — check balances, read live prices, move tokens, pay only when conditions are met, screen for scams, and buy x402 pay-per-use APIs, all from natural language.
agentpay-pharos is a Model Context Protocol server. Point any MCP-compatible client (Claude Desktop, Cursor, …) at it and your agent gains 20 payment & safety tools backed by a live wallet on the Pharos network — no glue code required.
✨ Highlights
Full wallet control — balances, transfers, wrap/unwrap, gas estimates, and history for PHRS / WPHRS, USDC, USDT, WETH.
Conditional & batch payments — "pay 5 USDC only if WETH > $2000", or fan out a payroll run in one call.
Built-in safety net — GoPlus-powered screening of wallets, tokens, and contracts;
safe_transferrefuses flagged recipients. No API key needed.x402 native — agents autonomously pay for metered HTTP APIs over the x402 protocol.
Testnet → mainnet — develop on Atlantic, ship to Pacific by flipping one env var.
Related MCP server: agenti
🧰 Tools
Payments & wallet
Tool | What it does |
| All token balances (PHRS, USDC, USDT, WETH, WPHRS) in one call |
| Snapshot of holdings + recent activity |
| Transfer a stablecoin or any supported token |
| Like |
| Multi-recipient payout with a per-token summary |
| Send only if a price condition holds |
| Combine several price/threshold conditions |
| Wrap/unwrap native PHRS ↔ WPHRS |
| Preview gas cost before sending |
| Recent transactions for the wallet |
Prices & network
Tool | What it does |
| Live price for a supported token |
| Pharos network status / metrics |
Safety (GoPlus)
Tool | What it does |
| Risk-screen an address |
| Detect honeypots / risky tokens |
| Screen a contract before interacting |
x402 & payment requests
Tool | What it does |
| Pay for and fetch an x402-gated HTTP resource |
| Generate a payment request others can fulfill |
| Confirm an expected payment landed |
🚀 Install
npm install -g pharos-paygateFrom source:
git clone https://github.com/mo726278282/agentpay-pharos.git
cd agentpay-pharos && npm install && npm run build⚙️ Configure
cp .env.example .envPRIVATE_KEY=your_wallet_private_key_here # dedicated, low-value key
NETWORK=testnet # "testnet" (Atlantic) or "mainnet" (Pacific)
CHAIN_ID=688689
RPC_URL=https://atlantic.dplabs-internal.com
MAINNET_RPC_URL=https://rpc.pharos.xyz
FACILITATOR_URL=https://x402.org/facilitatorRegister with your MCP client (Claude Desktop claude_desktop_config.json):
{
"mcpServers": {
"agentpay-pharos": {
"command": "pharos-paygate",
"env": { "PRIVATE_KEY": "your_wallet_private_key_here", "NETWORK": "testnet" }
}
}
}💬 Example prompts
"What's in my wallet right now?"
"Send 25 USDC to 0xabc…, but only if it isn't a flagged address."
"Pay 5 USDC to 0xdef… if WETH is above $2,000."
"Is token 0x123… safe to receive?"
"Buy access to this x402 API and fetch the data."
🛡️ Safety model
Screening is powered by GoPlus — malicious addresses, honeypot tokens, risky contracts — no API key required. safe_transfer refuses high-risk recipients outright. Treat these as guardrails, not guarantees.
🌐 Networks
Network | Env | Chain ID |
Atlantic (testnet) |
| 688689 |
Pacific (mainnet) |
| 1672 |
🧑💻 Development
npm run dev # run from source with tsx
npm run build # compile to dist/
npm run inspector # debug tools in the MCP Inspector⚠️ Disclaimer
This software signs and broadcasts real blockchain transactions with the key you provide. Use a dedicated wallet, start on testnet, and never commit your .env. Nothing here is financial advice — you are responsible for every transaction your agent makes.
📄 License
MIT
Available Tools
20 toolsbatch_sendA
Send tokens to multiple recipients in one call and get a per-recipient result summary
Inputs: recipients (required), memo, network.
check_contract_safetyB
Analyze a smart contract for verification status, proxy patterns, and known risk items using the GoPlus Security API
Inputs: contract_address (required), chain_id, network.
check_token_safetyA
Analyze a token contract for honeypots, taxes, mint risk, and ownership risks using the GoPlus Security API
Inputs: token_address (required), chain_id, network.
check_wallet_safetyB
Screen a wallet address for malicious activity, blacklists, and sanctions using the GoPlus Security API
Inputs: address (required), chain_id, network.
conditional_paymentA
Send a payment only if a token price condition is met, e.g. send 5 USDC if WETH price > 2000
Inputs: to (required), amount (required), token (required), condition_token (required), +3 more.
create_payment_requestB
Generate a structured payment request payable to this wallet, with an expiry and a human readable payment URI
Inputs: amount (required), token (required), memo, expires_in_minutes, +1 more.
estimate_gasA
Estimate the gas cost of a token transfer in PHRS and USD
Inputs: to (required), token (required), amount (required), network.
get_network_statsA
Get live Pharos Atlantic Testnet stats: block number, gas price, and latest block details
Inputs: network.
get_token_priceA
Get the live USD price of PHRS, USDC, USDT, or WETH from CoinGecko
Inputs: token (required), currency, network.
get_transaction_historyB
Get recent transactions for an address from the Pharos Atlantic explorer
Inputs: address (required), limit, network.
get_wallet_balancesC
Get PHRS (native), USDC, USDT, WETH, and WPHRS balances for any wallet on Pharos Atlantic Testnet
Inputs: address (required), network.
get_wallet_profileA
Build a full wallet intelligence report: balances with USD values, transaction count, wallet age estimate, and GoPlus safety status
Inputs: address (required), network.
multi_condition_paymentA
Send a payment only if multiple token price conditions pass, combined with AND or OR logic
Inputs: to (required), amount (required), token (required), conditions (required), +2 more.
safe_transferA
Screen the recipient with GoPlus first, then send the token only if the recipient is not high risk
Inputs: to (required), amount (required), token (required), skip_safety_check, +1 more.
send_tokenC
Send any supported token (USDC, USDT, WETH, WPHRS) to an address on Pharos Atlantic Testnet
Inputs: token (required), to (required), amount (required), network.
send_usdcC
Send USDC to an address on Pharos Atlantic Testnet, with an optional memo
Inputs: to (required), amount (required), memo, network.
unwrap_phrsA
Unwrap WPHRS back into native PHRS (WETH-style withdraw)
Inputs: amount (required), network.
verify_payment_receivedB
Check recent transactions for a matching incoming payment of an expected amount and token
Inputs: expected_amount (required), token (required), wallet_address (required), expected_from, +2 more.
wrap_phrsA
Wrap native PHRS into WPHRS (WETH-style deposit)
Inputs: amount (required), network.
x402_pay_for_resourceA
Fetch an x402-protected URL, automatically paying for it with USDC if the price is within max_price
Inputs: url (required), max_price (required), network.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Most tools have clearly distinct purposes, but there is some overlap among sending variants (send_token, safe_transfer, conditional_payment, etc.), which could cause misselection if descriptions are not carefully read.
All tools use snake_case with a verb_noun pattern, which is consistent. A few names like 'x402_pay_for_resource' break the pattern slightly, but overall it's predictable.
20 tools is on the higher end but still reasonable for a comprehensive payment and DeFi server. Each tool serves a specific function, and the count is justified by the scope.
The tool set covers all major workflows: sending (multiple variants), receiving verification, wrapping/unwrapping, safety checks, balances, network stats, and pricing. No obvious gaps for the declared testnet domain.
Maintenance
Related MCP Connectors
Pay-per-use MCP tools for AI agents. USDC on Base via x402. No API keys.
Policy-gated MCP treasury for AI agents — x402 subscribe, 50+ tools, multi-chain.
Wallet and payments for AI agents: auto-pay x402 APIs in USDC on XDC, within on-chain limits.
Give your AI agent an x402 wallet: discover and pay for services in USDC, or earn from your own.
Related MCP Servers
- AlicenseBqualityBmaintenanceProvides permissionless wallet infrastructure for AI agents to manage wallets, sign transactions, and handle tokens across Solana and all EVM-compatible chains. It includes 29 specialized tools for on-chain operations, featuring built-in security guards and automated x402 payment processing without KYC requirements.401,180 npm3MIT
- AlicenseNot gradedqualityBmaintenanceEnables any MCP-compatible LLM client to autonomously hold, spend, earn, and receive cryptocurrency using native MCP tools, no code required.4 npm84ISC
- AlicenseBqualityDmaintenanceProvides AI agents with a complete payments toolkit on the Pharos Atlantic Testnet, including balance checks, token transfers, conditional payments, batch sends, transaction history, gas estimation, and x402 protocol support.205 npmMIT
- AlicenseNot gradedqualityCmaintenanceMCP server that lets any AI agent operate a wallet directly on-chain: create wallets, send, swap, bridge, and deploy contracts across EVM and Bitcoin networks.1MIT