Listed from the MCP registry; nobody on Odel publishes it.
Run checkout and payment test scenarios on test shops. Uses only published test cards.
Runs on your machine from its package; the steps are below.
At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y checkout-test-mcp
MCP client config
{
"mcpServers": {
"checkout-test": {
"command": "npx",
"args": [
"-y",
"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).
compare_runs shows what broke between two runs of the same scenario.inspect_target reads a new shop and suggests scenarios. save_scenario checks and saves them.Contents: Safety · Quick start · Example result · Tools · Scenarios · Contributing
blocked.localhost, *.test, or a label such as staging, qa, sandbox). A test target refuses hosts in production_hosts.environment: production. Each tool shows a warning for it, and each new run needs confirm_production: true after the user says yes. See 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
card: live/company-visa as a param of run_scenario.confirm_production: true only after you say yes.Details: docs/design.md, section 12.
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 init
The command writes a config file, example scenarios, and test data. It also installs Chromium. Use --skip-browser to 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-store
The 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.
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.
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.
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 }.
env_fileSecrets 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.
| 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.
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
authoring, save_scenario refuses with AUTHORING_DISABLED.inspect, inspect_target crawls from / with defaults, skips the code scan, and does not run the checkout probe.probe_checkout: true lets 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 an example.test email, an address, and possibly an unpaid order draft. Turn it on only when this is acceptable.runs_dir/inspections/<id>.json.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 authoring and inspect blocks 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_tests with 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 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) |
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.
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.
MIT. See LICENSE.