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
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
qaHelps your agent test a website or web app in a real browser and give it a 1 to 5 quality score with evidence.3d-underwater-god-raysHelps your agent add underwater light shafts to a 3D scene, with rippling light, caustic streaks and sunlight moving through the water.browser-automationLets your agent automate a web browser to scrape data, fill in forms, capture screenshots and extract structured information from pages.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.