Ctfd MCP Server

Model Context Protocol (MCP) server for interacting with CTFd instances - authenticate, retrieve challenges, submit flags

Local serverstdioTypeScript

What is the Ctfd MCP Server?

Model Context Protocol (MCP) server for interacting with CTFd instances - authenticate, retrieve challenges, submit flags

What you get

A lightweight and extensible Model Context Protocol (MCP) server for interacting with any CTFd instance. This project enables AI tools and automation to authenticate, retrieve challenges, and submit flags through MCP tools.

This project acts as a bridge between CTFd and AI-driven systems by providing a unified interface. It supports multiple authentication modes, dynamic base URL control, and direct MCP tool integration.

  • Dynamic BASE_URL configuration
  • Token and cookie authentication
  • Username/password login
  • List challenges with optional filtering
  • Submit flags programmatically
  • Compatible with MCP-based AI tools (Claude, Codex, Amp, Gemini)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Ctfd MCP Server

{
  "mcpServers": {
    "ctfd": {
      "command": "npx",
      "args": [
        "-y",
        "ctfd-mcp-server"
      ],
      "env": {
        "BASE_URL": "https://demo.ctfd.io",
        "CTFD_TOKEN": "YOUR_CTFD_TOKEN"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
BASE_URLDeclared in the maintainer’s client configuration.Check documentation
CTFD_TOKENDeclared in the maintainer’s client configuration.Check documentation

Frequently asked questions

Model Context Protocol (MCP) server for interacting with CTFd instances - authenticate, retrieve challenges, submit flags Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.