AgentPay

AgentPay

AgentPay is the authorization layer between an AI agent and real spending. You define the rules — spending caps, allowed merchants, time windows — and every purchase attempt the agent makes is checked against them in real time. Approved transactions go through. Anything outside the mandate is blocked and logged. No more babysitting every agent action. No more runaway charges.

Category
访问服务器

README

AgentPay

smithery badge

Give your AI agent a wallet with rules it can't break.

AgentPay is the authorization layer between an AI agent and real spending. Install it into any MCP-compatible agent, define your rules once — spending caps, approved merchants, time windows — and every purchase the agent attempts is checked against them in real time. Approved transactions go through. Anything outside the mandate is blocked, logged, and surfaced to you.

Your agent runs autonomously. You stay in control.


How It Works

You install AgentPay into your agent
            ↓
   You set a spending mandate once
            ↓
     Agent runs autonomously
            ↓
   Before every purchase attempt:
   agent calls authorize_purchase
          ↓               ↓
   ✅ Approved      ❌ Denied
   Agent proceeds   Agent stops,
                    reports to you

AgentPay sits between your agent's intent and the actual transaction — it doesn't move money itself, it decides whether the agent is allowed to.


Install Into Your Agent

Option 1 — Natural language (Hermes, OpenClaw, and any agent with filesystem access)

Just tell your agent:

"Install the AgentPay MCP server from https://github.com/advaitgore/agent_payment. My API key is ap_xxxx."

The agent will add AgentPay to its MCP config automatically. No terminal needed.

Then set your mandate:

"Set my spending limit to $50 per transaction. Approved merchants: Amazon, Vercel, GitHub."


Option 2 — Hermes (CLI)

hermes mcp add agentpay \
  --url https://agentpayment-production.up.railway.app/mcp \
  --header "x-api-key: YOUR_API_KEY"

Get your API key at agent-payment-eight.vercel.app. Then in the Hermes chat, run /reload-mcp.


Option 3 — OpenClaw (CLI)

openclaw mcp add agentpay \
  --url https://agentpayment-production.up.railway.app/mcp \
  --header "x-api-key: YOUR_API_KEY"

Option 4 — Claude, Cursor, Windsurf (Smithery)

npx @smithery/cli install advaitgore/payguard --client claude

Replace --client claude with --client cursor or --client windsurf as needed. When prompted, paste your API key.


Option 5 — Any custom agent (direct config)

Add to your agent's MCP server list:

{
  "agentpay": {
    "type": "sse",
    "url": "https://agentpayment-production.up.railway.app/mcp",
    "headers": {
      "x-api-key": "YOUR_API_KEY"
    }
  }
}

Real-World Examples

Personal assistant agent

"You have $50 tonight. Uber and DoorDash only. Go."

{
  "daily_limit": 50,
  "allowed_merchants": ["uber.com", "doordash.com", "ubereats.com"]
}

Autonomous research agent

"$20 per run. API providers only."

{
  "max_per_transaction": 20,
  "allowed_merchants": ["openai.com", "serpapi.com", "anthropic.com"]
}

Company expense agent

"$500/week. Approved SaaS vendors only."

{
  "weekly_limit": 500,
  "allowed_merchants": ["notion.so", "vercel.com", "github.com", "figma.com"]
}

How the Agent Uses It

Once installed, your agent calls authorize_purchase before any spend:

{
  "merchant": "openai.com",
  "amount": 10.00,
  "currency": "USD",
  "description": "API credits for task execution"
}

Approved — within mandate:

{
  "status": "approved",
  "transaction_id": "txn_01j9k2m...",
  "amount": 10.00,
  "merchant": "openai.com",
  "remaining_budget": 40.00,
  "message": "Purchase approved within mandate limits"
}

Denied — merchant not on allowlist:

{
  "status": "denied",
  "reason": "merchant_not_allowed",
  "message": "openai.com is not on the approved merchant list for this agent"
}

What the agent should do: approved → proceed. denied → stop and surface the reason to the user. Never retry without updated mandate permissions.


Available Tools

Tool What it does
authorize_purchase Check a purchase against the agent's mandate — the core call
get_mandate View current spending rules for this agent
update_mandate Change limits or allowed merchants
get_spending_summary Total spend by category and merchant
get_audit_log Full history of every authorize/deny decision
rotate_agent_key Rotate the agent's API key
create_account Create a new user account + org
create_agent Provision a new agent under an org
create_mandate Set spending rules for a newly created agent

REST API

Interactive docs: https://agentpayment-production.up.railway.app/docs


Self-Hosting

git clone https://github.com/advaitgore/agent_payment
cd agent_payment
pip install -r apps/api/requirements.txt
uvicorn apps.api.main:app --host 0.0.0.0 --port 8080

Required env vars:

DATABASE_URL=postgresql://...
JWT_SECRET=...

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选