TestPilot MCP
Enables AI models (Claude, ChatGPT, GitHub Copilot) to run and analyze local tests, rerun failures, and orchestrate QA workflows using existing UI and API test frameworks.
README
TestPilot MCP
TestPilot MCP is an open-source Model Context Protocol (MCP) server that allows AI models (Claude, ChatGPT, GitHub Copilot) to run tests, analyze results, and orchestrate QA workflows locally.
It works with your existing UI and API test frameworks โ no rewrites, no lock-in.
๐ What TestPilot MCP Does
TestPilot MCP enables AI to:
- Run Playwright UI tests
- Run existing API test suites (any framework)
- Read and summarize test reports
- Rerun failed tests
- Explain failures in plain English
All locally, using your current test setup.
๐ง What TestPilot MCP Is NOT
- โ Not a test framework
- โ Not a Playwright replacement
- โ Not a cloud service
- โ Not automatic test generation
TestPilot MCP is a controller / orchestrator that lets AI interact with real tools via MCP.
๐ฆ Requirements
You must already have:
- Node.js (v18+ recommended)
- A working test setup (UI and/or API)
- Tests that can run via CLI
If this works on your machine:
npx playwright test
or:
npm run api-tests
Then TestPilot MCP will work.
๐ง Installation
git clone https://github.com/Kirit2121/testpilot-mcp
cd testpilot-mcp
npm install
npx playwright install
โถ๏ธ Running the MCP Server
node server.js
This starts the MCP server and exposes TestPilot tools to MCP-compatible AI clients.
๐ค Using with AI Clients
Claude Desktop / ChatGPT MCP
Add this to your MCP configuration:
{
"mcpServers": {
"testpilot": {
"command": "node",
"args": ["server.js"]
}
}
}
Restart the AI client after saving.
๐งช Available Tools
UI Testing
run_ui_testsโ Executes Playwright testsread_test_reportโ Reads Playwright JSON reportrerun_failed_testsโ Reruns failed Playwright tests
API Testing
run_api_testsโ Runs any API test command (framework-agnostic)
๐งช API Testing Usage Example
If your project already supports:
npm run api-tests
You can tell the AI:
โRun API tests using npm run api-tests and summarize failures.โ
TestPilot MCP will:
- Execute the command
- Capture output
- Return structured results to the AI
No framework changes required.
๐ Recommended Project Structure
your-project/
โโโ tests/
โโโ playwright.config.ts
โโโ package.json
โโโ testpilot-mcp/
TestPilot MCP can live alongside your existing test repository.
๐ Security Model
- TestPilot MCP only executes tools you explicitly expose
- No remote execution unless you configure it
- Runs locally under your user permissions
- No hidden network access
๐งฉ Extending TestPilot MCP
You can extend TestPilot MCP with:
- CI/CD triggers (GitHub Actions, Jenkins)
- Jira issue creation
- Slack / Teams notifications
- Docker support
- Release readiness scoring
Pull requests are welcome.
๐ค Who Is This For?
- QA Engineers
- SDETs
- Developers
- DevOps teams
- AI tooling enthusiasts
If you already have tests, TestPilot MCP helps AI control and reason about them.
๐ License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.