Back to Home
zacharypodbela icon

django-rest-framework-mcp

Verified Safe

by zacharypodbela

Overview

Enables developers to quickly build Model Context Protocol (MCP) servers for existing Django REST Framework APIs, allowing AI agents and LLM clients to leverage these endpoints as tools.

Installation

Run Command
cd demo && python manage.py runserver

Security Notes

The MCP endpoint (`/mcp/`) uses `@csrf_exempt`, bypassing Django's CSRF protection; this is standard for API endpoints primarily consumed by non-browser clients, but should be noted. The overall security relies heavily on the underlying Django REST Framework's authentication, permission, and throttling configurations. The documentation explicitly warns that DRF's built-in throttling is not a robust security measure against sophisticated attacks like brute-forcing or Denial of Service (DoS). The demo `settings.py` includes a `SECRET_KEY` marked as 'insecure' by Django, which is acceptable for development/demo purposes but must be replaced in a production environment.

Similar Servers

Stats

Interest Score44
Security Score8
Cost ClassMedium
Avg Tokens500
Stars23
Forks3
Last Update2025-11-25

Tags

DjangoDRFREST APIMCPAI AgentsLLM ToolsServer Library