原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Saifuban

作者:ut181749ut版本 0.4.1i★ 1i在云端运行官方网站 ↗
注册名称io.github.ut181749ut/saifuban

安装方法

What it does

Hard daily caps on AI agents' API spend, plus phone approval before any other payment.

  • Connects 在云端运行
  • Account or key Needs Authorization
  • Category 网店与支付

为什么排在这里

列表按使用分(满分 100)排序,由以下部分组成

热度4/80GitHub 星标或每周下载量:较大的计 60,较小的计 20
新鲜度12/1230 天内有发布或代码更新得满分
仍在响应8/8上次检查时云端端点有响应
使用分24/100

质量: 基础检查通过 4/5 项(仅展示,不用于排序) · 上升势头: 暂无数据 (只用于“上升中”标签)

安装

选择你使用的 AI 应用,然后复制设置。

用一句话让 AI 帮你安装

请帮我安装 Saifuban。按照 https://mcp.popnx.com/i/ut181749ut-saifuban.md 操作,先把命令给我看,等我同意后再运行。

粘贴到能在你电脑上工作的 AI(如 Claude Code、Cursor)。它会读取我们的步骤,先给你看命令,等你同意。无需密钥,无需注册。 · 查看 AI 会读取的全文

通过 4/5 项检查 · 你的提问会经过开发者的服务器(zrphnuvrsldcycxtdftv.supabase.co) · ✓ 命令已检查 2026年11月13日

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude · 约 5 分钟

需要 Saifuban 的密钥(在开发者网站创建) · 在 claude.ai 或桌面应用设置一次,即可在聊天中使用 · 免费账户可添加 1 个 · Team/Enterprise 方案由所有者(Owner)添加

  1. 注册并创建 Saifuban 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Saifuban 网站 ↗

  2. 打开 Claude 的 Connectors 页面

    CustomizeConnectors

    CustomizeConnectors1Add2https://…3Add4
  3. 点击“Add” → “Custom” → “Web”,填写这 2 项

    把这里的内容复制到 Claude 中同名的输入框,然后点击 Continue

    Name · 名称Saifuban
    Remote MCP server URL · 地址https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban-mcp

    在 Request headers 下添加这个名称和值

    Header 名称Authorization
    值Bearer <在这里粘贴你的密钥>

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

    在 Claude 检测到的登录设置页点击 Continue · Authentication 按作者说明选择(Sign in now、Sign in when needed 或 No sign in),然后点击 Add

  4. 在聊天中开启

    +ConnectorsSaifuban

  5. 试一试

    用 Saifuban 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 Saifuban,或回答中出现 Saifuban 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

ChatGPT 暂时无法连接 Saifuban

Saifuban 连接时需要你自己的密钥,但 OpenAI 帮助页面只说明了 OAuth 登录,没有我们能核实的填密钥方式

你可以改用这些方式

A · 使用能连接 Saifuban 的应用

  • 需要 Saifuban 的密钥(在开发者网站创建) · 在 claude.ai 或桌面应用设置一次,即可在聊天中使用 · 免费账户可添加 1 个 · Team/Enterprise 方案由所有者(Owner)添加
  • 需要 Saifuban 的密钥(在开发者网站创建)
  • 需要 Saifuban 的密钥(在开发者网站创建)
  • 需要 Saifuban 的密钥(在开发者网站创建)

B · 网店与支付 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

可连接 Claude Code · 约 5 分钟

需要 Saifuban 的密钥(在开发者网站创建)

  1. 注册并创建 Saifuban 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Saifuban 网站 ↗

  2. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  3. 粘贴这条命令并按 Enter

    claude mcp add --transport http --scope user saifuban https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban-mcp --header 'Authorization: Bearer your-value'

    按 Enter 前,把“your-value”改成你的密钥

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  4. 在 Claude Code 中输入 /mcp

    应能看到 Saifuban 在列表中并显示已连接

  5. 试一试

    用 Saifuban 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 Saifuban,或回答中出现 Saifuban 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor · 约 5 分钟

需要 Saifuban 的密钥(在开发者网站创建)

  1. 注册并创建 Saifuban 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Saifuban 网站 ↗

  2. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  3. 填写你的密钥

    在 Saifuban 的设置中,Authorization 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  4. 在 Cursor 中以 Agent 模式打开 AI 聊天

  5. 试一试

    用 Saifuban 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 Saifuban,或回答中出现 Saifuban 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code · 约 5 分钟

