Django MCP Server is a Django extension that enables AI Agents to interact with Django Apps through the Model Context Protocol (MCP). It works on both WSGI and ASGI, providing a simple way to expose Django models and views as tools for AI agents. Current version 0.5.7, release cadence is irregular as the library is still in early development.
pip install django-mcp-serverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create an MCP endpoint at /mcp/ exposing Django ORM tools.
Change imports to 'from django_mcp_server import MCPServer'
Remove name argument; if you need a custom name, use the @mcp_tool decorator instead
Ensure the tool function signature is 'def my_tool(request, ...)'
Use a tool like curl with -X POST -H 'Content-Type: application/json'