$ 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

345 stars31k/wkupdated 93d agogithub ↗
90good
▣ Overview
PyPI versionPublished on Django PackagesDjango versionsLicensePython versions

What it does

Django MCP Server is a Django extension that exposes your application's models and business logic as tools via the Model Context Protocol, enabling AI agents and MCP clients like Claude AI to query and interact with your app. You define tool access by subclassing ModelQueryToolset (for Django models) or MCPToolset (for custom methods), and the server automatically exposes them at an HTTP endpoint. It works with both WSGI and ASGI deployments without infrastructure changes.

Who it's for

Backend engineers building Django applications who want Claude AI or other MCP clients to access application data and logic. Particularly useful for teams with REST APIs or complex business logic that benefits from AI reasoning.

Common use cases

  • Expose Django ORM models to Claude AI for direct querying and filtering
  • Convert existing Django REST Framework endpoints to MCP tools
  • Enable Claude AI Code to query a local Django development database
  • Integrate Google Agent Development Kit with a Django backend
  • Build custom AI tools from Django business logic without writing REST APIs

Setup pitfalls

  • Requires adding mcp_server to INSTALLED_APPS and including mcp_server.urls in Django's URL config — the endpoint is not automatically available without both steps
  • OAuth2 authentication is required for Claude AI integration; Django OAuth Toolkit lacks native Dynamic Client Registration support, though community add-ons exist
  • OAuth2 URLs must remain at /register, /token, and /authorize — moving them breaks Claude AI's server discovery
  • No continuous integration is configured in the repository, so validation depends on community contributions
▣ Score BreakdownMCPScore = Σ(raw × weight)
DimensionRawWeighted
Security
35%
100
35.0
Freshness
25%
100
25.0
Adoption
20%
79
15.9
Quality
10%
90
9.0
Trust
10%
50
5.0
Total
89.9
⚿ 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 30 snapshots
5/10/20266/11/2026 · 30 snapshots
⚙ Maintenance health
29/ 100 · is this project alive?
contributors (1y)7
top contributor share41%
releases (1y)0
ci✗ none
⛁ Raw data
weekly downloads31k
github stars345
forks51
open issues15
license✓ present
readme length17100 chars
last publish0d ago
last commit93d ago
last updated1d ago
install verified✓ pass · 27d 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