django-mcp-server

MCP.Pizza Chef: gts360

If your team runs a site built with Django, this opens it up to an AI assistant so it can look up records and run actions you allow. Someone can ask about customers, orders, or whatever the site stores, in plain words, instead of waiting on a developer to run a query. It slots into an existing site without rebuilding anything, and works with Claude Desktop among others. A developer sets it up once and decides what is exposed.

Coding
Data

Use This MCP server To

Look up a customer record without asking a developer Ask how many orders came in this week Find records matching something I describe Run a routine admin action by asking for it Get a plain summary of what is in the database

README

Django MCP Server

PyPI version License Published on Django Packages Python versions Django versions

Django MCP Server is an implementation of the Model Context Protocol (MCP) extension for Django. This module allows MCP Clients and AI agents to interact with any Django application seamlessly.

🚀 Django-Style declarative style-tool tool to Query Django Models and call custom logic by AI Agents and MCP clients ✅ Working on all apps (WSGI and ASGI) without infrastructure change.
🤖 Any MCP Client, (Google Agent Developement Kit, Claude Desktop ...) can interact with your application.

Licensed under the MIT License.


Features

  • 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.

Quick Start

1️⃣ Install

pip install django-mcp-server

Or directly from GitHub:

pip install git+https://github.com/omarbenhamid/django-mcp-server.git

django-mcp-server FAQ

Can I use this to look things up in our own website's data?
Yes — once a developer connects it, you can ask about records in plain words instead of filing a request.
Which apps does it work with?
It is documented for Claude.ai and Claude Desktop, and works with other assistants that support this kind of connection.
Do we need to rebuild our site to use it?
No, it is added to an existing Django site and works with both common setups, so no infrastructure change is needed.
Is it safe to let an assistant touch our data?
A developer chooses exactly which records and actions are exposed, so nothing is reachable unless it is deliberately opened up.
How hard is it to set up?
It is a developer job — installing a package and declaring what to expose — not something a non-technical user does alone.