execute
Execute Python code in a stateless Django shell
How to use it
execute is exposed by the MCP Django MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the execute tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install MCP Django
pip install mcp-djangoOther tools in MCP Django (13)
Clear the session history for a fresh start
Execute Django management commands with arguments and options
Export session history as a Python script
Get a specific comparison grid with all its packages
Get detailed information about a specific Django package
Get comprehensive project information including Python environment and Django configuration
Get a Django setting value by key
List all installed Django applications with their models
List all available Django management commands with their source apps
Get detailed information about Django models with optional filtering by app or scope
Introspect Django URL routes with filtering support for HTTP method, route name, or URL pattern
Search djangopackages.org for third-party packages