需要 Saifuban 的密钥(在开发者网站创建)

  1. 注册并创建 Saifuban 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Saifuban 网站 ↗

  2. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  3. 填写你的密钥

    在 Saifuban 的设置中,Authorization 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  4. 在 VS Code 中以 Agent 模式打开 AI 聊天

  5. 试一试

    用 Saifuban 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 Saifuban,或回答中出现 Saifuban 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

通过网页连接的应用使用的地址

地址https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban-mcp

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 Saifuban 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

通过网页连接

Claude Code

claude mcp add --transport http --scope user saifuban https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban-mcp --header 'Authorization: Bearer your-value'

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "saifuban": {
      "url": "https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban-mcp",
      "headers": {
        "Authorization": "Bearer your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "saifuban": {
      "type": "http",
      "url": "https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban-mcp",
      "headers": {
        "Authorization": "Bearer your-value"
      }
    }
  }
}

需要你填写的值

  • Authorization 机密 必填 HTTP header
    来自 https://ut181749ut.github.io/saifuban/ 的 Bearer sbk_... 代理密钥
    查看英文原文Bearer sbk_... agent key from https://ut181749ut.github.io/saifuban/

说明为自动翻译,变量名保持原样;不确定时请查看原文。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
不在 npm/PyPI 上
许可证i
未注明许可证
连接方式
在云端运行
传输方式
streamable-http
最新版本i
0.4.1
发布到注册中心i
2026年11月8日
代码最后更新i
2026年11月18日
最近检查
2026年11月14日
作者
ut181749ut
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

通过互联网连接,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

全部应用及其优缺点 →

它能做什么

工具名称和描述与服务器在 2026年11月14日 报告的完全一致。这些内容由作者撰写,不是我们写的;我们以纯文本形式显示。

  • request_payment

    お金を使う前に必ず呼ぶツール。支払先・金額・理由を財布番に申請し、許可が出たかを返す。status が approved のときだけ支払ってよい。pending_approval は持ち主の承認待ちで、まだ支払ってはいけない(持ち主のスマホに通知が届く)。denied や expired のときは支払わず、reason をユーザーに伝える。 / Call this BEFORE spending any money. Pay only when status is approved. pending_approval means the owner mu

  • check_payment_status

    以前の申請(request_id)が承認されたかを確認する。approved になってから支払うこと。 / Check whether an earlier request was approved. Pay only after it is approved.

  • list_payments

    このAI自身の過去の支払い申請を調べる(二重払い・二重契約を避けるため)。例: 今月すでにSpotifyを承認済みか。 / Look up this agent's own past payment requests, e.g. to check whether a Spotify charge was already approved this month, and avoid paying twice.

  • get_budget

    このAIが今日・今週・今月あといくら使えるか、1回の上限、自動承認ライン、使ってよい支払先を確認する。 / Check the remaining daily, weekly and monthly budget, per-payment limit, auto-approve amount and allowed merchants.

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月19日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 ut181749ut 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于昨天

  • ✕ 未通过

    有许可证

    仓库中没有找到许可证文件

  • ✓ 通过

    端点有响应

    在 248 毫秒内响应(HTTP 200)

  • – 不适用

    使用 OAuth 登录

    无需登录

  • ✓ 通过

    工具描述中没有隐藏指令

    已读取 4 个工具描述,未发现针对 AI 的隐藏指令

我们检查什么 → · JSON

作者:申请重新检查或报告信息错误
给作者:在 README 中加徽章

