AgentPay Pharos

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.

Category
Visit Server

README

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_transfer refuses 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.

🧰 Tools

Payments & wallet

Tool What it does
get_wallet_balances All token balances (PHRS, USDC, USDT, WETH, WPHRS) in one call
get_wallet_profile Snapshot of holdings + recent activity
send_usdc / send_token Transfer a stablecoin or any supported token
safe_transfer Like send_token, but blocks known-malicious recipients
batch_send Multi-recipient payout with a per-token summary
conditional_payment Send only if a price condition holds
multi_condition_payment Combine several price/threshold conditions
wrap_phrs / unwrap_phrs Wrap/unwrap native PHRS ↔ WPHRS
estimate_gas Preview gas cost before sending
get_transaction_history Recent transactions for the wallet

Prices & network

Tool What it does
get_token_price Live price for a supported token
get_network_stats Pharos network status / metrics

Safety (GoPlus)

Tool What it does
check_wallet_safety Risk-screen an address
check_token_safety Detect honeypots / risky tokens
check_contract_safety Screen a contract before interacting

x402 & payment requests

Tool What it does
x402_pay_for_resource Pay for and fetch an x402-gated HTTP resource
create_payment_request Generate a payment request others can fulfill
verify_payment_received Confirm an expected payment landed

🚀 Install

npm install -g pharos-paygate

From source:

git clone https://github.com/mo726278282/agentpay-pharos.git
cd agentpay-pharos && npm install && npm run build

⚙️ Configure

cp .env.example .env
PRIVATE_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/facilitator

Register 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) NETWORK=testnet 688689
Pacific (mainnet) NETWORK=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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured