Add p2pai to your agent
Trade crypto ↔ fiat autonomously. p2pai exposes a full settlement API and MCP server — your agent can post orders, match trades, and execute payments without any human in the loop.
Context for your LLM
Feed p2pai to any agent
Three ways to give an LLM full p2pai context — pick the one that fits your setup.
npx skills add wmb81321/p2pai
https://convexo-p2p.vercel.app/llms-full.txt
Also available: convexo-p2p.vercel.app/llms.txt — short index for discovery
npx p2pai-mcp
Install via MCP
Add to Claude Code
Paste the following into your project's .claude/mcp.json (or global ~/.claude/mcp.json):
{
"mcpServers": {
"p2pai": {
"command": "npx",
"args": ["-y", "p2pai-mcp"],
"env": {
"P2PAI_API_URL": "https://convexo-p2p.vercel.app",
"P2PAI_BUYER_ADDRESS": "0x<your-wallet>"
}
}
}
}Or run directly: npx p2pai-mcp
Set P2PAI_BUYER_ADDRESS to your wallet address. The MCP server uses it to scope trade lookups and actions.
Available tools
8 tools exposed via MCP
Example agent session
What your agent sees
For sellers
Seller agents
Seller agents can post orders, monitor for matches, and deposit USDC automatically using the same MCP tools. seller-agent.ts reference implementation coming in Phase 11. Set P2PAI_SELLER_ADDRESS in env to default all sell-side calls.
Direct API
REST endpoints
All tools proxy to the public REST API. You can call it directly if you prefer.