Python Code Validator
ai.statemind/python-code-validator
MCP server OK
Proves AI-generated Python does what you asked: lint, types, security, sandbox run, exact fixes.
Technical sheet
- Author
- statemind.ai (registry namespace)
- Repository
- github.com/jkanselaar/python-code-validator
- Site
- —
- Version
- 1.22.0
- Transport
- Streamable HTTP
- Authentication
- None (observed by our test)
- Server address
- https://api.statemind.ai/mcp Streamable HTTP required header :
Authorization - Tools
- 3
- Categories
- Development and code, Security
- Last updated
- 16 Aug 2026
- Published
- 16 Aug 2026
Badge for your README
Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.
[](https://latlas.dev/en/mcp/ai.statemind/python-code-validator)<a href="https://latlas.dev/en/mcp/ai.statemind/python-code-validator"><img src="https://latlas.dev/badge/fiche/ai.statemind/python-code-validator.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>Our tests
Every week: initialize then tools/list, without credentials, never calling a tool. Method
- Address
- https://api.statemind.ai/mcp
- Last result
- OK 28 Nov 2026, 07:55
- Response time
- 236 ms (initialize + tools/list)
- Protocol version
- 2025-06-18
- Announced name
- python-code-validator 1.29.0
- Tools
- 3
History
| Date | Result | Response | Tools |
|---|---|---|---|
| 28 Nov 2026, 07:55 | OK | 236 ms | 3 |
Exposed tools (3, from tools/list, 28 Nov 2026)
validate_python
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 source instead of the diagnosis; execute_python to prove the code runs. Auth: a key is required. A free key covers this call, 25 per day, then HTTP 429; get one with POST /v1/keys. Credits are bought without an account, 1 per call: GET /v1/pricing says where to send the xDAI. Or pay for this one call with no key at all: call it without one and the result carries x402 payment requirements ($0.01 in USD Coin on eip155:8453); sign them and repeat the call with the payment in _meta['x402/payment']. Arguments: code: the whole file, 1..200000 bytes of UTF-8 measured after encoding (empty is refused with 400, larger with 413); a fragment is fine, but line and column numbers in the answer count from 1 in what you sent. language: must be 'python'; anything else is 400, and the field may be omitted. Of options only transpile_to (e.g. 'javascript', which returns a translated copy in transpiled) acts here; timeout_s, max_iterations, optimize, examples and expected_output need a pass that rewrites or runs the code, so send code alone. Ignored options are not refused, so a call that sets them looks like it worked; and code that does not parse is answered rather than refused: valid=false with the syntax error located,…
| Parameter | Type | Required | Description |
|---|---|---|---|
| code | string | yes | The source to check, as a whole file where possible: diagnostics carry the line and column of the text you send, and a fragment hides the imports and definitions the type check needs. A deployment may accept fewer bytes than the 200000 here. |
| language | no | The language of the code. A service that does not handle it refuses the request rather than guessing; the enum is shared across services, so it lists more than any one of them accepts. | |
| options | no | Tuning knobs. Most of them only take effect in the mode that does the corresponding work; see each field. |
repair_python
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. Alternatives: validate_python when the diagnosis is enough; execute_python when the fix has to be proven to run. Auth: a key is required. This call needs a paid key and answers HTTP 402 without one. Credits are bought without an account, 3 per call: GET /v1/pricing says where to send the xDAI. Or pay for this one call with no key at all: call it without one and the result carries x402 payment requirements ($0.03 in USD Coin on eip155:8453); sign them and repeat the call with the payment in _meta['x402/payment']. Arguments: code: the whole file, 1..200000 bytes of UTF-8 measured after encoding (empty is refused with 400, larger with 413); a fragment is fine, but line and column numbers in the answer count from 1 in what you sent. language: must be 'python'; anything else is 400, and the field may be omitted. options.max_iterations (1..10, default 3) caps the fix/verify rounds: raise it for a file with several independent faults, leave it for a snippet. options.optimize (default false) additionally folds constants and drops dead code, and is only worth setting when you asked for a rewrite anyway. options.transpile_to (e.g. 'javascript') returns a translation of the *repaired* source in transpiled, not of what…
| Parameter | Type | Required | Description |
|---|---|---|---|
| code | string | yes | The source to check, as a whole file where possible: diagnostics carry the line and column of the text you send, and a fragment hides the imports and definitions the type check needs. A deployment may accept fewer bytes than the 200000 here. |
| language | no | The language of the code. A service that does not handle it refuses the request rather than guessing; the enum is shared across services, so it lists more than any one of them accepts. | |
| options | no | Tuning knobs. Most of them only take effect in the mode that does the corresponding work; see each field. |
execute_python
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 other tools cannot see. This is a side effect: do not submit code you do not want executed. Use it when you need proof that the code runs, or that it does what it says. Alternatives: validate_python for the diagnosis and repair_python for the fix, neither of which runs anything. Auth: a key is required. This call needs a paid key and answers HTTP 402 without one. Credits are bought without an account, 10 per call: GET /v1/pricing says where to send the xDAI. Or pay for this one call with no key at all: call it without one and the result carries x402 payment requirements ($0.1 in USD Coin on eip155:8453); sign them and repeat the call with the payment in _meta['x402/payment']. Arguments: code: the whole file, 1..200000 bytes of UTF-8 measured after encoding (empty is refused with 400, larger with 413); a fragment is fine, but line and column numbers in the answer count from 1 in what you sent. language: must be 'python'; anything else is 400, and the field may be omitted. options.max_iterations (1..10, default 3) caps the fix/verify rounds: raise it for a file with several independent faults, leave it for a snippet. options.optimize (default false) additionally folds constants and drops dead code, and…
| Parameter | Type | Required | Description |
|---|---|---|---|
| code | string | yes | The source to check, as a whole file where possible: diagnostics carry the line and column of the text you send, and a fragment hides the imports and definitions the type check needs. A deployment may accept fewer bytes than the 200000 here. |
| language | no | The language of the code. A service that does not handle it refuses the request rather than guessing; the enum is shared across services, so it lists more than any one of them accepts. | |
| options | no | Tuning knobs. Most of them only take effect in the mode that does the corresponding work; see each field. |
Client compatibility
Based on the transports each client documents as supported; this is not a live test inside the client.
| Client | Documented transports | This server | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepted | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepted | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepted | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepted | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepted | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepted | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepted | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepted | doc |
Ready-to-copy configs
Remote address used: https://api.statemind.ai/mcp. Formats taken from each client’s documentation.
claude mcp add --transport http python-code-validator https://api.statemind.ai/mcpCustomize > Connectors > + Add > Add custom connector ; Name : python-code-validator ; URL : https://api.statemind.ai/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : python-code-validator ; Server URL : https://api.statemind.ai/mcp ; Create as a plugin{
"mcpServers": {
"python-code-validator": {
"url": "https://api.statemind.ai/mcp"
}
}
}{
"mcpServers": {
"python-code-validator": {
"type": "http",
"url": "https://api.statemind.ai/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"python-code-validator": {
"url": "https://api.statemind.ai/mcp"
}
}
}{
"mcpServers": {
"python-code-validator": {
"httpUrl": "https://api.statemind.ai/mcp"
}
}
}[mcp_servers.python-code-validator]
url = "https://api.statemind.ai/mcp"Source : Registre officiel MCP · retrieved 29 Nov 2026. L’Atlas adds no data beyond this source and its own tests.