NestDaddy

Python Code Validator

ai.statemind/python-code-validator · v1.22.0

Proves AI-generated Python does what you asked: lint, types, security, sandbox run, exact fixes.

Connect Remote server

Terminal
claude mcp add --transport http python-code-validator https://api.statemind.ai/mcp --header "Authorization: Bearer <YOUR_API_KEY>"
~/.cursor/mcp.json
{
  "mcpServers": {
    "python-code-validator": {
      "url": "https://api.statemind.ai/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_API_KEY>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "python-code-validator": {
      "type": "http",
      "url": "https://api.statemind.ai/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_API_KEY>"
      }
    }
  }
}
Claude Desktop
Settings > Connectors > Add custom connector
URL: https://api.statemind.ai/mcp

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools 3 found in our last check

  • validate_python

    Check Python source without running it: parse, lint (ruff), type-check (mypy), AST security policy, credential scan. Safe on code you do not trust. Use it on every Python file you generated or edited, before writing it to disk. Alternatives: repair_python to get the corrected so…

  • repair_python

    Everything validation does, plus deterministic fixes: the corrected source comes back in fixed_code, and the original is kept whenever the fix cannot be proven safe. The code is still never run. Use it when validation failed and you want the fix rather than the diagnosis. Altern…

  • execute_python

    Everything repair does, and then RUNS the code in a throwaway container — no network, read-only filesystem, killed at options.timeout_s — reporting exit code, stdout and stderr. Any '>>>' examples in the code are run too, and one that does not print what it says is an error the…

Headers

NameDescription
Authorization
Required, secret
Bearer <key>. Get one for free, no account: curl -X POST https://api.statemind.ai/v1/keys

Details

Endpointhttps://api.statemind.ai/mcp (Streamable HTTP)
First published16 Aug 2026
Last updated16 Aug 2026
Registry nameai.statemind/python-code-validator

More developer tools servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.