fsastore-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@fsastore-mcp Search fsastore for sunscreen and add the cheapest one to my cart."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
fsastore-mcp
An MCP server that lets an AI agent (Claude or Codex) search FSA‑eligible products on fsastore.com and add them to your shopping cart, then place the order only when you explicitly confirm the total.
Runs with one
uvxcommand — no clone, no manual install.No password is ever stored. You paste a short‑lived access token from your browser via a one‑click bookmarklet.
Search → cart is verified against the live store API.
1. Add it to your agent
You need uv installed (brew install uv). uvx
then builds and runs the server straight from the repo.
This repo is private, so
uvxclones it with your Git credentials. Rungh auth login(or have SSH set up) first. If you use SSH, swap the URL forgit+ssh://git@github.com/darrengruber/fsastore-mcp.
Claude Code (CLI)
claude mcp add fsastore -- \
uvx --from git+https://github.com/darrengruber/fsastore-mcp fsastore-mcpClaude Desktop
Add to claude_desktop_config.json (Settings → Developer → Edit Config):
{
"mcpServers": {
"fsastore": {
"command": "uvx",
"args": ["--from", "git+https://github.com/darrengruber/fsastore-mcp", "fsastore-mcp"]
}
}
}OpenAI Codex CLI
Add to ~/.codex/config.toml:
[mcp_servers.fsastore]
command = "uvx"
args = ["--from", "git+https://github.com/darrengruber/fsastore-mcp", "fsastore-mcp"]Restart the agent after editing config. To grab the latest code later, add
--refresh to the uvx args (e.g. ["--refresh", "--from", "git+...", "fsastore-mcp"]).
Related MCP server: Instacart MCP Server
2. Install the token bookmarklet (one minute, one time)
The store sits behind bot protection, so the server can't log in for you. Instead you hand it a fresh token with one click. Set this up once:
Copy this entire line (it starts with
javascript:):javascript:(function(){var m=document.cookie.match(/scapi_access_token=([^;]+)/);if(!m){alert('No token yet — open your Cart once, then click again.');return;}var t=decodeURIComponent(m[1]);navigator.clipboard.writeText(t).then(function(){alert('FSA token copied ('+t.length+' chars). Paste it to your agent.');},function(){window.prompt('Copy this token:',t);});})();Create a bookmark and paste that line as its URL:
Chrome / Edge: ⭐ in the address bar → Edit → set Name to
FSA tokenand replace the URL with the copied line → Save. (Or: menu → Bookmarks → Bookmark Manager → ⋮ → Add new bookmark.)Firefox: Bookmarks menu → Manage Bookmarks → right‑click a folder → Add Bookmark → Name
FSA token, Location = the copied line.Safari: add any bookmark, then Edit Bookmarks and paste the line as its address.
That's it — you now have an FSA token button.
3. Use it
Log in at https://www.fsastore.com in your browser.
Click your FSA token bookmark. It copies a token to your clipboard. (If it says "No token yet", open your Cart page once and click again.)
In Claude/Codex, tell the agent to set the access token, and paste it:
Use
set_access_tokenwith:eyJ...(your copied token)Now just ask, e.g.:
Search fsastore for sunscreen and add two of the cheapest eligible one to my cart.
When the token expires (~30 min), any tool replies login_required — just click
the bookmark and set_access_token again.
Tip: ask the agent to run
auth_status. It reports whether your token is for your account or a Guest session. If it says Guest, log in first, then re‑run the bookmark — otherwise you'll be editing a guest cart.
Tools the agent can call
Tool | Purpose |
| Cache a token copied by the bookmarklet |
| Whether a valid token is cached, who it's for, time left |
| Search; FSA‑eligible only by default, each tier‑labeled |
| Add a product (master products auto‑resolve to a buyable variant) |
| Show cart contents and total |
| Show the total to confirm |
| Place the order — only if the live total matches the one you pass |
The server never places an order except through confirm_order with a matching
total.
Run it directly (optional)
# from a clone
uvx --from . fsastore-mcp
# or
uv run fsastore-mcpRun as an HTTP server / container (optional)
For local use the stdio transport above is all you need. To run it persistently
behind an MCP gateway, set FSASTORE_MCP_TRANSPORT=http (host/port via
FSASTORE_MCP_HOST / FSASTORE_MCP_PORT). A Dockerfile is included:
docker build -t fsastore-mcp .
docker run --rm -p 9130:9130 -v fsastore-state:/state fsastore-mcpState (the cached token, active basket id) lives in the process, so serve HTTP
with a single replica. The token is written under XDG_STATE_HOME
(/state in the image) — mount a writable volume there.
Develop
uv sync
uv run pytest # tests
uv run ruff check . # lint
uv run ty check src # typesDesign notes and decisions: CONTEXT.md and docs/adr/.
Status
Verified against the live store API: product search + FSA‑eligibility, cart reuse,
master→variant resolution, add‑to‑cart. Checkout submission (confirm_order)
is wired and gated but not yet exercised end‑to‑end — a saved shipping/payment
method may need to be applied to the cart first. The Confirm Gate prevents
accidental orders regardless.
Available Tools
7 toolsadd_to_cartB
Add a product (by SFCC product id) to the cart and return the updated cart.
Inputs: pid (required), quantity. Returns: object
auth_statusA
Report whether a valid access token is cached and for how long.
Inputs: no named parameters. Returns: object
confirm_orderB
Place the order (the Confirm Gate). Submits only if the live total matches expected_total.
Inputs: expected_total (required). Returns: object
get_checkout_summaryA
Show the order total to review before confirming. Pass this total to confirm_order.
Inputs: no named parameters. Returns: object
search_productsA
Search products. Returns FSA-eligible items by default, each tagged with its tier.
Inputs: query (required), limit, eligible_only. Returns: object
set_access_tokenB
Cache a freshly pasted scapi_access_token (from the FSA-token bookmarklet).
Inputs: token (required). Returns: object
view_cartA
Show the current cart contents and total.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose: auth, product search, cart manipulation, and order confirmation. No overlap in functionality.
All tools follow a consistent verb_noun snake_case pattern (e.g., add_to_cart, search_products, view_cart), making it easy to predict tool names.
With 7 tools, the set is concise yet covers the essential workflow of an FSA store checkout. No unnecessary tools or missing core actions for the apparent scope.
Covers the main flow (auth, search, cart add/view, checkout summary, confirm) but lacks cart modification tools like remove or update quantity, which agents might need.
Related MCP Connectors
Live product search for AI agents across Shopify merchants and major retailers.
Search live store shelves, verify delivery windows, and run instant AI agent checkouts.
Shopify product discovery and x402-paid offer verification for AI agents.
Product search for AI agents: Amazon + Shopify, cart-to-checkout buy path. Pay-per-call, no API key.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search products, manage shopping carts, place orders, and retrieve order history from Amazon and Target accounts.3MIT
- AlicenseAqualityDmaintenanceEnables AI agents to search for products, manage shopping carts, and place grocery orders on Instacart using browser automation. It includes comprehensive tools for store discovery, product searching, and secure checkout with explicit user confirmation.1159 npm12MIT
- AlicenseAqualityDmaintenanceEnables AI agents to search products, lookup barcodes, and manage shopping carts and wishlists using free e-commerce APIs.8MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to search products, manage cart, place orders, and track shipments on Amazon via browser automation.2MIT