Unit Test Generator MCP Server

1. Cursor -> Preferences -> Cursor Settings -> MCP -> Add new global MCP server

Local serverstdioISC

What is the Unit Test Generator MCP Server?

Unit Test Generator is an MCP project maintained in the hanqizheng/unit-test-generator-mcp-server repository. The maintainer describes its purpose as “1. Cursor -> Preferences -> Cursor Settings -> MCP -> Add new global MCP server”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using node. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares PROJECT_PATH. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

How to install the Unit Test Generator MCP Server

{
  "mcpServers": {
    "unit-test-generator": {
      "command": "node",
      "args": [
        "YOUR_MCP_SERVER_BUILD_INDEX_PATH"
      ],
      "env": {
        "PROJECT_PATH": "YOUR_COMPONENT_LIBRARY_PROJECT_PATH"
      },
      "transport": "stdio",
      "enabled": true,
      "description": "component library unit test generator"
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
PROJECT_PATHDeclared in the maintainer’s client configuration.Check documentation