原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Frisian MCP (Django)

作者:Frisian-MCP版本 1.0.12i★ –i在云端运行
注册名称com.frisian-mcp/django

安装

概览

作者提供的说明(英文原文)

Your DRF API as MCP tools — 1,800 endpoints become 16 dispatchers, permissioned by Django.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

你需要

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

适用于网页版、桌面版和手机版 Claude:

  1. 打开 Settings → Connectors
  2. 点击 Add custom connector
  3. 粘贴下面的地址,然后点击 Add
  4. 如果要求登录,请登录作者的服务
SettingsConnectors1+ Add2https://…3
https://mcp.frisian-mcp.com/mcp/

在终端中运行这条命令

claude mcp add --transport http django https://mcp.frisian-mcp.com/mcp/

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "django": {
      "url": "https://mcp.frisian-mcp.com/mcp/"
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "django": {
      "type": "http",
      "url": "https://mcp.frisian-mcp.com/mcp/"
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

ChatGPT 只能连接互联网上的服务器:

  1. 打开网页版 ChatGPT → Settings → Connectors (Apps)
  2. 点击 Create 或 Add(部分套餐需要先在 Advanced 中开启 Developer mode)
  3. 粘贴下面的地址,起个名字,然后保存
  4. 如果要求登录,请登录作者的服务
SettingsConnectors1+ Create2https://…3
https://mcp.frisian-mcp.com/mcp/

菜单名称可能因套餐和版本不同而略有差异。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

我们还没有读取这个服务器的工具列表;我们会轮流检查各个端点。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过域名 frisian-mcp.com 验证(注册中心会核实域名所有权)

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    端点有响应

    尚未检查;我们会轮流检查各个端点

  • … 尚未检查

    使用 OAuth 登录

    尚未检查;我们会轮流检查各个端点

  • … 尚未检查

    工具描述中没有隐藏指令

    尚未检查;我们会在检查端点时读取工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 18334 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 18334 个服务器的 17% 更新
  • 基础检查结果等于或优于此分类中其他 18334 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Frisian MCP (Django) 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在作者的云端运行。通过互联网连接,无需安装,但你发送的内容会经过作者的服务器。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.0.12)于4个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, ProAgentStore

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

ProAgentStore

作者:ProAgentStore

MCP-first control plane for ProAgentStore agents and private instances.

在云端运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

frisian-mcp

The Django MCP gateway that discovers your API automatically.

frisian-mcp turns your existing Django REST Framework ViewSets into Model Context Protocol tools with zero boilerplate. Add the package, include one URL, and every ViewSet action becomes a callable MCP tool — name, description, and input schema derived from your serializers automatically.

Designed for token-efficient agent workflows. A 50-action Django app loads in 500–2,000 tokens of tools/list schema instead of the 15,000–25,000 conventional flat MCP would emit; a 60-device bulk-write response is 24 tokens instead of ~10,800 of full echo. Same surface, two orders of magnitude less context burned before the agent has done any reasoning. Full numbers in Token efficiency.

Version: 1.1.1 | License: Apache 2.0 | Python: 3.11+ | Django: 5.x

pip install frisian-mcp

Project site: https://frisian-mcp.com/

A live MCP server is hosted at https://frisian-mcp.com/ for hands-on evaluation — point any MCP-compatible client at it to see the dispatcher pattern and lean envelope behavior against a real surface. The same site serves the project documentation through an MCP-consumable dispatcher, so coding agents (Claude Code, Codex, Gemini CLI, etc.) can connect to it directly and consume installation, configuration, and decorator reference material as part of their working context while integrating frisian-mcp into your own project.


At a glance

FeatureDetails
Auto-discoveryWalks URL patterns at startup; registers every ViewSet action as an MCP tool
Zero boilerplateName, description, and input schema derived from DRF serializers automatically
`@mcp_dispatcher`One tool → many actions; built-in help mode; per-action validation
`@mcp_tool`Explicit single-function tool registration for custom logic
`@mcp_resource`Expose server-side content via resources/list / resources/read
Filter introspectionSearchFilter, OrderingFilter, DjangoFilterBackend → schema properties on list
Allowlist / denylistFRISIAN_MCP_TOOL_ALLOWLIST / FRISIAN_MCP_TOOL_DENYLIST for surgical surface control
Dispatch groupsFRISIAN_MCP_DISPATCH_GROUPS — bundle N tools into 1 dispatcher; action="help" for discovery
Deferred discoveryURL scan fires on first request — captures late-loading plugin ViewSets
OAuth 2.0contrib.oauth — authorization code (PKCE) + client credentials; HMAC-hashed tokens
Static tokenscontrib.tokens — HMAC-hashed Bearer tokens for internal agents
Per-agent scopingcontrib.agents — per-credential tool allowlists; fail-closed on inactive connections
Permission tiersFRISIAN_MCP_TOKEN_TIER_MAP / FRISIAN_MCP_MAX_TIER — map roles to read/write gates
Host-app scopingSyncInvocation calls viewset.initial() — host RBAC, queryset filtering, and throttles enforced
Tool middlewareFRISIAN_MCP_TOOL_MIDDLEWARE — audit logging, rate limiting, heartbeats
Rate limitingRateLimitMiddleware — built-in sliding-window, no Redis required
Pluggable backendsCustom discovery and invocation backends via dotted-path settings
SSE supportAccept: text/event-stream wraps any response in a single SSE event
MCP `2025-11-25`Streamable HTTP; ping, initialize, tools/list, tools/call, resources/list

Token efficiency

The dispatcher pattern and the lean write envelope exist for one reason: agent context windows are finite, and the conventional MCP shape (one tool per ViewSet action; full serialized echo on every write) burns through that budget before the agent has done anything useful.

Measured numbers from real integrations:

ScenarioDefault MCP shapefrisian-mcpReduction
tools/list for a 50-action Django app~15,000–25,000 tokens500–2,000 tokens with FRISIAN_MCP_DISPATCH_GROUPS~95%
tools/list for a large infrastructure Django app1,737 flat tools15 dispatcher toolstool surface reduced ~99%
60-device bulk-create response~10,798 tokens (full echo)24 tokens (lean envelope)99.8%
200-device bulk-create response~36,000 tokens24 tokens (constant)99.9%

The bulk-write savings are constant regardless of batch size — the lean envelope is fixed-shape and the full response is reachable via the continuation token without re-running the write. The dispatcher reduction is opt-in through FRISIAN_MCP_DISPATCH_GROUPS (autodiscovery alone gives the conventional flat shape).

See The Token Problem, Dispatcher Pattern, and Write-Path Response Filtering for the design rationale and full measurements.


Requirements

  • Python 3.11+
  • Django 5.x
  • Django REST Framework 3.14+

Quickstart

1. Install and add to `INSTALLED_APPS`:

# settings.py

INSTALLED_APPS = [ ... "frisian_mcp", ]

2. Include the gateway URL:

# urls.py

from django.urls import include, path

urlpatterns = [ ... path("mcp/", include("frisian_mcp.urls")), ]

That's it. With auto-discovery enabled (the default), every DRF ViewSet in your URL tree is now an MCP tool.

# myapp/views.py — nothing changes here

class UserViewSet(viewsets.ModelViewSet): queryset = User.objects.all() serializer_class = UserSerializer permission_classes = [IsAuthenticated]

After startup, the gateway exposes users.list, users.retrieve, users.create, users.update, users.partial_update, and users.destroy — derived entirely from the ViewSet.

3. Generate a client config:

python manage.py mcp_config --token mytoken123
{

"mcpServers": { "frisian-mcp": { "url": "http://localhost:8000/mcp/", "transport": "http", "headers": { "Authorization": "Bearer mytoken123" } } } }

Use --client to emit the format expected by a specific MCP client. Use --url and --name to override the server URL and key.

4. Verify the install:

python manage.py mcp_doctor                # standard audit

python manage.py mcp_doctor --security # extended OAuth security audit

Walks the configuration end-to-end and exits non-zero on errors. Run after every install, every config change, and as the first diagnostic step on any unexpected behaviour. See the mcp_doctor guide for the full check list.


Architecture overview

MCP Client

│ JSON-RPC 2.0 over HTTP POST ▼ ┌──────────────────────────────────────────────────┐ │ McpView (DRF APIView) │ │ ├─ Authentication (FRISIAN_MCP_AUTHENTICATION_CLASSES) │ │ ├─ Permissions (FRISIAN_MCP_PERMISSION_CLASSES) │ │ └─ Method dispatch │ │ ├─ initialize / initialized / ping / help │ │ ├─ tools/list ──────────────── ToolRegistry │ │ ├─ tools/call ── ToolMiddleware ── Registry │ │ ├─ resources/list ───────── ResourceRegistry │ │ └─ resources/read ───────── ResourceRegistry │ └──────────────────────────────────────────────────┘ │ ┌──────────────────┐ ┌─────────────────────────┐ │ ToolRegistry │ │ Auto-discovery │ │ (module-level │◄──│ (DRFSyncDiscovery) │ │ singleton) │ │ Walks URL patterns at │ │ │ │ AppConfig.ready() │ └──────────────────┘ └─────────────────────────┘ │ ┌──────────────────────────────────────────────────┐ │ InvocationBackend (SyncInvocation by default) │ │ Builds synthetic DRF Request → calls ViewSet │ │ action → returns ToolResult │ └──────────────────────────────────────────────────┘

  • Separation of discovery and invocation. Two pluggable backends — override either independently.
  • Registry is the source of truth. @mcp_tool, @mcp_dispatcher, and auto-discovery all write to the same tool_registry singleton.
  • Tool errors are `isError: true`, not JSON-RPC errors. Permission denials and handler exceptions return isError: true inside a normal HTTP 200 response — the session stays alive.
  • Two enforcement points. Gateway-level permissions gate the entire /mcp/ surface. Tool-level tiers gate individual tools/call invocations.

Dispatcher pattern

For teams building purpose-built agent tools, frisian-mcp ships the `@mcp_dispatcher` pattern: one MCP tool name routes to many actions internally.

from frisian_mcp import mcp_dispatcher, mcp_action

@mcp_dispatcher(name="tasks", description="Manage project tasks.") class TasksDispatcher:

@mcp_action(name="create", description="Create a task.") def create(self, request, params): task = Task.objects.create(title=params["title"]) return {"id": task.pk}

@mcp_action(name="list", description="List tasks by status.") def list(self, request, params): return {"tasks": list(Task.objects.values("id", "title", "status"))}

One tool in tools/list instead of many. Call with action="help" for a structured listing of available actions. Per-action JSON Schema validation runs before the method.

This is the pattern for agent-facing APIs where tool count matters and progressive disclosure beats a flat list.

For high-volume APIs, FRISIAN_MCP_DISPATCH_GROUPS can automatically bundle existing auto-discovered tools into dispatchers with no extra code.


Authentication and security

frisian-mcp delegates authentication to DRF — any DRF authentication class works out of the box via FRISIAN_MCP_AUTHENTICATION_CLASSES. Three ready-to-use contrib modules cover the most common cases:

ModuleWhat it provides
frisian_mcp.contrib.tokensHMAC-hashed static Bearer tokens for internal agents and service accounts
frisian_mcp.contrib.oauthFull OAuth 2.0 — authorization code (PKCE) + client credentials; redirect URI allowlist
frisian_mcp.contrib.agentsPer-credential tool allowlists; connections fail-closed when the credential is deactivated

Gateway-level access is controlled by FRISIAN_MCP_PERMISSION_CLASSES. Tool-level access is controlled by permission tiers (read / read_write / admin) mapped via FRISIAN_MCP_TOKEN_TIER_MAP. Use FRISIAN_MCP_MAX_TIER to cap all callers on an endpoint regardless of their credential tier.

Hardened-by-default posture (1.0.x)

The defaults are oriented toward production safety rather than walk-up convenience:

  • Token and client-secret storage uses HMAC-SHA256 digests (FRISIAN_MCP_HMAC_KEY). A leaked database row cannot be replayed directly — the raw secret is only ever shown once at creation time.
  • OAuth dynamic client registration is closed by default (FRISIAN_MCP_OAUTH_REGISTRATION_OPEN=False, FRISIAN_MCP_OAUTH_PKCE_AUTO_REGISTER=False, FRISIAN_MCP_OAUTH_AUTO_APPROVE=False). The operator pre-registers every OAuth client via the Django admin; anonymous walk-up registration is not possible without an explicit opt-in.
  • The PKCE default permission tier is `read`. Mis-configurations cannot accidentally hand out write or admin scopes on first connect.
  • Permission-aware discovery (`FRISIAN_MCP_PERMISSION_AWARE_DIS

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx