Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Django Mcp Integration

FreeNot checked

Intégration MCP pour Django via FastMCP

GitHubEmbed

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

from github.com/mosco23/django-mcp-integration

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-integration

FAQ

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

Compare 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