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

CTFd

作者:MrJamescot版本 1.0.4i★ –i在你的电脑上运行
注册名称io.github.MrJamescot/ctfd-mcp-server

安装

概览

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

MCP server for CTFd v3: list challenges, submit flags, and query scoreboards via AI agents.

PopNx MCP 的三大支柱

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

它能帮你做什么

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

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他
  • 你需要填写:CTFD_BASE_URL, CTFD_ADMIN_TOKEN, CTFD_SESSION_COOKIE, CTFD_PASSWORD

安装

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

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: CTFD_BASE_URL, CTFD_ADMIN_TOKEN, CTFD_SESSION_COOKIE, CTFD_USERNAME, CTFD_PASSWORD, CTFD_HTTP_TIMEOUT

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

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

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "ctfd": {
      "command": "uvx",
      "args": [
        "ctfd-mcp-server"
      ],
      "env": {
        "CTFD_BASE_URL": "your-value",
        "CTFD_ADMIN_TOKEN": "your-value",
        "CTFD_SESSION_COOKIE": "your-value",
        "CTFD_USERNAME": "your-value",
        "CTFD_PASSWORD": "your-value",
        "CTFD_HTTP_TIMEOUT": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add ctfd --env CTFD_BASE_URL=your-value --env CTFD_ADMIN_TOKEN=your-value --env CTFD_SESSION_COOKIE=your-value --env CTFD_USERNAME=your-value --env CTFD_PASSWORD=your-value --env CTFD_HTTP_TIMEOUT=your-value -- uvx ctfd-mcp-server

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

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

{
  "mcpServers": {
    "ctfd": {
      "command": "uvx",
      "args": [
        "ctfd-mcp-server"
      ],
      "env": {
        "CTFD_BASE_URL": "your-value",
        "CTFD_ADMIN_TOKEN": "your-value",
        "CTFD_SESSION_COOKIE": "your-value",
        "CTFD_USERNAME": "your-value",
        "CTFD_PASSWORD": "your-value",
        "CTFD_HTTP_TIMEOUT": "your-value"
      }
    }
  }
}

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

在 VS Code 中打开

或者自己复制设置

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

{
  "servers": {
    "ctfd": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "ctfd-mcp-server"
      ],
      "env": {
        "CTFD_BASE_URL": "your-value",
        "CTFD_ADMIN_TOKEN": "your-value",
        "CTFD_SESSION_COOKIE": "your-value",
        "CTFD_USERNAME": "your-value",
        "CTFD_PASSWORD": "your-value",
        "CTFD_HTTP_TIMEOUT": "your-value"
      }
    }
  }
}

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

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

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

需要你填写的值

  • CTFD_BASE_URL 必填 env
    Root URL of the CTFd v3 instance, e.g. https://ctf.example.com (without /api/v1)
  • CTFD_ADMIN_TOKEN 机密 env
    CTFd API access token (preferred authentication method)
  • CTFD_SESSION_COOKIE 机密 env
    Full CTFd session cookie, e.g. session=abc...
  • CTFD_USERNAME env
    Username for CTFd form login
  • CTFD_PASSWORD 机密 env
    Password for CTFd form login
  • CTFD_HTTP_TIMEOUT env
    Per-request HTTP timeout in seconds (default 15)

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

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

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

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 MrJamescot 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

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

  • … 尚未检查

    有许可证

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

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

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

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

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

常见问题

CTFd 安全吗?

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

它需要哪些密钥或代码?

你需要填写:CTFD_BASE_URL, CTFD_ADMIN_TOKEN, CTFD_SESSION_COOKIE, CTFD_PASSWORD

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

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

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

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

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

替代选择

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

如何看卡片:★ 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昨天更新
安装

TF Rooms

作者:tfrooms.com

Live room availability, rates and stay quotes for 12 New Leaf motels in Twin Falls, Idaho.

在云端运行今天更新
安装

作者的 README

打开 README

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

CTFd MCP Server

A Model Context Protocol (MCP) server for interacting with any CTFd v3 instance. It lets AI tools (Claude Desktop, Cursor, custom agents, ...) authenticate, list and inspect challenges, submit flags, and query instance state through a stable, type-safe interface.

