Skip to main content
MCP server CX Codex

Django Admin MCP — Claude Code MCP server: features and install

Exposes Django ModelAdmin classes to MCP agents. Enforces your existing permissions, model validation, and audit logs during automated edits.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add django-admin-mcp -e host=<host> -- uvx django-admin-mcp
Open on GitHub

What Django Admin MCP does

Instead of exposing raw database tables, this server routes agent operations through Django admin classes. Adding MCPAdminMixin to a ModelAdmin alongside the exposure flag generates the corresponding tools. The exposed model then supports record inspection and modification through standard JSON-RPC calls.

Every request respects standard admin permission checks. Records must pass full_clean and model save routines, preventing invalid states. Every record change is saved directly into the admin audit log under the user tied to the token.

The package requires only Django and Pydantic. Tokens are created directly inside the Django admin interface. A token without explicitly granted user permissions cannot read or mutate any records.

What it helps with

  • prevent direct agent access to raw database tables
  • run model validation before saving records from agents
  • execute registered Django admin actions via MCP
  • record automated agent changes inside the admin audit log

Example prompts for the agent

  • Show the latest articles from the database
  • Run the publication action on the selected articles
  • Check the change history for this record in the admin

How to install Django Admin MCP

Platform CLI

claude mcp add django-admin-mcp -e host=<host> -- uvx django-admin-mcp

Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from django-admin-mcp <command>

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Django Admin MCP

How do you install Django Admin MCP in Claude Code?

Run claude mcp add django-admin-mcp -e host=<host> -- uvx django-admin-mcp. Replace <host> with your running Django instance address.

What does Django Admin MCP do?

It converts your ModelAdmin classes into MCP tools so AI assistants can query models, edit records, and trigger admin actions under Django permission rules.

What dependencies does this MCP server need?

The package relies only on Django and Pydantic. It does not require separate MCP client SDKs or extra HTTP servers.

Similar MCP servers

All MCP servers for Backend and APIs →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor