Mutmut MCP

by wdm0006
MIT License
Integrations
  • Enables cloning repositories for running mutation tests on Python projects stored on GitHub.

  • Used as the default test runner for mutation testing, allowing assessment of test coverage and quality against mutations.

  • Provides mutation testing capabilities specifically for Python modules and packages.

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

Installation

  1. Clone the repository:
    git clone https://github.com/wdm0006/mutmut-mcp.git cd mutmut-mcp
  2. Install dependencies:
    python3 -m venv .venv source .venv/bin/activate pip install -U pip pip install mcp[cli] mutmut

Usage

You can run the MCP server directly:

python mutmut_mcp.py

Or use with uv:

uv run --with mcp --with mutmut mutmut_mcp.py

API / Tools

The following tools are available:

  • run_mutmut(target, test_command="pytest", options="", venv_path=None) – Run mutation testing
  • show_results(venv_path=None) – Show overall results
  • show_survivors(venv_path=None) – List surviving mutations
  • generate_test_suggestion(venv_path=None) – Suggest areas needing better test coverage
  • rerun_mutmut_on_survivor(mutation_id=None, venv_path=None) – Rerun mutmut on survivors
  • clean_mutmut_cache(venv_path=None) – Clean mutmut cache

License

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

-
security - not tested
A
license - permissive license
-
quality - not tested

A Model Context Protocol server that provides programmatic APIs for running mutation tests with mutmut, analyzing results, and improving test coverage in Python projects.

  1. Features
    1. Installation
      1. Usage
        1. API / Tools
          1. License

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              Facilitates unified execution and result parsing for various testing frameworks, including Bats, Pytest, Flutter, Jest, and Go, through a Model Context Protocol interface.
              Last updated -
              1
              12
              TypeScript
              MIT License
              • Apple
              • Linux
            • -
              security
              F
              license
              -
              quality
              A Model Context Protocol server that integrates with the Qase test management platform, allowing users to create and retrieve test cases, manage test runs, and interact with Qase projects.
              Last updated -
              1
              JavaScript
            • -
              security
              A
              license
              -
              quality
              Model Context Protocol server to run Python code in a sandbox.
              Last updated -
              1,462
              9,629
              Python
              MIT License
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server designed for testing backend APIs for security vulnerabilities like authentication bypass, injection attacks, and data leakage.
              Last updated -
              1
              TypeScript
              MIT License

            View all related MCP servers

            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