Pytest Mcp Server MCP Server

A Model Context Protocol (MCP) server for debugging pytest failures using systematic debugging principles.

Local serverstdioMIT

What is the Pytest Mcp Server?

Pytest Mcp Server is an MCP project maintained in the tosin2013/pytest-mcp-server repository. The maintainer describes its purpose as “A Model Context Protocol (MCP) server for debugging pytest failures using systematic debugging principles”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using pytest-mcp-server. 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 DATA_DIR. 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 Pytest Mcp Server

{
  "mcpServers": {
    "pytest-mcp-server": {
      "command": "pytest-mcp-server",
      "args": [
        "start"
      ],
      "env": {
        "DATA_DIR": "./pytest-data"
      }
    }
  }
}

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

Configuration

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