Django MCP Server is a Django extensions to easily enable AI Agents to interact with Django Apps through the Model Context Protocol it works equally well on WSGI and ASGI
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add django -- python path/to/your/project/manage.py stdio_server~/.codex/config.toml
[mcp_servers.django]
command = "python"
args = ["path/to/your/project/manage.py", "stdio_server"]
# codex mcp add django -- python path/to/your/project/manage.py stdio_server~/.cursor/mcp.json
{
"mcpServers": {
"django": {
"command": "python",
"args": [
"path/to/your/project/manage.py",
"stdio_server"
]
}
}
}.vscode/mcp.json
{
"servers": {
"django": {
"type": "stdio",
"command": "python",
"args": [
"path/to/your/project/manage.py",
"stdio_server"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"django": {
"command": "python",
"args": [
"path/to/your/project/manage.py",
"stdio_server"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"django": {
"command": "python",
"args": [
"path/to/your/project/manage.py",
"stdio_server"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"django": {
"command": "python",
"args": [
"path/to/your/project/manage.py",
"stdio_server"
]
}
}
}