プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のための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の3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: 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

「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。

必要なもの

  • PyPIPythonの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

  • このカテゴリのほかの32558件のうち0%よりスターが多い
  • このカテゴリのほかの32558件のうち46%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの32558件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

CTFdは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:CTFD_BASE_URL, CTFD_ADMIN_TOKEN, CTFD_SESSION_COOKIE, CTFD_PASSWORD

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(1.0.4)がレジストリに届いたのは2 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。

代わりに使えるものは?

同じカテゴリには:Spec Driven Development, Remote Desktop Commander, FactLot

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Remote Desktop Commander

作者:desktop-commander

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

クラウドで動く★ 211昨日更新
インストール

FactLot

作者:9mp96ygnbk-alt

Cited CRE facts and deterministic calculators for agents: rent, CAM, debt sizing, IRR, parcel IDs.

パソコンでもクラウドでも今日更新
インストール

作者の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に聞く