Add MCP (Model Context Protocol) to any Django REST Framework project
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"django-drf-mcp","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# django-drf-mcp Add [MCP (Model Context Protocol)](https://modelcontextprotocol.io/) to any Django REST Framework project. Auto-discovers all DRF endpoints and exposes them as MCP tools — zero boilerplate. ## Features - **Zero config** — add `"django_drf_mcp"` to `INSTALLED_APPS`, include the URLs, done - **Auto-discovery** — every DRF ViewSet/APIView becomes an MCP tool automatically - **Endpoint filtering** — include or exclude specific endpoints with `METHOD:PATH` glob patterns - **Multiple transports** — STDIO, SSE, Streamable HTTP, or embedded Django view - **Authentication** — pass auth headers (Token, JWT, Basic, API key) to MCP tool calls via `HEADERS` setting - **DRF-integrated MCP view** — the `/mcp/` endpoint is a DRF `APIView`, inheriting authentication and permissions from `REST_FRAMEWORK` settings - **MCP Docs UI** — interactive Swagger-style docs for your MCP tools at `/mcp/docs` - **DRF Swagger UI** — optional built-in Swagger UI and OpenAPI schema endpoints - **Fully configurable** — control every feature via a single `DJANGO_MCP` settings dict - **Auto-configures drf-spectacular** — no manual setup needed ## Installation ```bash pip install django-drf-mcp ``` ### Dependencies (installed automatically) - Django >= 4.0 - Django REST Framework - [drf-spectacular](https://github.com/tfranzel/drf-spectacular) - [FastMCP](https://github.com/jlowin/fastmcp) >= 2.0.0 - [fastmcp-docs](https://github.com/orco82/fastmcp-docs) - httpx ## Quick Start ### 1. Add to INSTALLED_APPS ```python # settings.py INSTALLED_APPS = [ ... "rest_framework", "django_drf_mcp", ] ``` > `drf-spectacular` is auto-injected — you don't need to add it yourself. ### 2. Include URLs ```python # urls.py from django.urls import path, include urlpatterns = [ ... path("", include("django_drf_mcp.urls")), ] ``` That's it. The MCP endpoint is now live at `/mcp/`. ### 3. Enable MCP Docs UI (requires ASGI) For interactive documentation of your MCP tools, …
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.