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

GitHub Stars

153

User Rating

Not Rated

Favorites

0

Views

18

Forks

33

Issues

16

Installation
Difficulty
Intermediate
Estimated Time
10-20 minutes

Installation

Installation

Prerequisites

Python: 3.6 or higher
Django: 3.0 or higher

Installation Steps

1. Install the Package

bash
pip install django-mcp-server
Or install directly from GitHub:
bash
pip install git+https://github.com/omarbenhamid/django-mcp-server.git

2. Configure Django

✅ Add mcp_server to your INSTALLED_APPS:
python
INSTALLED_APPS = [
    # your apps...
    'mcp_server',
]
✅ Add the MCP endpoint to your urls.py:
python
from django.urls import path, include

urlpatterns = [
    # your urls...
    path('', include('mcp_server.urls')),
]
By default, the MCP endpoint will be available at /mcp.

Additional Resources