360 Secure SkillHub
360 安全技能中心

Mercury Banking

为 OpenClaw 代理提供 Mercury 银行 API 集成:以 MERCURY_API_KEY 调用脚本读取账户与余额、按日期或关键词筛选交易、统计现金流与烧钱率,并可选用 OPENROUTER_API_KEY 对交易做 AI 分类、生成周度或月度财务摘要。

aiwithabidi
aiwithabidi
热度 52.11
最近更新 2026-05-10 17:41:08
分类:数据依赖:代码执行 / 第三方 API / 内部调用大模型应用场景:财务 / 报告撰写 / 数据处理 / 摘要总结

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add mercury-banking
Metadata
name
mercury-banking
description
Mercury banking API integration — accounts, balances, transactions, financial summaries, AI transaction categorization, and cash flow analysis. The only Mercury banking skill on ClawHub. Use for business banking, financial tracking, and expense management.
homepage
https://www.agxntsix.ai
license
MIT
compatibility
Python 3.10+, Mercury banking account
metadata
{"openclaw":{"emoji":"🏦","requires":{"env":["MERCURY_API_KEY"]},"primaryEnv":"MERCURY_API_KEY","homepage":"https://www.agxntsix.ai"}}

🏦 Mercury Banking

Mercury banking API integration for OpenClaw agents. Manage accounts, transactions, cash flow, and get AI-powered financial insights.

Requirements

Variable Required Description
MERCURY_API_KEY ✅ Mercury API token (get one)
OPENROUTER_API_KEY Optional For AI categorization and summaries

Quick Start

# List all accounts and balances
python3 {baseDir}/scripts/mercury_api.py accounts

# Recent transactions
python3 {baseDir}/scripts/mercury_api.py transactions <account_id>

# Transactions with date filter
python3 {baseDir}/scripts/mercury_api.py transactions <account_id> --start 2026-01-01 --end 2026-01-31

# Search transactions
python3 {baseDir}/scripts/mercury_api.py transactions <account_id> --search "Stripe"

# Cash flow analysis
python3 {baseDir}/scripts/mercury_api.py cashflow <account_id> --days 30

# AI categorize transactions
python3 {baseDir}/scripts/mercury_api.py categorize <account_id> --days 30

# Financial summary
python3 {baseDir}/scripts/mercury_api.py summary <account_id> --period weekly

Commands

accounts

Lists all Mercury accounts with current balances, account type, and status.

transactions <account_id>

Fetch transactions with optional filters:

  • --start YYYY-MM-DD / --end YYYY-MM-DD — date range
  • --search "term" — filter by counterparty or description
  • --limit N — max results (default 50)
  • --status pending|sent|cancelled|failed — filter by status

cashflow <account_id>

Analyze cash flow over a period:

  • --days N — lookback period (default 30)
  • Shows total inflows, outflows, net, daily average, burn rate

categorize <account_id>

AI-powered transaction categorization (requires OPENROUTER_API_KEY):

  • --days N — lookback period (default 30)
  • Groups transactions into categories (payroll, SaaS, revenue, etc.)
  • Outputs category totals and percentages

summary <account_id>

Generate financial summary:

  • --period weekly|monthly — summary period
  • Includes top expenses, revenue sources, cash position, trends

Mercury API Notes

  • Base URL: https://api.mercury.com/api/v1
  • Auth: Bearer token in Authorization header
  • Rate limits: Be mindful of API limits; the script handles pagination automatically
  • Sandbox: Mercury provides a sandbox environment for testing

Credits

Built by M. Abidi | agxntsix.ai YouTube | GitHub Part of the AgxntSix Skill Suite for OpenClaw agents.

📅 Need help setting up OpenClaw for your business? Book a free consultation