
Pytest MCP Server
Supports UIby kieranlal
Integrate pytest results directly into your LLM's context for smarter test-driven development.
What it does
Pytest MCP Server allows your AI assistant to track and analyze the outcome of your Python test suites. By recording the start, outcome, and finish of pytest sessions, it provides the LLM with a real-time understanding of which tests are failing and why, enabling it to suggest more accurate fixes.
Tools
record_session_start: Initializes a test run context and captures environment details.record_test_outcome: Records the result (passed/failed/skipped) and duration of individual test cases.record_session_finish: Summarizes the total test run results and exit status.
Installation
Run the server using Node.js:
node index.js
Or if using the published package:
npx @modelcontextprotocol/mcp-pytest-server
Supported hosts
- Claude Desktop
Quick install
npx @modelcontextprotocol/mcp-pytest-serverInformation
- Pricing
- free
- Published
- 5/13/2026
- stars





