# Python Code Validator

> Python Code Validator is an MCP server. Proves AI-generated Python does what you asked: lint, types, security, sandbox run, exact fixes. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Repository:** https://github.com/jkanselaar/python-code-validator
- **MCP Registry name:** ai.statemind/python-code-validator
- **Listing updated:** 2026-11-13

## About

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

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http python-code-validator https://api.statemind.ai/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://api.statemind.ai/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "python-code-validator": {
      "url": "https://api.statemind.ai/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "python-code-validator": {
      "type": "http",
      "url": "https://api.statemind.ai/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "python-code-validator": {
      "serverUrl": "https://api.statemind.ai/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "python-code-validator": {
      "type": "http",
      "url": "https://api.statemind.ai/mcp"
    }
  }
}
```

## FAQ

### How do I add Python Code Validator to Claude Code?

Run this command in your terminal: claude mcp add --transport http python-code-validator https://api.statemind.ai/mcp

### What are the best alternatives to Python Code Validator?

The closest alternatives to Python Code Validator are AI Guard, Agent Verify and CodeInspectus.

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [AI Guard](https://ai-powered.com/mcp/ai-guard): AI Guard is an open-source MCP server for developer tools.
- [Agent Verify](https://ai-powered.com/mcp/agent-verify): Agent Verify is a freemium MCP server for security.
- [CodeInspectus](https://ai-powered.com/mcp/codeinspectus): CodeInspectus is an open-source MCP server for security.

---
Source: https://ai-powered.com/mcp/python-code-validator
