Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 56
  • 1 stars
  • 20 a week
  • MIT
  • Updated

Install Django MCP

Built from the published package, never by AI.

claude mcp add django-mcp -- npx -y django-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Django MCP in Claude Code

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

A

No 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 →

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.

Django MCP Install

Add to stack

Loading.