Skip to content
Skillpedia
βœ“ Official Β· ShaftHQ● Free and open sourceπŸ’» LocalπŸ”“ No API keyProgramming

SHAFT MCP

Lets your AI agent automate browsers, capture evidence and diagnose test failures with the SHAFT test engine.

418 stars on GitHubby ShaftHQLicense MITUpdated 18 days ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add shaft -- docker run -i --rm ghcr.io/shafthq/shaft-engine-mcp:10.4.20261102

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Write a SHAFT test that opens my home page and checks the main heading is visible.
Diagnose why my last test run failed using the captured evidence.

What it is

SHAFT is a Java test automation framework for web, mobile, API, command line, database and desktop tests. The registry describes this MCP server as providing SHAFT browser automation, capture and offline failure diagnosis. Every test run ends in an Allure report with steps, screenshots and logs.

What it can do

  • Browser automation with SHAFT
  • Capture of screenshots and evidence
  • Offline deterministic failure diagnosis
  • Tests for web, mobile, API, CLI, database and desktop in one engine

When to use

  • β€ΊWhen you write Java tests and want one engine for web, mobile and API checks
  • β€ΊWhen a test failed and you want a diagnosis from the evidence
  • β€ΊWhen you want every test run to produce an Allure report

What you need

Java and Maven for the SHAFT engine. The README does not list the MCP server's own requirements, so see the SHAFT docs.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free and open source?

Yes. The README says SHAFT is MIT licensed and available on Maven Central.

Which test runners work?

TestNG, JUnit or Cucumber, according to the README.

Can it run on cloud devices?

Yes. The README lists local runs, Grid, BrowserStack and LambdaTest.

Where is the MCP tool list?

The README points to a separate MCP tools reference in the repository, which is not included in the excerpt.

What does a test look like?

You use a fluent Java API such as driver.browser().navigateToURL(...) and then assert on elements.

Is there an IntelliJ plugin?

Yes. The README links a shaft-intellij plugin.

If it does not work

  • β€ΊCheck that Java and Maven are installed before running mvn test.
  • β€ΊUse the project generator at shafthq.github.io to create a working starter project.
  • β€ΊSee the repository's MCP tools reference for the server's exact setup.

5 new skills a week. 1 minute to read.