list_services
Lists what Bacon Services sells to agents right now, from its live catalog: each service's price in USDC, network, output, input limits, and whether this installed package can run it (and as which tool). Free.
無需輸入參數。

io.github.afmontoya由 GitHub 帳號 afmontoya 發布v0.4.0更新於 Nov 6, 2026
Pay-per-call tools (USDC, x402): background removal, WebP, palette, brand, SEO, WCAG, SVG + cleanup.
讓助理按次購買 Bacon Services 的影像與網頁分析服務,以你自己錢包中的 Base 鏈 USDC 付款,並受消費限額約束。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
參照 儲存庫 中的啟動說明。
An MCP server that lets an AI agent buy image work from Bacon Services, one call at a time, paid in USDC on Base over x402 from your own wallet, within spending limits you set. There's no account and no API key: the agent calls a tool, the server checks the price against your limits, signs a USDC payment for exactly that price, and returns the result.
Also listed in the MCP Registry as io.github.afmontoya/baconservices-mcp.
Your wallet private key stays on your machine. Bacon Services never receives or stores it. Payments are signed locally and are subject to configurable per-call, session, and daily spending limits.
Image tools take PNG, JPEG or WebP up to 8 MB, as image_url (public https) or image_path (a
local file). remove_background, optimize_image and vectorize_image return a signed download
link (valid 24 hours); image_palette, brand_from_url, page_metadata and accessibility_check return their JSON result in the tool result. Add
save_to to write either kind to disk. Prices come from Bacon's live catalog, and each paid tool
states its current price in its description.
image_palette, brand_from_url, page_metadata, accessibility_check and vectorize_image appear once Bacon's catalog publishes
them with contract versions. A service the installed package doesn't understand is listed by list_services but
can't be called until you update the package.
Free tools:
list_services: everything Bacon sells right now, with prices, limits, and whether this
version of the package can run it.quote: Bacon's current price for one service, and whether your limits and wallet allow it.
Nothing is signed.wallet_status: network, whether a wallet is configured, your limits and what's left of them,
and whether you can afford each service (yes/no).~/.bacon/buyer.key.
Pointing BACON_WALLET_KEY_FILE at that file keeps the key out of MCP host configs, which are
often synced or shared. BACON_WALLET_PRIVATE_KEY also works.The key never leaves your machine. Only signatures are sent, and only to Bacon. The key is never logged, never written to the spend ledger, and never accepted as a tool argument.
Add more -e NAME=value pairs for the limits below. Check it with claude mcp list.
Settings → Developer → Edit Config (claude_desktop_config.json):
On Windows, if npx isn't found, use "command": "cmd" with
"args": ["/c", "npx", "-y", "baconservices-mcp"], and write paths as
"C:\\Users\\you\\.bacon\\buyer.key". Restart Claude Desktop afterwards.
mcpServers fileUse the same command / args / env block as Claude Desktop (for Cursor:
~/.cursor/mcp.json or .cursor/mcp.json in a project).
.vscode/mcp.json)VS Code can prompt for the key once and store it securely:
It's a stdio server: run npx -y baconservices-mcp with the environment below.
All of these checks happen before anything is signed:
max_price_usdc on the call, the
per-session limit, and the 24-hour limit. The 24-hour total is kept in a local ledger file
shared by every process, so restarting the MCP server or running it twice doesn't open a new
budget. If the ledger can't be read, nothing is paid. The x402 library's own per-payment
cap is set to your per-call limit as a second lock.allow_repeat: true.list_services. They
become callable tools only once a version of this package that understands their contract
(inputs, outputs, version) is installed.If Bacon refuses a payment before taking it, the result says "You have not been charged" and the amount goes back to your limits. If the outcome is unknown (for example the connection was lost twice), the result says so and gives Bacon's request id. That amount keeps counting against your limits.
Production Bacon sells only for real USDC. To try things without real money, run against a local or test copy of Bacon that sells on Base Sepolia:
The package refuses mismatched setups and pays nothing in each case: test money pointed at baconservices.com, real money pointed anywhere else, or a Bacon whose catalog is on a different network.
The tests run against a fake Bacon that checks every payment signature for real. Nothing reaches a network.
This MCP client is open source under the MIT License. Bacon Services' hosted APIs, Agent Commerce services, x402-paid capabilities, infrastructure, and backend implementations are separate services and are not licensed under the MIT License. Use of Bacon Services' hosted APIs and x402 services is governed by the Bacon Services terms.
For MCP, x402, or Agent Commerce support, contact Bacon Services: https://baconservices.com/contact?topic=mcp. Please never send a wallet private key. Bugs in this package can also be reported as issues on its repository.
The MIT License applies to the source code in this repository only. "Bacon Services," the Bacon Services name, logos, and associated branding are not licensed under the MIT License. No permission is granted to use Bacon Services trademarks, logos, or branding in a way that suggests endorsement, sponsorship, or affiliation. See TRADEMARKS.md.
MIT. See LICENSE.
來源:README.md,提交 446b0fb
Lists what Bacon Services sells to agents right now, from its live catalog: each service's price in USDC, network, output, input limits, and whether this installed package can run it (and as which tool). Free.
無需輸入參數。
Gets Bacon's current price for one service without paying, and says whether your spending limits and wallet allow it. Free; nothing is signed.
service必填Shows the payment network, whether a wallet is configured, your spending limits and what is left of them, and whether the wallet can afford each service (yes/no). Free. The exact balance is shown only if the buyer enabled BACON_DISCLOSE_BALANCE.
serviceRemove background
Removes the background from one photo and returns the subject on a transparent background as a PNG, at the photo's own size. Costs 0.05 USDC per call (real money) on Base, paid from the buyer's wallet over x402 after the buyer's spending limits are checked. Input: PNG, JPEG, WEBP, up to 8 MB, at most 4096 px. Give exactly one of image_url or image_path. Output: image/png, as a download link (and a file with save_to).
save_toimage_urloverwriteimage_pathallow_repeatmax_price_usdcOptimize image for the web
Resizes one image so its longest side is at most max_width pixels (never enlarging it) and encodes it as WebP at the given quality. Transparency is kept; metadata is not carried over. Costs 0.01 USDC per call (real money) on Base, paid from the buyer's wallet over x402 after the buyer's spending limits are checked. Input: PNG, JPEG, WEBP, up to 8 MB, at most 8000 px. Give exactly one of image_url or image_path. Output: image/webp, as a download link (and a file with save_to).
qualitysave_toimage_urlmax_widthoverwriteimage_pathallow_repeatmax_price_usdcImage palette
Returns the colours one image is mostly made of, as JSON: up to count colours, most common first, each a hex value with its share of the image and whether it is a neutral. Costs 0.01 USDC per call (real money) on Base, paid from the buyer's wallet over x402 after the buyer's spending limits are checked. Input: PNG, JPEG, WEBP, up to 8 MB, at most 4096 px. Give exactly one of image_url or image_path. Output: JSON, returned in the tool result.
countsave_toimage_urloverwriteimage_pathallow_repeatmax_price_usdcinclude_neutralsBrand from URL
Reads one public web page and returns the brand it publishes about itself, as JSON: name, description, logo image URLs, colours, fonts and social profiles. No JavaScript runs; robots.txt is respected. Costs 0.03 USDC per call (real money) on Base, paid from the buyer's wallet over x402 after the buyer's spending limits are checked. Give url: one public web page (http or https, standard ports). Output: JSON, returned in the tool result.
urlsave_tooverwriteallow_repeatmax_price_usdcPage metadata
Reads one public web page and returns what it tells search engines and link previews, as JSON: title and description with lengths, canonical, redirects, robots rules, Open Graph and Twitter cards, headings, JSON-LD types and a list of SEO issues. No JavaScript runs; robots.txt is respected. Costs 0.01 USDC per call (real money) on Base, paid from the buyer's wallet over x402 after the buyer's spending limits are checked. Give url: one public web page (http or https, standard ports). Output: JSON, returned in the tool result.
urlsave_tooverwriteallow_repeatmax_price_usdcAccessibility check
An automated WCAG check of one public web page (axe-core), as JSON: each failing rule with its impact, WCAG criteria, element count and examples; what needs review; and the criteria a person must test. Not a certification of WCAG or ADA conformance. Scripts on the page do not run; robots.txt is respected. Costs 0.05 USDC per call (real money) on Base, paid from the buyer's wallet over x402 after the buyer's spending limits are checked. Give url: one public web page (http or https, standard ports). Output: JSON, returned in the tool result. A result over 256 KB is not shown; pass save_to to keep it.
urlsave_tostandardviewportoverwriteallow_repeatmax_price_usdcVectorize image
Traces one PNG, JPEG or WebP image into an SVG of filled paths with up to colors flat colours. Best for logos, icons and flat artwork; a photo comes back as a stylised poster, and its SVG is larger than the photo (often two to three times a PNG of it at 16 colours; colors sets the size). The SVG keeps the image's width and height (capped at 4096). Costs 0.05 USDC per call (real money) on Base, paid from the buyer's wallet over x402 after the buyer's spending limits are checked. Input: PNG, JPEG, WEBP, up to 8 MB, at most 8000 px. Give exactly one of image_url or image_path. Output: image/svg+xml, as a download link (and a file with save_to).
colorsdetailsave_toimage_urloverwriteimage_pathallow_repeatmax_price_usdcClean SVG
Cleans and simplifies one SVG and returns it as JSON, with a report (bytes saved, what was removed, warnings). The SVG is rebuilt from an allowlist: scripts, event handlers, animation, links and references outside the file are removed; editor data, unused definitions, hidden and empty elements go; numbers are rounded and path data rewritten short. It looks the same unless simplify is light or strong. The cleaned SVG is result.svg. Costs 0.01 USDC per call (real money) on Base, paid from the buyer's wallet over x402 after the buyer's spending limits are checked. Input: one SVG, up to 1 MB. Give exactly one of svg, svg_url or svg_path. Output: JSON, returned in the tool result. A result over 256 KB is not shown; pass save_to to keep it.
svgsave_tosvg_urlkeep_idssimplifysvg_pathoverwriteprecisionallow_repeatmax_price_usdc已滿足適用檢查項的 90%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
claude mcp add bacon -e BACON_WALLET_KEY_FILE=/home/you/.bacon/buyer.key -- npx -y baconservices-mcp{ "mcpServers": { "bacon": { "command": "npx", "args": ["-y", "baconservices-mcp"], "env": { "BACON_WALLET_KEY_FILE": "/Users/you/.bacon/buyer.key", "BACON_MAX_PER_CALL": "0.50", "BACON_MAX_PER_SESSION": "1.00", "BACON_MAX_PER_DAY": "5.00" } } }}{ "inputs": [ { "type": "promptString", "id": "bacon-key", "description": "Bacon buyer wallet private key", "password": true } ], "servers": { "bacon": { "type": "stdio", "command": "npx", "args": ["-y", "baconservices-mcp"], "env": { "BACON_WALLET_PRIVATE_KEY": "${input:bacon-key}" } } }}BACON_NETWORK=base-sepolia BACON_API_URL=http://127.0.0.1:8000 BACON_PAY_TO=0xYourTestPayTo npx -y baconservices-mcpnpm installnpm test