Skip to content
mcp/skillhub

CTFd MCP Server

by mrjamescotio.github.MrJamescot/ctfd-mcp-serverv1.0.4

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

7Pythonstdioofficial registry

context tax

queued

security

queued

cold start

queued

freshness

Active18d ago

Install CTFd MCP server

Install in Claude Code

claude mcp add ctfd -e CTFD_BASE_URL='<ctfd-base-url>' -e CTFD_ADMIN_TOKEN='<ctfd-admin-token>' -e CTFD_SESSION_COOKIE='<ctfd-session-cookie>' -e CTFD_PASSWORD='<ctfd-password>' -- uvx ctfd-mcp-server

Configuration

VariableRequiredSecretDescription
CTFD_BASE_URLyes—Root URL of the CTFd v3 instance, e.g. https://ctf.example.com (without /api/v1)
CTFD_ADMIN_TOKEN—yesCTFd API access token (preferred authentication method)
CTFD_SESSION_COOKIE—yesFull CTFd session cookie, e.g. session=abc...
CTFD_USERNAME——Username for CTFd form login
CTFD_PASSWORD—yesPassword for CTFd form login
CTFD_HTTP_TIMEOUT——Per-request HTTP timeout in seconds (default 15)

Freshness

Active — last maintenance signal 18d ago. The newest of the signals below sets the band.

  1. Last commit (default branch)

    2026-09-21 · 19d ago · GitHub

  2. Latest release

    2026-09-21 · 19d ago · GitHub · v1.0.4

  3. Package published

    no data · npm/PyPI

  4. Registry entry updated

    2026-09-21 · 18d ago · official registry · v1.0.4

FAQ

›How do I install the CTFd MCP server in Claude Code?

Run: claude mcp add ctfd -e CTFD_BASE_URL='<ctfd-base-url>' -e CTFD_ADMIN_TOKEN='<ctfd-admin-token>' -e CTFD_SESSION_COOKIE='<ctfd-session-cookie>' -e CTFD_PASSWORD='<ctfd-password>' -- uvx ctfd-mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.

›Does CTFd require an API key?

Yes. It expects CTFD_BASE_URL, CTFD_ADMIN_TOKEN, CTFD_SESSION_COOKIE, CTFD_PASSWORD, of which 3 are secrets.

›Can I use CTFd as a remote (hosted) MCP server?

No hosted endpoint is published; it runs locally over stdio.

›Is CTFd in the official MCP registry?

Yes, as io.github.MrJamescot/ctfd-mcp-server.