Universal Test Framework logo

Universal Test Framework

Generates, validates, runs, and reports on contract-driven tests across six programming languages.

Install Universal Test Framework

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "universal-test-framework": {
      "command": "uvx",
      "args": [
        "--from",
        "universal-test-framework",
        "utf-server"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio universal-test-framework -- uvx --from universal-test-framework utf-server

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 14 tools correctly ().

Overview

The universal-test-framework MCP server generates and evaluates tests against an eight-section quality contract for Python, TypeScript, JavaScript, Java, Go, and C++. It exposes MCP tools for test generation, validation, coverage analysis, traceability, execution, mutation testing, registry queries, and reporting. A persistent SQLite registry stores project test data and results, with project isolation controlled through the working directory, project_dir, or UTF_PROJECT_DIR. Reach for it when AI-generated tests need measurable requirements coverage, contract checks, structured CI results, or historical feedback.

Use cases

  • Generate contract-compliant tests from source code
  • Validate AI-written or hand-written tests
  • Find untested requirements and coverage gaps
  • Run mutation tests and inspect mutation scores
  • Track test results across project sessions

Key features

  • Eight-section test contract enforcement
  • Support for six programming languages
  • Persistent per-project SQLite registry
  • Coverage and requirements traceability analysis
  • Structured test, mutation, and report outputs
  • JUnit XML result import

Tools14

What Universal Test Framework lets your agent do. Expand a tool for its parameters.

Verified live~3.2k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/16 checks healthy over the last 89d

What it can do

From the 14 tools this server returned when we ran it.

Runs commands · 1Read-only tools · 13
Network at startup2 connections
Files written at startup13

Observed 2026-11-09 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · universal-test-framework (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit7mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed14Callable tools this server registers over MCP.

How Universal Test Framework works

What universal-test-framework does

The universal-test-framework MCP server applies a contract-based workflow to test generation and review. It supports Python, TypeScript, JavaScript, Java, Go, and C++, along with unit, integration, API, end-to-end, contract, performance, and security test categories.

Generated tests are evaluated against eight sections and must reach a minimum score of 0.85 to pass the contract gate. The server can also inspect hand-written tests, identify missing coverage, recommend suitable test types, and connect requirements to test cases through a traceability matrix.

The project is intended to complement coding assistants rather than replace them. It provides the enforcement and reporting layer after an assistant proposes or writes tests.

How it works

MCP clients call tools with source code, test files, project information, or result files. Language and framework detection can guide later operations, while generation returns a complete suite designed to satisfy the contract. Validation checks an individual test, and coverage analysis reports areas that existing tests do not address.

Test metadata and execution results are stored in a per-project SQLite registry at .utf/utf.db for standard local configurations. The registry supports later queries and feedback reports, including coverage health, gap analysis, and trends. JUnit XML from external test runs can also be imported into the registry.

The server can execute test files and return structured CI results, run mutation testing with a mutation score, and produce HTML, JUnit, or JSON compliance reports. Test identifiers may use either the three-part TC-{PRJ}-{MODULE}-{NNN} form or the shorter TC-{MODULE}-{NNN} form.

Setup and configuration

The universal-test-framework MCP server can be installed with uvx, from a local clone, through Docker, from the GitHub MCP Registry, or as a Python package. The uvx approach starts utf-server over stdio without cloning the repository. A local installation includes a VS Code setup script and can install the @utf extension.

Docker exposes the server at http://localhost:8765/sse. In that mode, project isolation requires an explicit project_dir tool argument, a UTF_PROJECT_DIR container setting, or a bind mount for the .utf directory. Local stdio configurations can use ${workspaceFolder} as both the working directory and UTF_PROJECT_DIR value.

The Python package can be installed with pip and called through its SDK modules. Passing project_dir explicitly keeps registry data associated with the intended project; otherwise, the current working directory is used.

Tools and capabilities

Available MCP operations include:

  • Generate complete suites and validate generated or hand-written tests.
  • Detect a language and framework, then suggest test types with rationale.
  • Analyze coverage gaps and build requirements-to-tests traceability matrices.
  • Import JUnit XML, query the persistent registry, and retrieve feedback status.
  • Run tests, execute mutation tests, and return structured results or mutation scores.
  • Produce HTML, JUnit, and JSON contract-compliance reports.
  • Check server version, uptime, and tool count with the health operation.

Limitations and notes

The contract gate blocks tests below the stated 0.85 minimum score. The registry is project-scoped only when the working directory, project_dir, or UTF_PROJECT_DIR is configured correctly. Docker does not provide workspace-folder templating, so remote setups need explicit project configuration.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Universal Test Framework

universal-test-framework is an MCP server that connects AI coding clients to project test workflows through tools for generating, validating, running, and reporting on tests. It supports Python, TypeScript, JavaScript, Java, Go, and C++, with contract checks, coverage analysis, traceability, mutation testing, and registry queries.

Install it with uvx, a local clone, Docker, the GitHub MCP Registry, or pip. The uvx method starts `utf-server` over stdio, while Docker exposes an SSE endpoint at `http://localhost:8765/sse`. The Python package also provides SDK modules for programmatic use.

Yes, the README names Cursor as a supported MCP client. Configure the server using a compatible stdio or SSE entry, and provide project context through the working directory, `project_dir`, or `UTF_PROJECT_DIR` when registry isolation matters.

It stores project test data and results in a persistent SQLite registry, normally at `.utf/utf.db`. You can import JUnit XML, query the registry, and retrieve feedback reports. Correct project isolation depends on configuring the project directory explicitly when using Docker or other remote setups.

It generates HTML, JUnit, and JSON contract-compliance reports. Other tools return coverage gaps, traceability data, structured test execution results, mutation scores, and feedback on coverage health and trends.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewUniversal Test Framework AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/universal-test-framework?style=directory)](https://allmcps.com/mcp/universal-test-framework)
HTML Embed
<a href="https://allmcps.com/mcp/universal-test-framework"><img src="https://allmcps.com/api/badge/universal-test-framework?style=directory" alt="Universal Test Framework on AllMCPs" /></a>