Skip to main content
Glama
paybridgenp

PayBridgeNP MCP Server

by paybridgenp

@paybridge-np/mcp

PayBridgeNP(尼泊尔支付网关)的官方 Model Context Protocol 服务器。

让 Claude、ChatGPT、Cursor、Claude Code、VS Code 等任何兼容 MCP 的 AI 助手能够通过自然语言读取并操作您的 PayBridgeNP 账户。通过聊天即可完成退款、创建支付链接、管理订阅、检查失败的 Webhook、获取 KPI 等操作。

69 个工具。6 个内置提示词模板。作用域令牌。支出上限。完整审计追踪。

安装

Claude Desktop

添加到 ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) 或 %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "paybridge": {
      "command": "npx",
      "args": ["-y", "@paybridge-np/mcp@latest"],
      "env": {
        "PAYBRIDGE_API_KEY": "sk_live_..."
      }
    }
  }
}

重启 Claude Desktop。

Cursor

在 .cursor/mcp.json 中使用相同的 JSON,或通过“设置”→“MCP”进行配置。

Claude Code

claude mcp add paybridge \
  --env PAYBRIDGE_API_KEY=sk_live_... \
  -- npx -y @paybridge-np/mcp@latest

VS Code

.vscode/mcp.json:

{
  "servers": {
    "paybridge": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@paybridge-np/mcp@latest"],
      "env": { "PAYBRIDGE_API_KEY": "sk_live_..." }
    }
  }
}

请从您的 PayBridgeNP 仪表板 生成作用域 MCP 令牌。请勿粘贴具有完全访问权限的 REST 密钥。

Related MCP server: PayArk MCP Server

工具 (69)

读取 (31)

分类

工具

账户

get_account

支付

list_payments, get_payment

退款

list_refunds, get_refund

会话

list_checkout_sessions, get_checkout_session

支付链接

list_payment_links, get_payment_link

Webhooks

list_webhook_endpoints, list_webhook_deliveries

计划

list_plans, get_plan

客户

list_customers, get_customer

订阅

list_subscriptions, get_subscription

发票

list_invoices, get_invoice

优惠券

list_coupons, get_coupon

促销

list_promotion_codes, get_promotion_code, validate_promotion_code

税务

get_tax_settings

催款

list_dunning_policies, get_dunning_invoice_status

使用量

preview_subscription_proration, get_subscription_usage_summary, list_usage_records

分析

get_analytics_overview

写入 (38)

涉及资金变动的工具(create_refund, cancel_subscription, delete_*)在执行前需要主机 UI 中的明确确认。

分类

工具

支付

create_checkout_session

退款

create_refund

支付链接

create_payment_link, update_payment_link, cancel_payment_link, delete_payment_link

Webhooks

create_webhook_endpoint, update_webhook_endpoint, delete_webhook_endpoint

计划

create_plan, update_plan

客户

create_customer, update_customer, add_customer_credit

订阅

create_subscription, pause_subscription, resume_subscription, cancel_subscription, change_subscription_plan, end_trial, extend_trial

发票

create_invoice_item, delete_invoice_item

优惠券

create_coupon, deactivate_coupon

促销

create_promotion_code, deactivate_promotion_code, apply_coupon_to_subscription, remove_subscription_discount

税务

update_tax_settings

催款

create_dunning_policy, update_dunning_policy, set_subscription_dunning_policy, stop_invoice_dunning, retry_invoice_dunning_now

使用量

report_subscription_usage, update_subscription_quantity

提示词

6 个内置提示词模板 — 在 Claude Desktop 和 Cursor 中显示为斜杠命令(输入 / → 输入 paybridge):

提示词

功能

daily_summary

日终摘要:收入、支付、退款、结账漏斗、Webhook 失败情况

monthly_reconciliation

可供会计使用的完整月度对账表。接受可选的 month 参数(例如 2026-04)

investigate_failed_payment

诊断支付失败原因 — 接受可选的 payment_id 或 customer_email

onboard_customer

在一个流程中创建客户并订阅计划。接受 email, name, plan_id,以及可选的 coupon_code

review_dunning

列出所有逾期发票,分类为重试/停止/等待,并在确认后执行操作

apply_discount

验证并向订阅应用促销代码,首先显示价格变动情况

安全性

  • 作用域令牌 — 16 个作用域,分为读取/写入/敏感三类。默认只读,写入权限需按类别选择开启。PII(电子邮件、电话)拥有独立的作用域。

  • 确认机制 — 退款和大型结账会话在执行前需要主机 UI 中的明确确认。

  • 24 小时支出上限 — 每个令牌在退款和结账会话上有严格的滚动上限。写入令牌默认预设为 50,000 卢比。

  • 令牌级速率限制 — 总计 60 次调用/60秒,破坏性操作 6 次/60秒,需确认的操作 2 次/60秒。

  • 提示词注入防御 — 客户控制的字段被包装为 <untrusted> 数据。剥离零宽字符。输出时对密钥进行模式脱敏。

  • 完整审计追踪 — 每次工具调用都会记录令牌 ID 和助手名称,可在 /dashboard/mcp 中查看。

  • 开源 — 可在 github.com/paybridgenp/paybridgenp-mcp 审计针对您的密钥运行的所有内容。

配置

环境变量

必需

默认值

PAYBRIDGE_API_KEY

是

—

PAYBRIDGE_API_BASE_URL

否

https://api.paybridgenp.com

您也可以将 --api-key=sk_live_... 作为 CLI 参数传递。

许可证

MIT — 参见 LICENSE。

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables AI agents to interact with Juspay's payment processing APIs and merchant dashboard for managing orders, transactions, refunds, customers, gateways, and reporting through natural language.
    21
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    Connects AI agents to Nepal's payment infrastructure through the PayArk API. It enables users to monitor transaction history, manage projects, and generate hosted checkout links using natural language.
    9 npm
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Enables AI assistants to interact with the full range of Paystack APIs, allowing operations like transaction management, customer creation, and payments through natural language.
    2
    41 npm
    55
    MIT