Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Django admin models over MCP: CRUD, actions, history, autocomplete — capped by Django permissions.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
host你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"django-admin": {
"command": "uvx",
"args": [
"django-admin-mcp"
],
"env": {
"host": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add django-admin --env host=your-value -- uvx django-admin-mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"django-admin": {
"command": "uvx",
"args": [
"django-admin-mcp"
],
"env": {
"host": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"django-admin": {
"type": "stdio",
"command": "uvx",
"args": [
"django-admin-mcp"
],
"env": {
"host": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 7tg 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:host
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.11.1)于17天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Spec Driven Development, Remote Desktop Commander, Intervals MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Remote MCP server for intervals.icu run data and analysis
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Add a mixin to your ModelAdmin and MCP clients get CRUD, admin actions and relationship traversal, inside Django's existing permissions. Only Django and Pydantic as dependencies.
One mixin, the request's path through the admin, a token, a conversation with the agent, then getting started. 50 seconds · 1080p · 60 fps · original soundtrack. Watch the film.
A database connection hands the agent raw tables. The Django admin is where your project already encodes who may touch what, how records are validated, and what the sanctioned bulk operations are. This package puts the agent behind that layer instead of around it:
ModelAdmin.has_*_permission(). A token can only do what its linked user can do, and starts with no access until you grant it.full_clean() and your save_model() / save_related() hooks, so the agent cannot save a record the admin form would reject.LogEntry under the token's user. You can see what the agent changed, and the agent can read the history too.mcp_fields / mcp_exclude_fields keep password hashes and secrets out of the agent's view; get_queryset() still limits which rows it can see.A generic Django MCP server or a hand-rolled FastMCP wrapper asks you to define tools, schemas and permission checks yourself, one function at a time. This package reads the ModelAdmin classes you already maintain and generates the tools from them, so field choices, querysets, validation, actions and permissions stay in one place and the agent inherits every change you make to the admin. It also ships as a plain Django app with no MCP SDK or extra HTTP stack.
pip install django-admin-mcp
# settings.py
INSTALLED_APPS = [ 'django_admin_mcp',
]
urlpatterns = [ path('mcp/', include('django_admin_mcp.urls')),
]
python manage.py migrate django_admin_mcp
1. Expose a model. Set mcp_expose = True to generate tools for it. Models with the mixin but without the flag are discoverable through find_models only.
from django.contrib import admin
from django_admin_mcp import MCPAdminMixin from .models import Article, Author
@admin.register(Article) class ArticleAdmin(MCPAdminMixin, admin.ModelAdmin): mcp_expose = True # list_article, get_article, create_article, ... mcp_exclude_fields = ['internal_notes'] list_display = ['title', 'author', 'published']
@admin.register(Author) class AuthorAdmin(MCPAdminMixin, admin.ModelAdmin): pass # discoverable, no direct tools
2. Create a token in the admin at /admin/django_admin_mcp/mcptoken/. Grant it exactly the permissions and groups the agent needs. The linked user caps what the token can do and is the identity its changes are logged under.
3. Point your MCP client at it, for example in a .mcp.json for Claude Code:
{
"mcpServers": { "django-admin": { "type": "http", "url": "http://localhost:8000/mcp/", "headers": { "Authorization": "Bearer YOUR_TOKEN" } } } }
4. Ask the agent.
User: Show me the latest 10 articles
Agent: [calls list_article with limit=10]
User: Mark articles 1, 2 and 3 as published Agent: [calls action_article with action="mark_as_published", ids=[1, 2, 3]]
User: What changed on article 42? Agent: [calls history_article with id=42]
For each exposed model (here Article) the server generates:
| Tool | Does |
|---|---|
list_article, get_article | Read with pagination and filtering (needs view) |
create_article, update_article, delete_article | Write single records (needs add / change / delete) |
bulk_article | Create, update or delete many records at once |
actions_article, action_article | List and run registered admin actions, including file-returning exports |
describe_article | Field definitions, types and constraints |
related_article | Follow foreign keys and reverse relations |
history_article | Django admin change history |
autocomplete_article | Search suggestions for foreign-key fields |
Plus find_models to discover everything exposed, MCP prompts for common workflows, and read-only resources at models:// and data:// URIs. The endpoint speaks JSON-RPC 2.0 over HTTP with GET /mcp/health/ for health checks. Full reference in the docs.
mcp_ . ; only a salted hash of the secret is stored.MCP_ACTION_MAX_FILE_BYTES (default 5 MiB).See Permissions and Token Management for details.
Python 3.10 to 3.14, Django 3.2 to 6.0, Pydantic 2. Tested against every Django release in that range.
If this saved you time, a star on GitHub helps others find it. Issues and PRs are welcome; see the contributing guide.
MIT