Django MCP Server

🚀 Django-Style declarative style tools to allow AI Agents and MCP clients tool to interact with Django.

Local serverstdioPython

What is the Django MCP server?

🚀 Django-Style declarative style tools to allow AI Agents and MCP clients tool to interact with Django. Exposed over MCP by the django mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.

What it actually does

  • Expose Django models and logic as MCP tools
  • Serve an MCP endpoint inside your Django app
  • Easily integrate with AI agents, MCP Clients, or tools like Google ADK

Its toolset

Everything the assistant can do here goes through one of these:

Adding it to your client

The server ships on PyPI as django-mcp-server, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

When to reach for it

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Django's toolset — Authorization — is a fair guide to whether it matches your workflow. It is maintained by omarbenhamid; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the django mcp server does with a few real requests.

Available tools

ToolWhat it does
AuthorizationThe MCP endpoint supports [Django Rest Framework authorization classes](https://www.django-rest-framework.org/api-guide/authentication/) You can set them using DJANGO_MCP_AUTHENTICATION_CLASSES in settings.py ex. :

How to install the Django MCP server

{
    "mcpServers": {
        "test_django_mcp": {
            "command": "/path/to/interpreter/python",
            "args": [
                "/path/to/your/project/manage.py",
                "stdio_server"
            ]
        }
    }

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use Django to Authorization.

Frequently asked questions

It connects Django to MCP-compatible AI assistants such as Claude and Cursor, exposing 1 tool (Authorization) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Django directly.