Vitest Agent MCP
MCP server by spencerbeggs Verified · npm:@vitest-agent
Vitest Agent MCP is a Model Context Protocol server for vitest-agent. It gives AI assistants access to test data, the TDD lifecycle and session management, for developers who use Vitest with LLM coding agents.
Install Vitest Agent MCP
Built from the published package, never by AI.
claude mcp add vitest-agent-mcp -- npx -y @vitest-agent/mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"vitest-agent-mcp": {
"args": [
"-y",
"@vitest-agent/mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"vitest-agent-mcp": {
"args": [
"-y",
"@vitest-agent/mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"vitest-agent-mcp": {
"args": [
"-y",
"@vitest-agent/mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add vitest-agent-mcp -- npx -y @vitest-agent/mcp{
"mcpServers": {
"vitest-agent-mcp": {
"args": [
"-y",
"@vitest-agent/mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add vitest-agent-mcp npx -y @vitest-agent/mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the vitest-agent-mcp block.
About
Vitest Agent MCP is the MCP server from the vitest-agent monorepo. It ships as the vitest-agent-mcp bin in the @vitest-agent/mcp package. The server exposes action-keyed tools over stdio for LLM agent integration, plus framing prompts, so an assistant can read test status, coverage, failure history and trends.
The server uses the same Effect service architecture and the same SQLite database as the Vitest plugin, the CLI and the reporter. Every test run is persisted to SQLite at a path derived from XDG directories. The project is aimed at developers who run Vitest and want structured test results for LLM coding agents. It is released under the MIT license.
Written from the project's README and checked against it.
What you need
- Node.js
- pnpm
- Vitest
Try asking
- Show the status and coverage from my latest Vitest run
- List the tests that have failed repeatedly in this project
- Show how test results have trended over recent runs
Good to know
- The source does not name the individual MCP tools.
- Sidecar binaries are prebuilt only for macOS arm64, Linux arm64, Linux x64 and Windows x64.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Check test status after a run
- Review coverage for a project
- Investigate repeated test failures
- Track test trends over time
Alternatives to Vitest Agent MCP
All alternatives →Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.
ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.
Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.
MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.
Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.
MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.
Compare with Supabase, ArcadeDB MCP Server or DBHub
Vitest Agent MCP: common questions
Where does Vitest Agent MCP store test data?
It stores data in a SQLite database under $XDG_DATA_HOME/vitest-agent/<workspaceKey>/data.db. The workspace key comes from the root package.json name.
Which package provides the Vitest Agent MCP server?
The server is the vitest-agent-mcp bin in the @vitest-agent/mcp package. It communicates over stdio.
What kind of data can the assistant read through this server?
The source says the family exposes test status, coverage, failure history and trends. The server also covers the TDD lifecycle and session management.
How do I install Vitest Agent MCP?
In Claude Code run claude mcp add vitest-agent-mcp -- npx -y @vitest-agent/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Vitest Agent MCP the official server?
Vitest Agent MCP is published by npm:@vitest-agent from its verified domain in the official MCP Registry.
Is Vitest Agent MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Vitest Agent MCP safe to use?
It scores 85 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Vitest Agent MCP?
Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.
Does Vitest Agent MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
