django-admin-rest-api

MartinCastroAlvarez/django-admin-rest-api
★ 5 stars Python 🔒 Security Updated 1d ago
Make your Django admin headless in two lines: add it to INSTALLED_APPS, include the URLs. Every ModelAdmin you've already registered becomes a JSON REST endpoint — same permissions, same forms, same audit log. No parallel auth, no parallel validation, no rewrites. A drop-in API surface for React frontends, MCP servers, and any other JSON client.
View on GitHub → Try with Claude — $10 free →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "django-admin-rest-ap": {
      "command": "uvx",
      "args": [
        "django-admin-rest-api"
      ]
    }
  }
}

Or install with pip: pip install django-admin-rest-api

README Excerpt

> A JSON REST API for the Django admin — **same permissions, same `ModelAdmin`, no new features.** `django-admin-rest-api` exposes every `ModelAdmin` you've already registered on `django.contrib.admin.site` (or your own `AdminSite`) through a JSON REST API — **without** introducing a parallel permission system, a parallel form layer, or any features the Django

Tools (10)

DELETEGETPATCHPOSTautocomplete_fieldsdate_hierarchyformfield_overridesget_readonly_fieldslist_display_linksprepopulated_fields

Topics

adminapidjangodjango-adminheadlessjson-apiopen-sourceplug-and-playpythonrest-api