CTFd MCP server allows users to manage challenges easily, view details, control dynamic Docker instances, and submit flags.
Follow these steps to download and run the ctfd-mcp server.
Visit this page to download:
Make sure your system meets these requirements:
You need to set environment variables to connect to the CTFd server properly. Choose one of the following authentication methods:
CTFD_URL: Enter your CTFd server URL (e.g., https://ctfd.example.com).
CTFD_TOKEN: This should be your user token (note: not an admin token).CTFD_SESSION: This session cookie connects you to the server.CTFD_CSRF_TOKEN: Include this only if your setup requires CSRF protection.To store these variables, create a file named .env in the root of your downloaded repository. Here is an example of what to include in your .env file:
CTFD_URL=https://ctfd.example.com
CTFD_TOKEN=your_user_token
python app.py
This command will start the server. Now, you can access the application.
After starting the server, you can access it using a web browser. Open your preferred browser and type:
http://localhost:5000
You should see the ctfd-mcp interface, ready for you to explore.
If you experience any issues, consider these tips:
.env file contains the correct information.If you encounter other issues, you can check the issues page for help.
The ctfd-mcp server offers several useful features:
Challenge Listing: Easily view and manage challenges available on your CTFd server.
Dynamic Docker Instances: Start and stop Docker containers dynamically as needed.
Flag Submission: Seamlessly submit flags during challenges.
You can join our community to share tips and get help:
Enjoy using ctfd-mcp to manage your CTFd challenges easily!