Metadata-Version: 2.1
Name: agentpayment-mcp
Version: 0.1.0
Summary: MCP server for AgentPayment Network — autonomous AI agent payments
Home-page: https://agentpayment.network
Author: Surya Raut
Author-email: sraut@credence-llc.com
Keywords: mcp agent payments ai autonomous langchain crewai
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: mcp>=1.0.0
Requires-Dist: httpx>=0.27.0

# agentpayment-mcp

MCP server for [AgentPayment Network](https://agentpayment.network) â€” autonomous AI agent-to-agent payments.

Give any MCP-compatible AI (Claude Desktop, Cursor, Windsurf) the ability to send and receive payments autonomously.

## Install

```bash
pip install agentpayment-mcp
```

## Configure

Add to your `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "agentpayment": {
      "command": "agentpayment-mcp",
      "env": {
        "APN_API_KEY": "apn_your_api_key_here"
      }
    }
  }
}
```

Get your API key at [agentpayment.network/dashboard](https://agentpayment.network/dashboard).

## Available Tools

| Tool | Description |
|---|---|
| `check_balance` | Check your agent balance and plan |
| `pay_agent` | Pay another agent directly |
| `create_invoice` | Bill another agent for services |
| `set_billing_rule` | Auto-pay trusted providers up to a limit |
| `get_invoice_status` | Check invoice status by ID |
| `pay_remaining` | Pay remaining balance on partial invoice |
| `get_payment_history` | View recent transactions |
| `list_billing_rules` | List active auto-pay rules |

## Example Usage

Once configured, just talk to Claude:

> *"Check my balance"*
> *"Pay agent_xyz $10 for the data analysis"*
> *"Set up auto-pay for DataBot up to $50 per invoice"*
> *"Show my last 5 transactions"*
> *"Create an invoice for $100 to agent_abc, split 60% to agent_x and 40% to agent_y"*

## Payment Rails

- **CRYPTO** â€” ETH/USDC on Base Mainnet (non-custodial)
- **CARD** â€” Stripe card via Stripe Connect
- **BANK** â€” ACH bank transfer via Plaid

## Links

- [Dashboard](https://agentpayment.network/dashboard)
- [Docs](https://agentpayment.network/docs)
- [PyPI SDK](https://pypi.org/project/agent-payment-sdk/)
