django-admin-mcp
Provides tools for interacting with any stock Django admin: listing admin-registered models, introspecting add-form schemas and field types, resolving FK/M2M autocomplete values, listing and reading records, and creating new records via the admin HTML interface.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
django-admin-mcp
An MCP server that wraps any stock Django admin — no server-side changes required.
It parses the admin HTML to discover schemas and uses session-based HTTP to read and create records. Stop hand-wiring configurations. Claude reproduces your real-world process, model by model.
Why this exists
You want your team to AI-ify your app — letting Claude (or another agent) populate records, bulk-import data, and handle the tedious admin drudgery that eats up your day.
The "right" way to do that is to have your tech team build proper API endpoints and integrations. But that takes engineering time, which means deprioritizing something else. It's a real trade-off, and it's often hard to justify when the goal is just "I want an AI to fill in these records for me."
This is the workaround: every Django app already ships with an admin UI. This MCP server points Claude at that existing interface and drives it like a human would — discovering models, reading field schemas, resolving foreign keys, and submitting forms. Zero server-side changes. Zero new endpoints. Nothing for your tech team to build.
You get the AI-assisted workflow now, without it costing the team a sprint.
Related MCP server: kogiQA MCP Web Browser
Compatibility
Tested with Django 5.2. It should work with any Django version that uses the standard admin HTML structure, but only 5.2 has been verified. Reports and PRs for other versions are welcome.
Quick start (uvx, local)
No PyPI publish needed — point uvx straight at the local directory.
# One-time browser auth (Okta/SSO flow → saves session cookie)
DJANGO_ADMIN_URL=https://example.com/admin \
uvx --from /path/to/django-updater --with playwright django-admin-mcp auth
# Install Playwright's Chromium browser the first time
uvx playwright install chromiumAfter that the MCP server starts in one line:
DJANGO_ADMIN_URL=https://example.com/admin \
uvx --from /path/to/django-updater django-admin-mcpTip: use
.instead of the full path when your shell is already in the project directory.
Claude Desktop / Claude Code configuration
Add to claude_desktop_config.json:
{
"mcpServers": {
"django-admin": {
"command": "uvx",
"args": [
"--from", "/path/to/django-updater",
"django-admin-mcp"
],
"env": {
"DJANGO_ADMIN_URL": "https://example.com/admin"
}
}
}
}Or add to your project's .mcp.json for Claude Code:
{
"mcpServers": {
"django-admin": {
"command": "uvx",
"args": [
"--from", "/path/to/django-updater",
"django-admin-mcp"
],
"env": {
"DJANGO_ADMIN_URL": "https://example.com/admin"
}
}
}
}Authentication
Django admin sessions are obtained via a one-time browser flow (supports Okta and any other SSO provider):
DJANGO_ADMIN_URL=https://example.com/admin \
uvx --from /path/to/django-updater --with playwright django-admin-mcp authA headed Chromium window opens and navigates to your admin URL
Complete the login / SSO flow in the browser
Once redirected to the admin index, the script saves all cookies to
~/.django-admin-mcp/session.json(mode 0600)The MCP server loads those cookies on every startup
Re-run the auth command when the session expires.
Available tools
Tool | Description |
| List all admin-registered models with their app, name, and URLs |
| Introspect the add-form: field types, required flags, choices, autocomplete URLs |
| Resolve FK/M2M names → PKs via the Django admin Select2 endpoint |
| Paginated change-list query |
| Read a single record's current field values |
| POST a new record; returns |
Environment variables
Variable | Required | Description |
| Yes | Full URL to the Django admin root (e.g. |
Variables can be exported in the shell or placed in a .env file in the working directory.
Development
cd /path/to/django-updater
uv sync --extra auth
uv run playwright install chromium
uv run django-admin-mcp auth
uv run django-admin-mcpTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Let AI agents use your real, signed-in Chrome: tabs, clicks, forms, screenshots and video.
Gives AI agents direct access to your Sanity projects and guidance for working with them
Admin for your app from your AI agent: users, stats, segments, feature flags and email.
Let AI agents use any website you're logged in to. Sessions stay encrypted on your machine.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to securely control a user's existing Chrome profile locally, providing typed browser actions, form and editor support, WordPress workflows, terminal automation, and Figma inspection with policy-based authorization and redacted auditing.MIT
- AlicenseNot gradedqualityBmaintenanceEnables LLM agents to drive a selector-free browser through natural language, so they can debug styling and console errors, map and document web apps, and generate or run end-to-end and exploratory tests without screenshots.630 npm86MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to control a user's existing Chrome browser with preserved logins, performing tab management, element interaction, script execution, and screenshots, all locally via a Chrome extension and Python bridge.2MIT
- AlicenseNot gradedqualityAmaintenanceLets AI coding tools drive the real, already-logged-in Chrome browser over local stdio—snapshotting and reading pages, clicking, typing, managing tabs, capturing screenshots, and inspecting network, console, storage, and cookies—without opening a remote-debugging port. It installs as a Chrome extension plus native-messaging bridge, so agents work in the user's authenticated sessions while passing bot detection.1 npmISC