Drf Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Drf Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Enterprise-grade Model Context Protocol (MCP) integration for Django REST Framework with FastMCP 3.0
Automatically expose your Django REST Framework APIs as tools for AI agents via the Model Context Protocol. Zero configuration, maximum security, enterprise-ready.
DRF MCP transforms your Django REST Framework views into AI-native tools via the Model Context Protocol standard. Built on FastMCP 3.0, it automatically:
# In your Django project
from drf_mcp import DRFMCP
from myapp.views import CustomerViewSet
# Initialize MCP server
mcp = DRFMCP("MyEnterpriseAPI")
# Option 1: Register specific ViewSets
mcp.register_viewset(CustomerViewSet, namespace="crm")
# Option 2: Auto-discover all DRF views
mcp.autodiscover()
# Run server (stdio, HTTP, or SSE transport)
if __name__ == "__main__":
mcp.run()Your DRF serializers automatically become MCP tool parameters. No extra configuration needed.
Scans Django's URLconf to find all DRF APIView and ViewSet classes.
Uses drf-spectacular to convert DRF serializers into JSON schemas for MCP tool arguments.
Wraps DRF view invocations with async support, permission checking, and error handling.
Enforces DRF's authentication and permission classes on every tool call. Agents are authenticated users.
Supports stdio, HTTP, and SSE via FastMCP's built-in transports.
manage.py mcp_inspector CLIuv add drf-mcpOr with pip:
pip install drf-mcpFull documentation is available at drf-mcp.readthedocs.io
# Clone and setup
git clone https://github.com/ziyacivan/drf-mcp.git
cd drf-mcp
uv venv
uv pip install -e ".[dev]"
# Run tests
pytest
# Format code
black src/drf_mcp tests
isort src/drf_mcp tests
# Type checking
mypy src/drf_mcpMIT License - See LICENSE file for details.
Contributions welcome! Please see CONTRIBUTING.md for guidelines.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.