Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
제작자가 쓴 설명(영어 원문)
MCP server for CTFd v3: list challenges, submit flags, and query scoreboards via AI agents.
이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.
이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.
쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.
CTFD_BASE_URL, CTFD_ADMIN_TOKEN, CTFD_SESSION_COOKIE, CTFD_USERNAME, CTFD_PASSWORD, CTFD_HTTP_TIMEOUT비밀로 표시된 값은 내 계정의 열쇠예요. 절대 다른 사람과 공유하거나 채팅에 붙여 넣지 마세요.
필요한 것
어떤 앱을 쓰세요?
위에서 앱을 고르세요. 기억해 두었다가 다음부터는 버튼에 “…에 설치”라고 표시해요.
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/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"
}
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
프로젝트의 .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는 인터넷에 있는 서버에만 연결할 수 있어요. 다른 앱을 고르세요.
선택한 앱은 이 기기의 쿠키에만 저장돼요. 계정은 필요 없어요.
CTFD_USERNAME envCTFD_HTTP_TIMEOUT env이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.
내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.
누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 6일 점검
레지스트리 이름이 GitHub 계정 MrJamescot 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요
내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요
내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요
레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.
해당하는 기본 점검 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, Whisper
같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.
카드 보는 법:★ 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.
One routable IPv6 per AI agent, verifiable from the DNS root. Keyless tools need no signup.
제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.
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:
ctfd_mcp_server.py, used over stdio or sse.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.
category, search (name), and solved/unsolved filters, plus per-challenge detail retrieval.confirm=True, returns clear success/failure, and surfaces rate-limit errors. Flags are never logged.AuthenticationError, CTFdAPIError, ChallengeNotFoundError, SubmissionError, ValidationError, ConfigurationError.GETs, no retries for POSTs (no duplicate submissions), strict JSON/content parsing.BASE_URL is validated and configurable at startup and at runtime.Requires Python 3.10+.
The fastest way is to install from [PyPI](https://pypi.org/project/ctfd-mcp-server/):
pip install ctfd-mcp-server
CTFD_BASE_URL=https://ctf.example.com CTFD_ADMIN_TOKEN=ctfd_... ctfd-mcp
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
| Variable | Default | Meaning |
|---|---|---|
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_TIMEOUT | 15 | Per-request HTTP timeout (seconds) |
CTFD_HTTP_MAX_REDIRECTS | 5 | Max redirects followed per request |
CTFD_STATE_FILE | ~/.local/state/ctfd-mcp/server_state.json | File used to cache auth state |
CTFD_MCP_TRANSPORT | stdio | MCP transport: stdio or sse |
MCP_HOST / MCP_PORT | 127.0.0.1 / 8000 | REST server bind settings (loopback by default) |
CTFD_API_TOKEN | *(empty)* | Optional bearer token protecting the optional REST API (/api/v1/*) |
CTFD_ALLOW_PRIVATE_IPS | false | Allow connections to private/loopback/metadata addresses (e.g. local CTFd test instances) |
CTFD_DOWNLOAD_DIR | ./downloads | Directory where challenge attachments are saved by download_file |
CTFD_PERSIST_SECRETS | false | ⚠ Strongly discouraged: write secrets to disk |
CTFD_BASE_URLmay include a path prefix (e.g.https://host/ctfd); the client
appends
/api/v1automatically.
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
CTFD_MCP_TRANSPORT=sse python ctfd_mcp_server.py # http://127.0.0.1:8000/sse
| Tool | Parameters | Description |
|---|---|---|
set_base_url | url | Point the server at a CTFd instance |
set_token | token | Adopt an API token (memory only) |
set_cookie | cookie | Adopt a session cookie (memory only) |
login | username, password | Form login; keeps the session cookie |
challenges | category, search, solved, page, per_page | Paginated challenge list with filters |
challenge | identifier (id or name) | Full detail of one challenge |
submit_flag | flag, challenge_name/challenge_id, confirm | Submit a flag (requires confirm=True) |
download_file | file_url, dest_dir | Download a challenge attachment over the CTFd /files/… route |
unlock_hint | hint_id | Unlock 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-Tokenheader, 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)." } }
python scripts/run_local.sh # reads .env, default http://127.0.0.1:8000
uvicorn server.main:app --host 0.0.0.0 --port 8000
Endpoints (all under /api/v1):
| Method | Path | Description |
|---|---|---|
| POST | /set_base_url | Validate & set the CTFd base URL |
| POST | /set_token | Set API token |
| POST | /set_cookie | Set session cookie |
| POST | /set_creds | Store username/password for later login |
| POST | /login | Form login (session cookie) |
| GET | /challenges | Paginated + filtered challenge list |
| GET | /challenges/{id-or-name} | Challenge detail |
| POST | /submit | Submit a flag (confirm: true required) |
| POST | /download | Download a challenge attachment (body: file_url) |
| POST | /unlock_hint | Unlock and read a hint (body: hint_id) |
| GET | /scoreboard | Public standings |
| GET | /progress | Your score and solves |
| GET | /instance_info | Public instance metadata |
| GET | /auth_status | Auth mode + validity |
| GET | /health | Health 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).
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
앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요