Server data from the Official MCP Registry
Run checkout and payment test scenarios on test shops. Uses only published test cards.
About
Run checkout and payment test scenarios on test shops. Uses only published test cards.
Security Report
Valid MCP server (2 strong, 2 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry. Trust signals: 3 highly-trusted packages.
11 files analyzed · 1 issue found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Required
This plugin requests these system permissions. Most are normal for its category.
How to Install
Add this to your MCP configuration file:
{
"mcpServers": {
"checkout-test-mcp": {
"command": "npx",
"args": [
"-y",
"checkout-test-mcp@0.2.1"
]
}
}
}Some servers take additional arguments. See the repository for details.
Documentation
View on GitHubFrom the project's GitHub README.
checkout-test-mcp
An MCP server that lets AI agents run end-to-end checkout and payment test scenarios against e-commerce test environments, and get structured results they can act on.
"Run the 3D Secure failure scenario on staging and tell me what broke."
The agent calls list_scenarios, starts a run with run_scenario, reads the verdict with get_run_result, and checks a deploy with compare_runs. A failed checkout comes back as a result with a failing step, a category, likely causes, next actions, a screenshot, and the relevant console errors and network failures.
Stdio transport. Scenarios in YAML. Playwright (Chromium or Google Chrome).
Why use it
- Results an agent can use. Each failure has a category, likely causes, and next actions. The agent does not have to read a stack trace.
- Safe by default. Only allowlisted hosts and published test cards. A production run needs your yes each time.
- Regression checks.
compare_runsshows what broke between two runs of the same scenario. - No lost orders. The same idempotency key never starts a second checkout, also after a restart.
- Agent-written tests.
inspect_targetreads a new shop and suggests scenarios.save_scenariochecks and saves them.
Contents: Safety · Quick start · Example result · Tools · Scenarios · Contributing
Safety
- The agent sends a target name, never a URL. Targets come from the config file.
- Every browser request goes through a host allowlist. A request to another host is blocked. A navigation to another host stops the run with verdict
blocked. - A host must look like a test environment (
localhost,*.test, or a label such asstaging,qa,sandbox). A test target refuses hosts inproduction_hosts. - A production target needs
environment: production. Each tool shows a warning for it, and each new run needsconfirm_production: trueafter the user says yes. See Production targets. - Card values come only from a built-in registry of payment providers' published test cards. A card number in a tool argument or a scenario file is refused.
- Secrets come from environment variables named in the config. Secret-like tool arguments are refused. Logs and results are redacted.
Production targets
You can run the scenarios on the live site. A run there makes a real order and a real payment, changes stock, starts shipping, and sends email or SMS to real addresses. The server does not cancel or refund the order.
production_hosts: [www.shop.example]
targets:
shop-live:
environment: production
profile: my-store
base_url: https://www.shop.example
allowed_hosts: [www.shop.example]
live_cards:
company-visa:
number_env: SHOP_LIVE_CARD_NUMBER
expiry_env: SHOP_LIVE_CARD_EXPIRY
cvc_env: SHOP_LIVE_CARD_CVC
behaviour: success
- Set the three env vars for the MCP server process. Never put a card number in the config.
- Pass
card: live/company-visaas a param ofrun_scenario. - The agent asks you before each run. It sends
confirm_production: trueonly after you say yes.
Details: docs/design.md, section 12.
Quick start
Requirements: Node.js 22.12 or later (26 recommended).
-
Make a folder for your checkout tests and set it up:
mkdir checkout-tests && cd checkout-tests npx -y checkout-test-mcp initThe command writes a config file, example scenarios, and test data. It also installs Chromium. Use
--skip-browserto skip the browser install. -
Add the server to your client. Use the absolute path of the config file.
Claude Desktop (
claude_desktop_config.json):{ "mcpServers": { "checkout-test": { "command": "npx", "args": ["-y", "checkout-test-mcp", "--config", "/absolute/path/to/checkout-test-mcp.config.yaml"] } } }Claude Code:
claude mcp add checkout-test -- npx -y checkout-test-mcp --config /absolute/path/to/checkout-test-mcp.config.yaml -
Start the bundled demo store and ask the agent to run
list_scenarios:npx checkout-test-mcp demo-storeThe demo store runs on http://localhost:4173. Then ask: "Run card-3ds-challenge-fail on demo-local."
To see regression detection, restart the demo store with a bug and run the scenario again:
DEMO_STORE_BUGS=skip-3ds npx checkout-test-mcp demo-store
Then ask the agent to compare the two runs.
Other bug flags: cookie-banner shows a consent dialog over every page. login-wall removes the guest checkout.
Example result
With the skip-3ds bug on, card-3ds-challenge-fail fails. get_run_result gives the agent this failure block:
{
"step_id": "submit_payment",
"category": "element_not_found",
"expected": "3DS challenge frame with a \"Fail authentication\" button",
"actual": "Page navigated to /checkout/success. No challenge frame was present.",
"likely_causes": [
"The checkout skipped 3D Secure for a card that requires a challenge. This is a probable regression."
],
"next_actions": [
{
"kind": "treat_as_regression",
"description": "Report that the order completed without 3DS. Include the screenshot and the POST /api/payments response."
}
]
}
The full result also has a screenshot, the page URL, console errors, and network failures. See docs/tools.md.
Claude Desktop extension
You can install the server as a Desktop extension. Download checkout-test-mcp-<version>.mcpb from the releases page and open the file. Claude Desktop asks for the config file and, optionally, an env file.
The extension needs Google Chrome or Playwright Chromium on your computer. Run npx checkout-test-mcp init to install Chromium.
Browser
The browser field of the config picks the browser:
| Value | Meaning |
|---|---|
auto | Default. Uses Playwright Chromium, then Google Chrome. |
chromium | Uses Playwright Chromium only. |
chrome | Uses Google Chrome only. |
In auto mode, the server switches to Chrome only when Chromium is not installed. Each run result shows browser: { name, version }.
Secrets and env_file
Secrets come from environment variables. The config can also name a dotenv file with KEY=value lines:
env_file: ./.env # relative to the folder of the config file
The CLI flag --env-file <path> wins over the config field. A variable that is already set in the environment wins over the file. An error about the file names the path and the line number only, never a value. Keep the file out of version control.
Tools
| Tool | What it does |
|---|---|
list_scenarios | Lists scenarios, targets, and test card ids. Call it first. |
run_scenario | Starts a run in the background and returns a run_id at once. Needs an idempotency_key: the same key never starts a second checkout. |
get_run_result | Status, verdict (passed, failed, error, blocked), failing step, likely causes, next actions, screenshots, console and network failures. wait_s waits up to 20 s. |
compare_runs | Diffs two runs of the same scenario and reports regressions, fixes, and slower steps. |
inspect_target | Reads a test target (site and, when configured, source code) and suggests scenarios with evidence. One tool starts the job and long polls it with the same key. |
save_scenario | Checks and writes a scenario, fragment, or test data file, and can start a validation run. |
The server also has two prompts: setup_checkout_tests and create_scenario.
Full definitions: docs/tools.md.
Authoring and inspection
An agent can write scenarios for a new target. It calls inspect_target, reads the suggested scenarios and warnings, writes the YAML, and saves each file with save_scenario. Two config blocks turn this on:
authoring:
dir: ./scenarios/local # save_scenario writes here. Must be inside one of scenario_dirs.
test_data_dir_writable: false
targets:
my-staging:
# ...
inspect:
source_dirs: [../my-storefront] # optional, read-only code scan
start_paths: ["/"]
max_pages: 25
probe_checkout: false
- Without
authoring,save_scenariorefuses withAUTHORING_DISABLED. - Without
inspect,inspect_targetcrawls from/with defaults, skips the code scan, and does not run the checkout probe. probe_checkout: truelets the probe go to the payment step with fictional data. It never pays. On the test site it makes a cart item, a guest account with anexample.testemail, an address, and possibly an unpaid order draft. Turn it on only when this is acceptable.- Reports go to
runs_dir/inspections/<id>.json.
Set up a new shop
The server has an MCP prompt that sets up the checkout tests of a new shop with no human help. The agent asks you only for what the tools cannot find.
-
Add a target and the
authoringandinspectblocks to the config:authoring: dir: ./scenarios/local # inside one of scenario_dirs test_data_dir_writable: true # lets the agent write a fictional customer file targets: my-staging: profile: my-store base_url: https://staging.example-shop.test allowed_hosts: [staging.example-shop.test] third_party_hosts: [] # the agent asks you to add the payment and 3D Secure hosts secrets: member_email: SHOP_MEMBER_EMAIL # for the member scenario member_password: SHOP_MEMBER_PASSWORD inspect: source_dirs: [../my-storefront] # optional probe_checkout: true -
Set the secrets as environment variables before you start the server. Never paste a password into the chat. The agent tells you the names when one is missing.
-
Run the prompt
setup_checkout_testswith the target name. In Claude Code:/setup_checkout_tests my-staging(the client can show it with a server prefix).
The server reads the config once. After a config change, restart the server. The agent waits for the restart before it runs card scenarios.
The first setup inspects the target, writes the fragments, and writes and runs the baseline scenarios: guest card, declined card, terms required, and member card, when the report has the evidence. It tries each scenario at most 3 times. It ends with a table of each scenario, what it proves, its verdict, and its run id. Then it lists the offers (for example OTP login, gift card), the missing inputs, and the files. Commit the files yourself.
For one more scenario later, run the prompt create_scenario with the target and a request, for example "a declined card shows an error". See docs/tools.md.
Scenarios
Scenarios are YAML files with steps, Playwright-style locators, expectations, and final outcome checks. See card-3ds-challenge-fail.yaml and the format in docs/scenario-format.md. Fragments (include) and conditions (when) let one scenario cover guest and member checkouts. Editors can use schemas/scenario.schema.json for autocomplete.
Shipped examples:
| Scenario | Target |
|---|---|
card-success | bundled demo store |
card-3ds-challenge-fail | bundled demo store |
saucedemo-guest-checkout | www.saucedemo.com (needs SAUCEDEMO_USERNAME and SAUCEDEMO_PASSWORD, shown on the site's login page) |
Development
npm test # unit + integration
npm run test:e2e # real browser against the demo store
npm run lint
npm run typecheck
npm run smoke # build and call the server over stdio
Project rules: CLAUDE.md.
Contributing
Bug reports, scenario ideas, and pull requests are welcome. Read CONTRIBUTING.md before you open a pull request. To report a security problem, follow SECURITY.md. Do not open a public issue for it.
License
MIT. See LICENSE.
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Rea
Freeby Morluto · Developer Tools
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Paperclip
Freeby Paperclipai · Developer Tools
Trending hip-hop artist momentum scores across four cultural dimensions.
Scrapling
Freeby D4Vinci · Developer Tools
Web scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.
Server Time
Freeby Modelcontextprotocol · Developer Tools
Current time lookup and conversion between IANA timezones
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
