Skip to main content
Glama

Mutmut MCP

A Model Context Protocol (MCP) server for managing mutation testing with mutmut. This tool provides a set of programmatic APIs for running mutation tests, analyzing results, and improving test coverage in Python projects.

Features

  • Run mutation testing sessions on any Python module or package

  • Show overall mutation testing results and surviving mutations

  • Suggest areas needing better test coverage

  • Rerun mutmut on specific survivors or all survivors

  • Clean mutmut cache

  • Designed for automation and integration with other MCP tools

Related MCP server: MCP Python Server

Install

# Run directly from GitHub (no install needed)
uvx --from git+https://github.com/wdm0006/mutmut-mcp mutmut-mcp

# Or install from source
git clone https://github.com/wdm0006/mutmut-mcp
cd mutmut-mcp
uv sync
uv run mutmut_mcp.py

Installing via Smithery

To install mutmut-mcp for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @wdm0006/mutmut-mcp --client claude

MCP Client Configuration

{
  "mcpServers": {
    "mutmut": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/wdm0006/mutmut-mcp", "mutmut-mcp"]
    }
  }
}

API / Tools

The following tools are available:

  • run_mutmut(target, options="", venv_path=None, project_path=None) – Run a mutation testing session on the target

  • show_results(venv_path=None, project_path=None) – Show overall results

  • show_survivors(venv_path=None, project_path=None) – List surviving mutations, plus a labelled section for mutants no test covers

  • rerun_mutmut_on_survivor(mutation_id=None, venv_path=None, project_path=None) – Rerun mutmut on a specific survivor or all survivors

  • clean_mutmut_cache(venv_path=None, project_path=None) – Clean mutmut cache

  • show_mutant(mutation_id, venv_path=None, project_path=None) – Show the code diff and details for a specific mutant

  • prioritize_survivors(venv_path=None, project_path=None) – Rank uncovered mutants and survivors by likely materiality

project_path

Every tool accepts an optional project_path: the directory containing the project's mutmut configuration ([mutmut] paths_to_mutate= in setup.cfg / pyproject.toml), its source, its tests, and mutmut's mutants/ state directory. Mutmut runs with that directory as its working directory, and clean_mutmut_cache removes state only from inside it.

Pass it whenever the server was not launched from the project directory — which is typical for desktop MCP clients and uvx. Omitted, the tools fall back to the server process's working directory, so existing calls behave as before. A project_path that is not an existing directory returns an error without running mutmut or deleting anything.

venv_path

venv_path points at the virtual environment holding the project's mutmut (the tools use <venv>/bin/mutmut, or <venv>\Scripts\mutmut.exe on Windows); omitted, mutmut is taken from PATH. A relative venv_path is resolved against project_path when both are given, so the common .venv form works:

{ "project_path": "/home/me/src/myproject", "venv_path": ".venv" }

License

This project is licensed under the MIT License. See LICENSE for details.

Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
3dResponse time
Release cycle
Releases (12mo)
Commit activity
Issues opened vs closed

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    C
    maintenance
    A Model Context Protocol server that enables AI assistants like Claude to perform Python development tasks through file operations, code analysis, project management, and safe code execution.
    9
    MIT
  • F
    license
    -
    quality
    D
    maintenance
    A Python-based implementation of the Model Context Protocol that enables communication between a model context management server and client through a request-response architecture.
  • -
    license
    A
    quality
    -
    maintenance
    A Model Context Protocol server that allows LLMs to interact with Python environments, enabling code execution, file operations, package management, and development workflows.
    9

View all related MCP servers

Related MCP Connectors

  • A Model Context Protocol server for Wix AI tools

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • MCP (Model Context Protocol) server for Appwrite

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wdm0006/mutmut-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server