Python Code Validator MCP MCP server
An official MCP server by StateMind that validates, repairs, and executes Python code in a sandboxed environment. It performs static analysis including linting, type checking, and security scans, and can automatically fix code to pass provided examples, ensuring AI-generated code correctness.
Endpoint and access
No sign-in: your client connects and lists tools immediately, with no account or key.
No sign-inEndpoint checked 2026-10-05
MCP endpoint (Streamable HTTP)
https://api.statemind.ai/mcpWhat you can do with it
- Validate Python code syntax and linting
- Run code in a sandbox against examples
- Automatically repair code to fix defects
- Scan for security vulnerabilities and credentials
validate_pythonrepair_pythonexecute_python
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
Claude Code configuration
claude mcp add --transport http python-code-validator-mcp https://api.statemind.ai/mcpCodex
Codex configuration
codex mcp add python-code-validator-mcp --url https://api.statemind.ai/mcpCursor
Cursor configuration
{
"mcpServers": {
"python-code-validator-mcp": {
"url": "https://api.statemind.ai/mcp"
}
}
}Cline
Cline configuration
{
"mcpServers": {
"python-code-validator-mcp": {
"type": "streamableHttp",
"url": "https://api.statemind.ai/mcp",
"disabled": false
}
}
}VS Code
VS Code configuration
{
"servers": {
"python-code-validator-mcp": {
"type": "http",
"url": "https://api.statemind.ai/mcp"
}
}
}Gemini CLI
Gemini CLI configuration
gemini mcp add --transport http python-code-validator-mcp https://api.statemind.ai/mcpClaude Desktop
Claude Desktop configuration
{
"mcpServers": {
"python-code-validator-mcp": {
"url": "https://api.statemind.ai/mcp"
}
}
}Windsurf
Windsurf configuration
{
"mcpServers": {
"python-code-validator-mcp": {
"serverUrl": "https://api.statemind.ai/mcp"
}
}
}Other developer tools servers
Do you run Python Code Validator MCP?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.