如果你是作者,可把这段代码贴到 README。徽章会链接回本页。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/ut181749ut-saifuban.svg)](https://mcp.popnx.com/en/servers/ut181749ut-saifuban)

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

登录后发帖

用户评价

还没有评价

登录后写评价

与“网店与支付”中的其他服务器比较i

  • 星标数多于此分类中其他 2947 个服务器的 89%
  • 发布到注册中心的时间比此分类中其他 2947 个服务器的 73% 更新
  • 基础检查结果等于或优于此分类中其他 2947 个服务器的 63%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Saifuban 安全吗?

它在 5 项适用的基础检查中通过了 4 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:Authorization

它在我的电脑上运行还是在云端?

它在作者的云端运行。通过互联网连接,无需安装,但你发送的内容会经过作者的服务器。

它还在维护吗?

GitHub 仓库最后更新于昨天,最新版本(0.4.1)于11天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,因此也能用于接受远程 MCP 的应用,例如网页版 ChatGPT(Business 及以上为完整 MCP;Pro 为只读)。

有什么可以替代它?

同一分类中有:Stripe MCP, flightclaw, Trade It, Marketplace Ad Pros: Amazon Ads & Seller Central, idealo MCP Server

功能相近的其他选择

同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Stripe MCP

MCP server integrating with Stripe - tools for customers, products, payments, and more.

作者:stripe广泛使用★ 207213个月前更新

在云端运行✓ 服务方 · stripe.com

flightclaw

Search ~300 airlines and book flights with a checkout link. OAuth sign-in by email code.

作者:flightclaw正在增长★ 862个月前更新

在云端运行✓ 服务方 · flightclaw.com

Trade It

Connect brokerage accounts to AI assistants: holdings, orders, asset lookup, and approved trading.

作者:trade-it-inc起步阶段★ 6234天前更新

在云端运行✓ 服务方 · tradeit.app

idealo MCP Server

Search products, compare prices and discover deals across 6 European markets with your AI assistant.

作者:idealo起步阶段★ 286个月前更新

在云端运行✓ 服务方 · mcp.idealo.com
与相似项目对比
本项
Saifuban
Stripe MCPflightclawTrade ItMarketplace Ad Pros: Amazon Ads & Seller Centralidealo MCP Server
运行位置在云端运行,无需安装在云端运行,无需安装在云端运行,无需安装在云端运行,无需安装在云端运行,无需安装在云端运行,无需安装
需要密钥是否否否否否
可在 Claude 中按 + 添加否是否否否否
基础检查4/54/44/45/54/44/4
许可证–MITMITCC0-1.0MITMIT
价格登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

AIの財布番 (Saifuban) — a spending guard for AI agents

AIがお金を使う前に、あなたのスマホに承認を聞きにくる。AIエージェントのAPI代も1日の予算で止める。Claude・ChatGPT・Museで使えて、Museならチャットに1通送るだけ。日本語・円対応。 Hard daily caps on your AI agents' API spend, plus phone approval before any other payment.

👉 https://ut181749ut.github.io/saifuban/


日本語

AIエージェントは支払いの前に財布番に「払っていいか」を聞きます。財布番はあなたが決めたルールで答えます。

  • 少額(例: 300円以下)は自動で許可
  • それを超えるとスマホに通知 → 承認 / 却下をワンタップ
  • 1日・1週間・1か月の予算、1回の上限、支払先の制限
  • 「聞かずに払う」のを、前に払ったことがある支払先だけにする設定(初めての支払先はスマホで確認)
  • 緊急停止ボタン
  • AIごとに別々のルール
  • サブスク(定期購入)は金額に関係なく必ずスマホで確認。通知に年額を表示。AIが申告し忘れても、理由や支払先の文言から定期購入らしいものを見つけて確認に回す
  • AIが自分の過去の申請を調べられる(同じ支払いを二重にしないため)
  • APIキーを預ければ、AIエージェントのAPI代も1日・週・月の予算で強制停止(AIには代理のキーだけを渡す)
  • LangChain・CrewAI・OpenAI Agents SDK・Vercel AI SDK・Claude Codeでは、接続先と鍵を差し替えるだけ(コード例は英語版の「Use it from your agent framework」)
  • 日本語・円で使える。メール登録なし・無料

財布番はお金を動かしません。カード情報や口座は預かりません。

APIキーを他人のサーバーに預けたくない場合は、全部を自分のSupabaseとCloudflare(どちらも無料枠で足ります)で動かせます。手順は SELF_HOST.md。

使い方

ターミナルからなら1行で始められます(登録・AI作成・APIキー預けまで): npx https://github.com/ut181749ut/saifuban/archive/refs/heads/main.tar.gz(WindowsのPowerShellでは npx.cmd https://github.com/ut181749ut/saifuban/archive/refs/heads/main.tar.gz)

  1. サイトで「はじめる」→ 予算を選ぶ → AI用のURLが出る
  2. そのURLをAIに登録(Claude: コネクタ / ChatGPT: 開発者モードのアプリ / Muse: チャットでURLを送る / Cursor・VS Code: MCP設定)

URLをコピーせずにつなぐこともできます(OAuth)。ClaudeやChatGPTのコネクタに次のURLを登録すると財布番の許可画面が開くので、つなぐAIを選んで「許可する」を押すだけです。

https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban-mcp
  1. AIに「財布番で今日の残り予算を見て」と聞いて確認

English

Stop your AI agents from overspending. Saifuban puts a hard daily cap on your agents' API bills and makes them ask your phone before any other payment.

  • Keep your real Anthropic / OpenAI / Google key. No reseller in between, no markup, new API features work on day one. The agent gets a proxy key; your key stays encrypted on the server.
  • Parallel calls can't go over. Every call reserves its worst-case cost before it's sent, so ten calls started at once still stop at the cap.
  • Per agent, per day, in your time zone. Each agent gets its own daily (and optional weekly/monthly) budget that resets at your midnight. Budgets can be shown in USD (Settings → currency).
  • Open source and self-hostable. Don't want to hand your key to someone else's server? Run the whole thing on your own Supabase and Cloudflare free tiers: SELF_HOST.md.
Hard cap on API bills

Store your OpenAI, Anthropic, Google or OpenRouter key in Saifuban. Your agent only gets a proxy key (sbk_...), every call is metered, and requests are refused once the agent's daily (or optional weekly/monthly) budget is reached. Your real key never reaches the agent.

Before each call, the proxy reserves the most it could cost (input size + max_tokens × the model's price) and settles to the actual usage when the call ends. Reservations count against the caps together with spend, so parallel calls can't all slip under the line. If a stream is cut before the usage arrives, the reserved amount is recorded instead of zero. Each reservation is settled exactly once: a retried or late settle can't charge twice, and a reservation whose settle never arrives is charged at its reserved amount after 10 minutes (and corrected if the real usage shows up later). See the reserve → settle → release test. Days reset at midnight in the owner's own time zone (taken from their device, changeable in Settings), and a call is charged to the day it started, so a call from 23:59 to 00:01 stays on the earlier day (day boundary test). If a request doesn't set an output limit, the proxy sets one (the model's maximum, up to 32k tokens) and reserves for it, so a call can't write past its reservation; asking for several answers at once (n) reserves for each. Web searches and other per-call tool fees are counted too, prices and the exchange rate update daily, and a model missing from the price list is charged at that provider's highest price. If a call doesn't fit only because other calls still hold reservations, the proxy answers 429 (retry shortly), so a retry goes through once they finish. If the rest of the day's budget can't cover the requested max_tokens but can cover at least 4,096 tokens, the proxy lowers max_tokens to what's left instead of refusing (the response carries x-saifuban-output-capped). When the budget is really used up, it answers 429 with billing_error, x-should-retry: false and Retry-After set to the reset time, the same shape Claude Code expects from a spend-limit gateway, so clients stop instead of retrying. Token-counting calls (count_tokens, input_tokens) pass through free. Endpoints whose cost can't be metered per call (batches, images, audio, video, fine-tuning, realtime) are refused, so they can't go around the cap. The proxy runs on Cloudflare, so responses that take several minutes stream to the end (the older https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban-proxy/... address still works, but cuts responses at 150 seconds).

Each agent can also have at most a few API requests in flight at once (8 by default, adjustable). Extra requests get a 429 and the official SDKs retry them automatically, so a runaway loop can't fire hundreds of calls before the budget check catches up.

Use it from your agent framework

Or set everything up from the terminal in one command (account, agent with a daily budget, API key):

npx https://github.com/ut181749ut/saifuban/archive/refs/heads/main.tar.gz

On Windows PowerShell use npx.cmd instead of npx. Git doesn't need to be installed. The command checks GitHub for a newer version on start and runs that one, so an old copy cached by npx is never used.

Point the client at the Saifuban proxy and give it the agent's proxy key. Nothing else changes.

Claude Code

export ANTHROPIC_BASE_URL="https://saifuban.saifuban-app.workers.dev/proxy/anthropic"

export ANTHROPIC_AUTH_TOKEN="sbk_..."

Use `ANTHROPIC_AUTH_TOKEN`, not `ANTHROPIC_API_KEY`: with `ANTHROPIC_API_KEY`, Claude Code asks once whether to use the key, the default answer is No, and a declined key is ignored silently after that. To keep it for every new terminal, put both in the `"env"` block of `~/.claude/settings.json` (`%USERPROFILE%\.claude\settings.json` on Windows). The setup command offers to do this for you.

OpenAI SDK / OpenAI Agents SDK (Python)

from openai import AsyncOpenAI

from agents import set_default_openai_client

set_default_openai_client(AsyncOpenAI( base_url="https://saifuban.saifuban-app.workers.dev/proxy/openai/v1", api_key="sbk_...", ))

LangChain

from langchain_openai import ChatOpenAI

from langchain_anthropic import ChatAnthropic

gpt = ChatOpenAI(model="gpt-4o-mini", base_url="https://saifuban.saifuban-app.workers.dev/proxy/openai/v1", api_key="sbk_...") claude = ChatAnthropic(model="claude-sonnet-4-5", base_url="https://saifuban.saifuban-app.workers.dev/proxy/anthropic", api_key="sbk_...")

CrewAI

from crewai import LLM

llm = LLM(model="openai/gpt-4o-mini", base_url="https://saifuban.saifuban-app.workers.dev/proxy/openai/v1", api_key="sbk_...")

Vercel AI SDK

import { createOpenAI } from "@ai-sdk/openai";

const openai = createOpenAI({ baseURL: "https://saifuban.saifuban-app.workers.dev/proxy/openai/v1", apiKey: "sbk_..." });

OpenRouter (hundreds of models, actual cost reported per call): base URL https://saifuban.saifuban-app.workers.dev/proxy/openrouter/v1. Gemini: https://saifuban.saifuban-app.workers.dev/proxy/google/v1beta/openai (OpenAI-compatible).

Phone approval for everything else

Your AI agent asks Saifuban before every payment. Saifuban answers using your rules.

  • Auto-approve small amounts (e.g. under ¥300)
  • Anything above goes to your phone as a push notification — approve or reject in one tap
  • Daily, weekly and monthly budgets, per-transaction limit, allowed merchants
  • Optional: auto-approve only merchants you've paid before; new merchants always go to your phone
  • Kill switch
  • Separate rules per agent

Saifuban never moves money and never stores card or bank details. It only decides whether a payment is allowed.

Setup
  1. Open the site, press "はじめる" (Start), pick a budget — you get a personal MCP URL
  2. Add the URL to your AI as a remote MCP server (Streamable HTTP, no auth — the key is in the URL). With Muse, just send the URL in a chat message and ask it to connect

Or skip the copy-paste and connect with OAuth: add https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban-mcp as a connector in Claude or ChatGPT. A Saifuban consent page opens; pick (or create) the agent and press Allow. Dynamic Client Registration and PKCE (S256) are supported.

  1. Ask your AI: "Check my remaining budget with Saifuban"

MCP tools

ToolWhat it does
request_paymentAsk whether a payment (merchant, amount, currency JPY/USD, reason, recurring none/week/month/year) is allowed. Waits up to 45 s for phone approval. Returns a single-use payment_token when approved. Subscriptions always need your approval, whatever the amount, and the notification shows the yearly cost. Retrying a request that is still pending returns the same request instead of creating a new one (or pass idempotency_key).
check_payment_statusCheck whether a pending request was approved.
list_paymentsThe agent's own past requests (filter by merchant / days), so it can check e.g. whether a Spotify charge was already approved this month and avoid paying twice.
get_budgetRemaining budget today, this week and this month, per-transaction limit, auto-approve threshold, allowed merchants.

Endpoint: https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban-mcp/ (get your key on the site)

Hard enforcement: single-use payment tokens

Calling request_payment is voluntary, so a prompt-injected agent could simply skip it. To make the guard enforceable, every approved request comes with a payment_token (sbt_...):

  • single-use, valid for 24 hours
  • bound to the approved merchant and amount
  • invalid if the AI is stopped or the kill switch is on

Whatever actually moves the money (your payment tool, wrapper, or merchant backend) should require this token and redeem it before paying:

curl -X POST https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban/redeem \

-H "content-type: application/json" \ -d '{"token":"sbt_...","merchant":"OpenAI","amount":12.5,"currency":"USD"}'

=> {"valid":true,"consumed":true,...} or {"valid":false,"error":"already_used" | "merchant_mismatch" | "amount_exceeds_approval" | ...}

/verify takes the same body and checks without consuming. No agent key is needed to redeem, so the payment side doesn't have to share secrets with the agent.

API spend is already hard-enforced: when you store your provider API key in Saifuban, the agent only ever gets a proxy key.

Challenge

Think you can make Saifuban approve more than the budget? A live agent with a ¥100/day budget is open to everyone: https://ut181749ut.github.io/saifuban/challenge.html

Thanks
  • u/organic-humanoid pointed out that metered API calls were checked before the call but counted after, so calls already in flight could slip past the cap. That led to reserve-then-settle in the proxy. Thank you!

Links

  • 利用規約 / Terms
  • [プライバシーポリシー / Privacy](https://ut181749ut.github.io/saifuban/p

只显示了开头部分;其余内容请在仓库中阅读