The project ships two interfaces built on the same client library:

  • MCP tools (primary) — ctfd_mcp_server.py, used over stdio or sse.
  • REST API (optional) — server/main.py, a FastAPI mirror for scripting, debugging, and Docker deployments.
                 ┌──────────────────────────────────────────────┐

AI agent / MCP │ FastMCP (MCP tools) │ client ────────►│ set_token · login · challenges · submit_flag │ └──────────────────┬───────────────────────────┘ │ shared client ┌──────────────────▼───────────────────────────┐ curl / scripts ─►│ FastAPI REST (/api/v1/...) (optional) │ └──────────────────┬───────────────────────────┘ │ ┌──────────────────▼───────────────────────────┐ │ server.ctfd_client.CTFdClient │ │ └─ gateway.py (HTTP, auth, timeouts) │ └──────────────────┬───────────────────────────┘ │ HTTPS / HTTP ┌─────▼─────┐ │ CTFd │ └───────────┘

Credentials (token / cookie / password) live in memory only and are never echoed in tool output, written to server_state.json, or logged.


Features

  • Multiple authentication modes — API token, session cookie, or username/password form login (with CSRF handling).
  • Rich challenge queries — paginated listing with category, search (name), and solved/unsolved filters, plus per-challenge detail retrieval.
  • Safe flag submission — requires an explicit confirm=True, returns clear success/failure, and surfaces rate-limit errors. Flags are never logged.
  • Instance introspection — public instance info, health check, and an authentication-status tool that reveal no secrets.
  • Consistent structured errors — AuthenticationError, CTFdAPIError, ChallengeNotFoundError, SubmissionError, ValidationError, ConfigurationError.
  • Pagination by default — one page of challenges per call; no accidental full-dump downloads.
  • Hardened HTTP — configurable timeouts, one safe retry for idempotent GETs, no retries for POSTs (no duplicate submissions), strict JSON/content parsing.
  • REST + MCP from one codebase — identical behaviour on both interfaces.
  • No hardcoded instance — BASE_URL is validated and configurable at startup and at runtime.

Installation

Requires Python 3.10+.

