Back to Home
AaryaBhusal icon

ctfd-mcp

Verified Safe

by AaryaBhusal

Overview

A server that allows CTFd users to manage challenges, start/stop dynamic instances, and submit flags through an MCP interface.

Installation

Run Command
python main.py

Environment Variables

  • CTFD_URL
  • CTFD_TOKEN
  • CTFD_SESSION
  • CTFD_USERNAME
  • CTFD_PASSWORD
  • CTFD_CSRF_TOKEN
  • CTFD_TIMEOUT
  • CTFD_CONNECT_TIMEOUT
  • CTFD_READ_TIMEOUT

Security Notes

The client code (ctfd_client.py) demonstrates good security practices for interacting with a CTFd API. It correctly handles various authentication methods (API token, session cookie, username/password login), including dynamically fetching and managing CSRF tokens when session cookies are used. It also implements robust error handling for API responses (e.g., unauthorized, not found, rate limits). No 'eval', hardcoded secrets (all from environment variables), or other obvious malicious patterns were found. The use of httpx for network requests and forcing HTTP/1.1 for compatibility are reasonable choices.

Similar Servers

Stats

Interest Score30
Security Score9
Cost ClassLow
Avg Tokens2
Stars1
Forks0
Last Update2026-01-19

Tags

CTFdChallenge ManagementCTFDynamic InstancesPython