Django MCP
MCP server by ajaymahato431 Verified · npm:django-mcp
django-mcp is a Model Context Protocol server that lets AI coding assistants check Django settings, methods and other names against Django's published documentation. It returns only the relevant section.
Install Django MCP
Built from the published package, never by AI.
claude mcp add django-mcp -- npx -y django-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"django-mcp": {
"args": [
"-y",
"django-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"django-mcp": {
"args": [
"-y",
"django-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"django-mcp": {
"args": [
"-y",
"django-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add django-mcp -- npx -y django-mcp{
"mcpServers": {
"django-mcp": {
"args": [
"-y",
"django-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add django-mcp npx -y django-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the django-mcp block.
About
django-mcp is a Model Context Protocol server that helps an AI assistant check Django details against the official documentation. It reads Sphinx's object inventory, which covers around 8,100 documented settings, template tags, field lookups, classes and methods. When asked about a name such as INSTALLED_APPS, it resolves the name to its documentation page and returns only that section, converted to markdown.
It runs locally over stdio, needs no API key, and writes nothing to disk. Four read-only tools cover searching the docs, reading pages or single symbols, listing the docs index, and returning curated best practices. The DJANGO_DOCS_VERSION setting lets answers match a specific Django release, such as 4.2 for an older project. It is aimed at developers who use AI coding assistants on Django projects.
Written from the project's README and checked against it.
Tools it gives your assistant
search_django_docsFinds any documented symbol or page, with an optional role filter.read_django_docsReads a page, a section, or a single symbol, returning just that section.list_django_docsBrowses the documentation index by section, with paging support.django_best_practicesReturns curated Django guidance and anti-patterns by topic, without network access.
What you need
- Node.js 20 or later
- An MCP-capable client, such as Claude Code, Claude Desktop, or Cursor
- Outbound HTTPS access to docs.djangoproject.com
Try asking
- Look up CSRF_TRUSTED_ORIGINS in the Django docs and show the correct format.
- What arguments does select_related() take? Check the Django docs.
- Where is the icontains lookup documented in Django?
Good to know
- All four tools are read-only.
- Only documented objects are in the inventory. Private helpers and undocumented internals are not found.
- Symbols must exist in the configured Django docs version.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Django MCP
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
Django MCP: common questions
Does django-mcp need an API key?
No. The source says it needs no API key, account, or database, and it does not require Python or Django to be installed.
Can I match the Django version of my project?
Yes. The DJANGO_DOCS_VERSION environment variable sets the docs version, with values such as 6.0, 5.2, 4.2, stable or dev.
Does django-mcp change files on my computer?
No. The source says it runs locally and writes nothing to disk, and all of its tools are read-only.
How do I install Django MCP?
In Claude Code run claude mcp add django-mcp -- npx -y django-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Django MCP the official server?
Django MCP is published by npm:django-mcp from its verified domain in the official MCP Registry.
Is Django MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Django MCP safe to use?
It scores 56 of 100. Grades: maintenance B, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Django MCP?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does Django MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
