Python Code Validator
ai.statemind/python-code-validator
Proves AI-generated Python does what you asked: lint, types, security, sandbox run, exact fixes.
- Repository
- github.com/jkanselaar/python-code-validator
- Server address
https://api.statemind.ai/mcp(streamable-http)- Version
- 1.22.0
- Author
- statemind.ai (namespace verified by the registry)
- Source
- Official MCP registry (updated Aug 16, 2026)
How to install it
The server requires a header: Authorization. Replace YOUR_KEY with your key.
Claude Code
In a terminal:
claude mcp add --transport http python-code-validator https://api.statemind.ai/mcp \
--header "Authorization: Bearer YOUR_KEY"Claude (app and claude.ai)
Open Settings, then Connectors, and add a custom connector with this address. If the server asks you to sign in, Claude will walk you through it.
https://api.statemind.ai/mcpChatGPT
In Settings, Apps & Connectors section, turn on developer mode, then create a connector with this address.
https://api.statemind.ai/mcpCursor ~/.cursor/mcp.json
Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in the project):
{
"mcpServers": {
"python-code-validator": {
"url": "https://api.statemind.ai/mcp",
"headers": {
"Authorization": "Bearer YOUR_KEY"
}
}
}
}VS Code .vscode/mcp.json
Add this to your project’s .vscode/mcp.json:
{
"servers": {
"python-code-validator": {
"type": "http",
"url": "https://api.statemind.ai/mcp",
"headers": {
"Authorization": "Bearer YOUR_KEY"
}
}
}
}These configurations are built from the information published by the author. Check the repository before installing a local server.
Our test
Responds The server speaks MCP and lists its tools.
- Date
- Nov 28, 2026, 07:55 (test run by L’Atlas)
- Response time
- 236 ms (whole test)
- Tools found
- 3
- Announced name
- python-code-validator 1.29.0
- Protocol
- MCP 2025-06-18
- Next test
- Dec 5, 2026
See the tools (3)
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. Alternativesrepair_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 thexecute_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
Previous tests
| Nov 28, 2026 | Key required | ||
| Nov 28, 2026 | Responds | 236 ms | 3 tools |
What the test does: it opens an MCP session (initialize) and asks for the tool list (tools/list), with no key or account. No tool is ever called. Learn more
Reviews
No review yet.
Sign in to leave a review. Your email is all you need.
Comments
No comment yet. A question, a tip? Start the discussion.
Sign in to comment.
Badge for your README
Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.
Markdown (GitHub)
[](https://lagora.dev/en/entry/ai.statemind/python-code-validator)HTML
<a href="https://lagora.dev/en/entry/ai.statemind/python-code-validator"><img src="https://lagora.dev/badge/ai.statemind/python-code-validator.svg?lang=en" alt="ai.statemind/python-code-validator on L’Agora" height="20"></a>For the entry’s author only: sign in to continue.