Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Description from the maker (original English)
MCP server for CTFd v3: list challenges, submit flags, and query scoreboards via AI agents.
These three are never merged into one score: opinions, measurements and popularity are different things.
We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.
Pick the AI app you use, then copy the settings.
CTFD_BASE_URL, CTFD_ADMIN_TOKEN, CTFD_SESSION_COOKIE, CTFD_USERNAME, CTFD_PASSWORD, CTFD_HTTP_TIMEOUTValues marked secret are keys to your account. Never share them or paste them into a chat.
You need
Which app do you use?
Pick your app above. We remember it, so next time the button says “Install in …”.
Open Claude Desktop → Settings → Developer → Edit Config, and paste this into 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"
}
}
}
}Run this in your terminal
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-serverFill in the empty values before running it.
Paste into .cursor/mcp.json in your project, or ~/.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"
}
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
Paste into .vscode/mcp.json in your project
{
"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"
}
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.
Your choice stays on this device in a cookie; no account needed.
CTFD_USERNAME envCTFD_HTTP_TIMEOUT envThese settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 7, 2026
The registry name was verified with the GitHub account MrJamescot, which owns the repo
We have not read this repo from GitHub yet
We have not read this repo from GitHub yet
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
You need to fill in: CTFD_BASE_URL, CTFD_ADMIN_TOKEN, CTFD_SESSION_COOKIE, CTFD_PASSWORD
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed –, and the latest version (1.0.4) reached the registry 2 months ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.
In the same category: Spec Driven Development, Remote Desktop Commander, TF Rooms
Servers in the same category from other makers, sorted by stars.
Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
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.
Live room availability, rates and stay quotes for 12 New Leaf motels in Twin Falls, Idaho.
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
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
Only the beginning is shown; read the rest in the repo