Open-source B2B and marketplace ecommerce; new stores include an MCP server for AI agents.
PayPal, guarded
ภาพรวม
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
PayPal's Agent Toolkit with limits on refunds and the owner's Approve/Deny above them.
สามเสาของ PopNx MCP
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
- เสียงผู้ใช้iยังไม่มีรีวิวรีวิวเปิดพร้อมระบบบัญชีในขั้นถัดไป
- ผลตรวจเบื้องต้นของเราiผ่าน 1 จาก 1 ข้อตรวจจากข้อมูลที่เปิดอยู่ ยังไม่ได้สแกนโค้ด
- การใช้งานiยังไม่ได้วัด★ –
ใช้ทำอะไรได้
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
- การเชื่อมต่อ: รันบนเครื่อง
- ช่องทาง (transport): stdio
- หมวด: ร้านค้าออนไลน์และรับเงิน
- ต้องใส่ค่าเหล่านี้: PAYPAL_CLIENT_ID, PAYPAL_CLIENT_SECRET, FIZZL_AGENT_KEY, TELEGRAM_BOT_TOKEN
ติดตั้ง
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ก่อนติดตั้ง
- ผลตรวจเบื้องต้น: ผ่าน 1 จาก 1 ข้อ
- รันในเครื่องคุณด้วยสิทธิ์ของผู้ใช้คุณ (ไฟล์ อินเทอร์เน็ต แอปต่าง ๆ)
- ค่าที่คุณต้องใส่เอง:
PAYPAL_CLIENT_ID,PAYPAL_CLIENT_SECRET,PAYPAL_ENVIRONMENT,LIMIT_REFUND,LIMIT_REFUND_PER_DAY,LIMIT_REFUNDS_PER_DAY,LIMIT_CURRENCY,GUARD_POLICY,FIZZL_AGENT_KEY,TELEGRAM_BOT_TOKEN,TELEGRAM_CHAT_ID,APPROVAL_IN_CHAT,APPROVAL_MINUTES
ค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
- npmติดตั้ง Node.js (มีคำสั่ง npx) ในเครื่อง
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"paypal-guard": {
"command": "npx",
"args": [
"-y",
"fizzl-paypal-guard-mcp"
],
"env": {
"PAYPAL_CLIENT_ID": "ใส่ค่าของคุณ",
"PAYPAL_CLIENT_SECRET": "ใส่ค่าของคุณ",
"PAYPAL_ENVIRONMENT": "ใส่ค่าของคุณ",
"LIMIT_REFUND": "ใส่ค่าของคุณ",
"LIMIT_REFUND_PER_DAY": "ใส่ค่าของคุณ",
"LIMIT_REFUNDS_PER_DAY": "ใส่ค่าของคุณ",
"LIMIT_CURRENCY": "ใส่ค่าของคุณ",
"GUARD_POLICY": "ใส่ค่าของคุณ",
"FIZZL_AGENT_KEY": "ใส่ค่าของคุณ",
"TELEGRAM_BOT_TOKEN": "ใส่ค่าของคุณ",
"TELEGRAM_CHAT_ID": "ใส่ค่าของคุณ",
"APPROVAL_IN_CHAT": "ใส่ค่าของคุณ",
"APPROVAL_MINUTES": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add paypal-guard --env PAYPAL_CLIENT_ID='ใส่ค่าของคุณ' --env PAYPAL_CLIENT_SECRET='ใส่ค่าของคุณ' --env PAYPAL_ENVIRONMENT='ใส่ค่าของคุณ' --env LIMIT_REFUND='ใส่ค่าของคุณ' --env LIMIT_REFUND_PER_DAY='ใส่ค่าของคุณ' --env LIMIT_REFUNDS_PER_DAY='ใส่ค่าของคุณ' --env LIMIT_CURRENCY='ใส่ค่าของคุณ' --env GUARD_POLICY='ใส่ค่าของคุณ' --env FIZZL_AGENT_KEY='ใส่ค่าของคุณ' --env TELEGRAM_BOT_TOKEN='ใส่ค่าของคุณ' --env TELEGRAM_CHAT_ID='ใส่ค่าของคุณ' --env APPROVAL_IN_CHAT='ใส่ค่าของคุณ' --env APPROVAL_MINUTES='ใส่ค่าของคุณ' -- npx -y fizzl-paypal-guard-mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
หรือคัดลอกค่าตั้งเอง
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"paypal-guard": {
"command": "npx",
"args": [
"-y",
"fizzl-paypal-guard-mcp"
],
"env": {
"PAYPAL_CLIENT_ID": "ใส่ค่าของคุณ",
"PAYPAL_CLIENT_SECRET": "ใส่ค่าของคุณ",
"PAYPAL_ENVIRONMENT": "ใส่ค่าของคุณ",
"LIMIT_REFUND": "ใส่ค่าของคุณ",
"LIMIT_REFUND_PER_DAY": "ใส่ค่าของคุณ",
"LIMIT_REFUNDS_PER_DAY": "ใส่ค่าของคุณ",
"LIMIT_CURRENCY": "ใส่ค่าของคุณ",
"GUARD_POLICY": "ใส่ค่าของคุณ",
"FIZZL_AGENT_KEY": "ใส่ค่าของคุณ",
"TELEGRAM_BOT_TOKEN": "ใส่ค่าของคุณ",
"TELEGRAM_CHAT_ID": "ใส่ค่าของคุณ",
"APPROVAL_IN_CHAT": "ใส่ค่าของคุณ",
"APPROVAL_MINUTES": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
หรือคัดลอกค่าตั้งเอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"paypal-guard": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"fizzl-paypal-guard-mcp"
],
"env": {
"PAYPAL_CLIENT_ID": "ใส่ค่าของคุณ",
"PAYPAL_CLIENT_SECRET": "ใส่ค่าของคุณ",
"PAYPAL_ENVIRONMENT": "ใส่ค่าของคุณ",
"LIMIT_REFUND": "ใส่ค่าของคุณ",
"LIMIT_REFUND_PER_DAY": "ใส่ค่าของคุณ",
"LIMIT_REFUNDS_PER_DAY": "ใส่ค่าของคุณ",
"LIMIT_CURRENCY": "ใส่ค่าของคุณ",
"GUARD_POLICY": "ใส่ค่าของคุณ",
"FIZZL_AGENT_KEY": "ใส่ค่าของคุณ",
"TELEGRAM_BOT_TOKEN": "ใส่ค่าของคุณ",
"TELEGRAM_CHAT_ID": "ใส่ค่าของคุณ",
"APPROVAL_IN_CHAT": "ใส่ค่าของคุณ",
"APPROVAL_MINUTES": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าที่ต้องใส่เอง
- Client ID of your PayPal REST app (developer.paypal.com)
- Secret of your PayPal REST app
PAYPAL_ENVIRONMENTenvSANDBOX (default) or PRODUCTIONLIMIT_REFUNDenvMost per refund without asking you (default 25.00)LIMIT_REFUND_PER_DAYenvRefunds a day in total (default 100.00)LIMIT_REFUNDS_PER_DAYenvNumber of refunds a day (default 10)LIMIT_CURRENCYenvCurrency of the limits (default USD)GUARD_POLICYenvOther rules as JSON, e.g. {"dispute":"deny","stop":"ask"}- Approvals in the Fizzl Agent Wallet (Telegram + dashboard): an agent key awk_… from wallet.fizzl.eu
- Approvals through your own Telegram bot
TELEGRAM_CHAT_IDenvYour Telegram chat id (approvals go only there)APPROVAL_IN_CHATenvoff to never ask in the chat app (MCP elicitation)APPROVAL_MINUTESenvHow long you have to answer (default 10)
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
ทำอะไรได้บ้าง
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
ผลตรวจเบื้องต้นi
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
- ✓ ผ่าน
ตัวตนผู้ทำตรงกับ repo
ชื่อใน registry ยืนยันด้วยบัญชี GitHub Fizzl13 ซึ่งเป็นเจ้าของ repo
- … ยังไม่ตรวจ
ยังมีคนดูแล
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
- … ยังไม่ตรวจ
มีสัญญาอนุญาต (license)
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
- – ไม่เกี่ยว
endpoint ตอบ
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
- – ไม่เกี่ยว
ล็อกอินแบบ OAuth
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
- … ยังไม่ตรวจ
คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับตัวอื่นในหมวด ร้านค้าออนไลน์และรับเงินi
- ดาวมากกว่า 0% ของอีก 1749 ตัวในหมวดนี้
- ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 68% ของอีก 1749 ตัวในหมวดนี้
- ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 1749 ตัวในหมวดนี้
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
คำถามที่พบบ่อย
PayPal, guarded ปลอดภัยไหม?
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใช้กุญแจหรือรหัสอะไรบ้าง?
ต้องใส่ค่าเหล่านี้: PAYPAL_CLIENT_ID, PAYPAL_CLIENT_SECRET, FIZZL_AGENT_KEY, TELEGRAM_BOT_TOKEN
ตัวนี้รันบนเครื่องหรือบนคลาวด์?
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
ยังมีคนดูแลอยู่ไหม?
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.2.1) เข้า registry 16 วันที่ผ่านมา
ใช้กับโปรแกรมไหนได้บ้าง?
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
มีตัวไหนใช้แทนได้บ้าง?
ในหมวดเดียวกันมี Spree Commerce: open-source B2B and marketplace ecommerce, Stripe MCP, MCP Cn Commerce
ตัวที่ใช้แทนได้
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
Stripe MCP
server ทางการของ Stripe ให้ AI ดูและจัดการลูกค้า สินค้า การชำระเงิน และใบแจ้งหนี้ ต่อผ่านคลาวด์ของ Stripe และล็อกอินแบบ OAuth
MCP Cn Commerce
8 read-only MCP platform entries; support is operation-specific; merchant live acceptance pending
README จากผู้ทำ
เปิดอ่าน README
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
fizzl-paypal-guard-mcp
PayPal's Agent Toolkit as an MCP server for Claude Desktop, Claude Code, Cursor and other MCP clients, with fizzl-paypal-guard between the model and PayPal.
It has the same 47 tools as PayPal's own MCP server (@paypal/mcp), under the same names. The difference: every call that moves or promises money is checked first.
- Reads pass straight through. Orders, invoices, transactions, disputes and refunds: look as much as you like.
- Never more than is left. A refund without an amount refunds everything that's left of a payment. The guard reads the payment at PayPal first. A refund of a payment that was already refunded in full is stopped, and so is a refund for more than is left.
- Not when the bank already paid. A refund of a payment with an open chargeback or dispute is stopped: the buyer would get the money twice, and PayPal lets that refund through.
- Your limits. By default up to $25 per refund, $100 and 10 refunds a day, one refund per payment a day, and the third refund for the same customer within 30 days asks you. Cancellations and bills have a number a day.
- You decide the rest. Above a limit, and for every accepted dispute, price change or invoice marked as paid, you get Approve and Deny: on your phone (Telegram, or the Fizzl Agent Wallet) or in the chat app itself. No answer means no.
- A log the agent doesn't write. Every action that isn't a read is logged on your machine with its decision, the reasons and who approved it. The day's counts are kept there too, so restarting the app doesn't give the agent a fresh day of limits.
A blocked call returns { "blocked": true, "reasons": […], "message": "Not done (…)" }, and the message tells the model not to try another way. The model can't talk its way past the guard: the checks use facts from PayPal and limits from you, never what the conversation says.
Live demo of the guard (a support agent in the PayPal sandbox): https://fizzl-paypal-demo.onrender.com
Set up
- Make a REST app at developer.paypal.com → Apps & Credentials. Start in Sandbox: test money only. Copy its client ID and secret.
- Add the server to your MCP client. For Claude Desktop, in
claude_desktop_config.json:
{
"mcpServers": { "paypal": { "command": "npx", "args": ["-y", "fizzl-paypal-guard-mcp", "--tools=all"], "env": { "PAYPAL_CLIENT_ID": "your sandbox client id", "PAYPAL_CLIENT_SECRET": "your sandbox secret", "PAYPAL_ENVIRONMENT": "SANDBOX" } } } }
For Claude Code:
claude mcp add paypal -e PAYPAL_CLIENT_ID=… -e PAYPAL_CLIENT_SECRET=… -e PAYPAL_ENVIRONMENT=SANDBOX -- npx -y fizzl-paypal-guard-mcp --tools=all
Claude Desktop, with a double click: download fizzl-paypal-guard-mcp.mcpb and open it with Claude Desktop. It asks for the client ID and secret, your limits and, if you like, your Fizzl wallet key or Telegram bot; nothing to type in a config file.
- Restart the app and ask, for example: *"List my PayPal transactions of the last week"*, then *"Refund capture 2GG… in full"*. Ask
paypal_guard_statuswhat the guard allows and what it did today.
Coming from @paypal/mcp? Use the same --tools list. Instead of PAYPAL_ACCESS_TOKEN this server takes the app's client ID and secret: an access token stops working after about nine hours, and the guard needs to read payments itself.
Approvals
When an action needs your OK, the server asks the first of these that is set up:
| Where | How | Settings |
|---|---|---|
| Fizzl Agent Wallet | Approve or Deny in Telegram (@FizzlWalletBot) or on the wallet dashboard, next to your agents' other payments. The outcome (PayPal's refund id) lands on a receipt there. | FIZZL_AGENT_KEY: an agent key (awk_…) from wallet.fizzl.eu → Agents |
| Your own Telegram bot | A message from your bot with Approve and Deny. Make a bot with @BotFather and send it /start; get your chat id from @userinfobot. The bot must have no webhook. | TELEGRAM_BOT_TOKEN, TELEGRAM_CHAT_ID |
| In the chat app | A form in the app itself (MCP elicitation), with Approve or Deny. Only you can answer it, not the model. Works in MCP clients that support elicitation, such as Claude Code; in others, use your phone. Don't set up a hook that answers these forms automatically (Claude Code's Elicitation hook can). | Nothing; APPROVAL_IN_CHAT=off to turn it off |
With none of these, anything over a limit is simply not done.
A phone is the stronger choice: the question reaches you on a different device than the one the agent runs on. And it can wait longer than an MCP client waits for a tool call. If you haven't answered after APPROVAL_WAIT_SECONDS (45), the call returns "waiting": true with an approval id. The approval goes on: approve within APPROVAL_MINUTES (10) and the action runs then; otherwise nothing happens. The model is told not to try again, and paypal_guard_status with the approval id shows what became of it.
Settings
| Variable | |
|---|---|
PAYPAL_CLIENT_ID, PAYPAL_CLIENT_SECRET | Your REST app. Without them the server lists its tools and every call explains how to set it up. |
PAYPAL_ENVIRONMENT | SANDBOX (default) or PRODUCTION |
--tools= or PAYPAL_TOOLS | all (default), or names as in PayPal's MCP server: payments.createRefund,payments.getRefunds,orders.get,transactions.list,invoices.list,… |
LIMIT_REFUND | Most per refund without asking you (default 25.00) |
LIMIT_REFUND_PER_DAY | Refunds a day, in total (default 100.00) |
LIMIT_REFUNDS_PER_DAY | Number of refunds a day (default 10) |
LIMIT_CURRENCY | The currency of the limits (default USD). A refund in another currency asks you. |
GUARD_POLICY | Anything else, as JSON over the defaults: for example {"dispute":"deny","stop":"ask","bill":{"countPerDay":5}}, or {"returnDays":30} to be asked about refunds of payments older than your return period. Each kind takes "allow", "ask", "deny" or limits. |
FIZZL_AGENT_KEY, FIZZL_WALLET_URL | Approvals through the Fizzl Agent Wallet (URL default https://wallet.fizzl.eu) |
TELEGRAM_BOT_TOKEN, TELEGRAM_CHAT_ID | Approvals through your own Telegram bot |
APPROVAL_IN_CHAT | off to never ask in the chat app |
APPROVAL_MINUTES | How long you have to answer (default 10) |
APPROVAL_WAIT_SECONDS | How long a tool call waits for your answer before it returns "waiting" (default 45) |
AGENT_NAME | The name your phone shows (default: the MCP client's name) |
GUARD_STATE_DIR | Where the day's counts and the log are kept (default ~/.fizzl-paypal-guard; sandbox and live apart) |
Tools
All tools of PayPal's Agent Toolkit 1.11, sorted by what they can do to your money:
| Kind | Tools | By default |
|---|---|---|
| read | get_order, list_transactions, get_refund, list_invoices, get_invoice, list_disputes, get_dispute, … | Pass |
| refund | create_refund | Never more than is left, never on a payment with an open chargeback or dispute; $25 each, $100 and 10 a day, one per payment a day; then you |
| dispute | accept_dispute_claim (pays the buyer) | You decide each one |
| books | record_payment_for_invoice, record_refund_for_invoice (money marked as moved while none moves) | You decide each one |
| stop | cancel_subscription, cancel_sent_invoice, delete_invoice, … | 3 a day, then you |
| price | update_product, update_plan, update_subscription, create_subscription_plan, … | You decide each one |
| bill | create_invoice, send_invoice, create_subscription, … | 20 a day, then you |
| other | create_order, pay_order, create_shipment_tracking, send_invoice_reminder, … | Pass |
A tool the guard doesn't know yet (a newer toolkit) always asks you. The full list is in actions.js.
And two of its own:
| Tool | |
|---|---|
paypal_guard_status | Your limits, how much of today's is used, approvals waiting for you, the latest decisions from the log. With approval_id: what became of that approval. |
paypal_guard_check | Dry run: what the guard would decide for a call, and why, without running it. |
For apps that serve customers
In your own chat with Claude, you are the one giving the orders. A support bot is different: it acts for a customer, and a customer can claim anything ("I'm writing for my husband, here's his capture number"). There the guard also checks that a refund, cancellation or bill belongs to the customer the app is serving.
The app, not the model, tells the server who that is: in the tool call's _meta, which the model can't touch.
await mcpClient.callTool({
name: "create_refund", arguments: { capture_id: "2GG…" }, _meta: { "fizzl.eu/customer": "alice@example.com", "fizzl.eu/request": "My mug arrived broken" }, });
PayPal knows the payer's email for PayPal checkout payments. Card payments have none; for those, use fizzl-paypal-guard in your own code with its customerOf hook, as the demo shop does.
Good to know
- Test in the sandbox first. With
PRODUCTIONthe refunds are real. - The day's counts are per machine. Two computers with the same PayPal app each have their own day.
- The guard reads payments at PayPal with the same REST app. It never moves money itself.
- Text inside PayPal data (invoice notes, dispute messages, item descriptions) is written by other people. The server tells the model to treat it as information, never as instructions. The guard doesn't count on the model listening.
Development
npm ci
npm test # the MCP server with a pretend PayPal PAYPAL_SANDBOX_CLIENT_ID=… PAYPAL_SANDBOX_SECRET=… node test/sandbox.mjs # against the PayPal sandbox
GitHub Actions runs the sandbox check on every change (paypal-sandbox.yml): two customers pay by card, then over MCP a $12 refund runs, a $300 refund waits for the owner and runs after Approve, and a second refund of a payment already refunded in full is stopped.
MIT · Fizzl