$ timeahead.in
/ servers/pypi/django-mcp-server
pypi

django-mcp-server

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

357 stars26k/wkupdated 118d agogithub ↗
90good
▣ Overview
PyPI versionPublished on Django PackagesDjango versionsLicensePython versions

What it does

Django MCP Server exposes your Django application to AI agents and MCP clients through the Model Context Protocol. Define Django model queries and custom business logic as toolsets in Python classes, and the server publishes them over an HTTP endpoint. Any MCP-compatible client—including Claude—can then interact with your models and functions safely, querying data with permission control and invoking Django logic from external AI workflows.

Who it's for

Backend engineers building Django applications who need AI agents to query their data and invoke business logic. Teams using Claude or other MCP tools that require structured, authenticated access to Django models. Development teams automating workflows by connecting Django to external AI systems.

Common use cases

  • Query Django ORM models from Claude by wrapping them in ModelQueryToolset
  • Expose custom business logic as MCP tools using MCPToolset for AI agents to invoke
  • Safely filter model queries at the request level so agents only access permissioned data
  • Integrate with Claude Desktop to give local AI coding assistants access to a dev Django instance
  • Automate multi-step workflows by chaining Claude tool calls to Django functions and model queries

Setup pitfalls

  • OAuth2 setup required for Claude integration; Django OAuth Toolkit lacks Dynamic Client Registration support—use the third-party DCR add-on from the maintainer
  • MCP endpoint registration omitted from urls.py is common; add path("", include('mcp_server.urls')) to activate the /mcp route
  • Last commit was 95 days ago with CI not passing—verify stability and compatibility with your Django/Python version before production use
  • By default, all toolsets are public; add DJANGO_MCP_AUTHENTICATION_CLASSES for non-public data
▣ Score BreakdownMCPScore = Σ(raw × weight)
DimensionRawWeighted
Security
35%
100
35.0
Freshness
25%
100
25.0
Adoption
20%
79
15.7
Quality
10%
90
9.0
Trust
10%
50
5.0
Total
89.7
⚿ Capabilities & Risk Explainer
networksecrets
◆ Risk level: medium
network + secrets — requires access to credentials or environment secrets.
⚙ Install config
Claude Desktop · Cursor · Windsurf · VS Code (Copilot) · Claude Code
add to your MCP client config:
{
  "mcpServers": {
    "django": {
      "command": "uvx",
      "args": [
        "django-mcp-server"
      ]
    }
  }
}
📈 Score historylast 41 snapshots
5/10/20267/1/2026 · 41 snapshots
⚙ Maintenance health
23/ 100 · is this project alive?
contributors (1y)5
top contributor share63%
releases (1y)0
ci✗ none
⛁ Raw data
weekly downloads26k
github stars357
forks52
open issues16
license✓ present
readme length17100 chars
last publish3d ago
last commit118d ago
last updated20h ago
install verified✓ pass · 51d ago
owner of this server? claim your listing to get a verified badgeclaim →
🔔 Score drop alerts
get notified by email when this server's score drops 5+ points