The fastest way is to install from [PyPI](https://pypi.org/project/ctfd-mcp-server/):

pip install ctfd-mcp-server

MCP stdio server with env config:

CTFD_BASE_URL=https://ctf.example.com CTFD_ADMIN_TOKEN=ctfd_... ctfd-mcp

optional REST interface:

ctfd-rest

For MCP clients, point your config at the packaged entry point:

{

"mcpServers": { "ctfd-mcp": { "command": "ctfd-mcp", "env": { "CTFD_BASE_URL": "https://demo.ctfd.io", "CTFD_ADMIN_TOKEN": "ctfd_..." } } } }

Or run from source:

git clone https://github.com/MrJamescot/ctfd-mcp-server.git

cd ctfd-mcp-server python3 -m venv .venv && source .venv/bin/activate pip install -r requirements.txt

cp .env.example .env # then edit .env

Configure
VariableDefaultMeaning
CTFD_BASE_URL*(empty)*CTFd instance root, e.g. https://ctf.example.com (without /api/v1)
CTFD_ADMIN_TOKEN*(empty)*API token (preferred auth)
CTFD_SESSION_COOKIE*(empty)*Session cookie, e.g. session=abc...
CTFD_USERNAME*(empty)*Username for form login
CTFD_PASSWORD*(empty)*Password for form login
CTFD_HTTP_TIMEOUT15Per-request HTTP timeout (seconds)
CTFD_HTTP_MAX_REDIRECTS5Max redirects followed per request
CTFD_STATE_FILE~/.local/state/ctfd-mcp/server_state.jsonFile used to cache auth state
CTFD_MCP_TRANSPORTstdioMCP transport: stdio or sse
MCP_HOST / MCP_PORT127.0.0.1 / 8000REST server bind settings (loopback by default)
CTFD_API_TOKEN*(empty)*Optional bearer token protecting the optional REST API (/api/v1/*)
CTFD_ALLOW_PRIVATE_IPSfalseAllow connections to private/loopback/metadata addresses (e.g. local CTFd test instances)
CTFD_DOWNLOAD_DIR./downloadsDirectory where challenge attachments are saved by download_file
CTFD_PERSIST_SECRETSfalse⚠ Strongly discouraged: write secrets to disk

CTFD_BASE_URL may include a path prefix (e.g. https://host/ctfd); the client

appends /api/v1 automatically.


Running the MCP Server

Most MCP clients launch the server themselves via a command/args config. For that, your client config should reference `ctfd_mcp_server.py`:

// e.g. Claude Desktop / mcp.json

{ "mcpServers": { "ctfd-mcp": { "command": "python", "args": ["/path/to/ctfd-mcp-server/ctfd_mcp_server.py"], "env": { "CTFD_BASE_URL": "https://demo.ctfd.io", "CTFD_ADMIN_TOKEN": "ctfd_..." } } } }

Manual launch:

# stdio (default) — used by MCP clients

python ctfd_mcp_server.py

SSE — expose over HTTP for remote/Docker use

CTFD_MCP_TRANSPORT=sse python ctfd_mcp_server.py # http://127.0.0.1:8000/sse

MCP tools
ToolParametersDescription
set_base_urlurlPoint the server at a CTFd instance
set_tokentokenAdopt an API token (memory only)
set_cookiecookieAdopt a session cookie (memory only)
loginusername, passwordForm login; keeps the session cookie
challengescategory, search, solved, page, per_pagePaginated challenge list with filters
challengeidentifier (id or name)Full detail of one challenge
submit_flagflag, challenge_name/challenge_id, confirmSubmit a flag (requires confirm=True)
download_filefile_url, dest_dirDownload a challenge attachment over the CTFd /files/… route
unlock_hinthint_idUnlock and read a hint (paid hints cost points)
scoreboard—Public scoreboard standings
progress—Your score + solved challenges
instance_info—Safe public instance metadata
auth_status—Auth mode + validity (no secrets)
health—Reachability, API and auth checks

With token auth, requests are sent with Content-Type: application/json

(CTFd only honours Authorization: Token ... on JSON requests). With

cookie/credentials auth, state-changing requests echo the session CSRF nonce

as the CSRF-Token header, which is re-fetched from the site after login.

Tools return JSON text. Errors are structured, e.g.:

{ "error": { "type": "ChallengeNotFoundError", "message": "Challenge '99' not found (or not visible)." } }

Running the REST API (optional)

python scripts/run_local.sh           # reads .env, default http://127.0.0.1:8000

or

uvicorn server.main:app --host 0.0.0.0 --port 8000

Endpoints (all under /api/v1):

MethodPathDescription
POST/set_base_urlValidate & set the CTFd base URL
POST/set_tokenSet API token
POST/set_cookieSet session cookie
POST/set_credsStore username/password for later login
POST/loginForm login (session cookie)
GET/challengesPaginated + filtered challenge list
GET/challenges/{id-or-name}Challenge detail
POST/submitSubmit a flag (confirm: true required)
POST/downloadDownload a challenge attachment (body: file_url)
POST/unlock_hintUnlock and read a hint (body: hint_id)
GET/scoreboardPublic standings
GET/progressYour score and solves
GET/instance_infoPublic instance metadata
GET/auth_statusAuth mode + validity
GET/healthHealth check

The optional REST API can be protected with an extra bearer token: set

CTFD_API_TOKEN, and requests to /api/v1/* will require

Authorization: Bearer . The server binds to loopback by default

(MCP_HOST=127.0.0.1).


Docker

A ready-made image is published on [Docker Hub](https://hub.docker.com/r/jamescot/ctfd-mcp-server):

docker run --rm -p 8000:8000 \

-e CTFD_BASE_URL=https://ctf.example.com \ -e CTFD_ADMIN_TOKEN=ctfd_... \ jamescot/ctfd-mcp-server

Or build locally (REST mode):

docker build -t ctfd-mcp .

docker run --rm -p 8000:8000 \ -e CTFD_BASE_URL=https://ctf.example.com \ -e CTFD_ADMIN_TOKEN=ctfd_... \ ctfd-mcp

docker compose up --build also works (REST API on `htt

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

问 PopNx