About
Intégration MCP pour Django via FastMCP
README
Intégration transparente de MCP (Model Context Protocol) dans Django via FastMCP.
Installation
pip install django-mcp-integration
Configuration Django
- Modifier le fichier settings.py
# settings.py
INSTALLED_APPS = [
# ...
'django_mcp_integration',
]
# Optionnel
MCP_SERVER_NAME = "Mon Serveur MCP"
MCP_HOST = "localhost"
MCP_PORT = 8000
MCP_HTTP_PATH = "/mcp/"
MCP_ENABLED = True
MCP_SERVER_INSTRUCTIONS = None
MCP_SERVER_VERSION = "1.0.0"
- Modifier le fichier asgi.py
# asgi.py
import os
# from django.core.asgi import get_asgi_application
from django_mcp_integration.handlers.asgi import get_mcp_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'my_project.settings')
application = get_mcp_asgi_application()
Utiliser dans un outil
# blog/tools.py or blog/mcp_tools.py
from django_mcp_integration import mcp_tool
@mcp_tool(
name="add",
description="make a + b",
)
async def add(a: int, b: int) -> int:
return a + b
@mcp_tool(
name="create_post",
description="create post by IA"
)
class CreatePostTool:
# optional
def check_permission(self, obj):
pass
# required method
async def execute(self, title: str, content: str):
pass
lancerment du server
uvicorn django_mcp_test.asgi:application
Installing Django Mcp Integration
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/mosco23/django-mcp-integrationFAQ
Is Django Mcp Integration MCP free?
Yes, Django Mcp Integration MCP is free — one-click install via Unyly at no cost.
Does Django Mcp Integration need an API key?
No, Django Mcp Integration runs without API keys or environment variables.
Is Django Mcp Integration hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Django Mcp Integration in Claude Desktop, Claude Code or Cursor?
Open Django Mcp Integration on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare Django Mcp Integration with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
