Discover and explore top open-source AI tools and projects—updated daily.
gts360Django extension for AI agent interaction via Model Context Protocol
Top 99.8% on SourcePulse
Django MCP Server provides a Django extension to seamlessly expose application models and logic as tools for AI agents and MCP clients. It targets Django developers seeking to integrate AI capabilities, offering a simple way to make Django data and functions accessible via the Model Context Protocol (MCP) over both WSGI and ASGI. This enables robust interaction with AI platforms like Claude AI and Google ADK.
How It Works
The project implements the Model Context Protocol (MCP) for Django, allowing developers to define tools by subclassing ModelQueryToolset for model access or MCPToolset for custom methods. Django Rest Framework APIs can be exposed as MCP tools with single annotations. The server runs within a Django application, acting as an MCP endpoint accessible via HTTP, supporting both WSGI and ASGI without requiring infrastructure changes.
Quick Start & Requirements
pip install django-mcp-server'mcp_server' to INSTALLED_APPS and include 'mcp_server.urls' in your project's urls.py.ModelQueryToolset or MCPToolset in your Django app's mcp.py file.django-oauth-toolkit is needed for OAuth2 integration with services like Claude AI.python manage.py mcp_inspect command.Highlighted Details
Maintenance & Community
Maintained by Smart GTS software engineering. The project accepts issues on GitHub for bugs and feature requests. The roadmap indicates future development for STDIO transport, stateful streamable HTTP, and SSE endpoint integration.
Licensing & Compatibility
django-oauth-toolkit for advanced AI integrations.Limitations & Caveats
Production deployments require explicit authorization configuration. Claude AI integration necessitates OAuth2 setup, including potential third-party add-ons for Dynamic Client Registration. Claude Desktop's local MCP server support relies on STDIO transport, requiring specific configuration. The official Google ADK may require a fork for StreamableHTTP transport compatibility.
3 months ago
Inactive
google