Proves AI-generated Python does what you asked: lint, types, security, sandbox run, exact fixes.
Connect Remote server
claude mcp add --transport http python-code-validator https://api.statemind.ai/mcp --header "Authorization: Bearer <YOUR_API_KEY>"
{
"mcpServers": {
"python-code-validator": {
"url": "https://api.statemind.ai/mcp",
"headers": {
"Authorization": "Bearer <YOUR_API_KEY>"
}
}
}
}
{
"servers": {
"python-code-validator": {
"type": "http",
"url": "https://api.statemind.ai/mcp",
"headers": {
"Authorization": "Bearer <YOUR_API_KEY>"
}
}
}
}
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_pythonCheck 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_pythonEverything 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_pythonEverything 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
| Name | Description |
|---|---|
AuthorizationRequired, secret | Bearer <key>. Get one for free, no account: curl -X POST https://api.statemind.ai/v1/keys |
Details
| Endpoint | https://api.statemind.ai/mcp (Streamable HTTP) |
| First published | 16 Aug 2026 |
| Last updated | 16 Aug 2026 |
| Registry name | ai.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.
