mcp-ctftime
An MCP (Model Context Protocol) server that wraps the public CTFtime API, enabling AI assistants to query CTF events, teams, rankings, and results.
Quickstart
Option 1: npx (no install)
Option 2: Global install
Option 3: From source
Tools
Tool | Description |
| List events in a UNIX timestamp window |
| Get event details by ID |
| Get top teams (current or specific year) |
| Get top teams by country (current year) |
| Get team details by ID |
| Get event results for a year |
| Get event votes for a year |
Client Setup
Claude Desktop
Claude Desktop supports MCP servers via a JSON configuration file.
Config file location:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Using npx (recommended):
Using global install:
Restart Claude Desktop after editing the config.
OpenAI Codex CLI
Codex CLI stores MCP configuration in ~/.codex/config.toml.
Using the CLI:
Or edit
Using global install:
Use /mcp in the Codex TUI to verify the server is connected.
Amp
Amp supports MCP servers via the amp.mcpServers setting in VS Code settings.json or via CLI.
Config file location (VS Code):
macOS:
~/Library/Application Support/Code/User/settings.jsonWindows:
%APPDATA%\Code\User\settings.jsonLinux:
~/.config/Code/User/settings.json
Using npx (recommended):
Using global install:
Via CLI:
Gemini CLI
Gemini CLI stores MCP configuration in ~/.gemini/settings.json.
Using npx (recommended):
Using global install:
Via CLI:
Use /mcp in Gemini CLI to verify server status.
Docker
For clients that support Docker-based MCP servers:
Compatibility
Feature | Supported |
Transport | stdio |
Node.js | >=18.0.0 |
Platforms | macOS, Linux, Windows |
Tested Clients
Client | Status |
Claude Desktop | ✅ Verified |
OpenAI Codex CLI | ✅ Verified |
Amp | ✅ Verified |
Gemini CLI | ✅ Verified |
Environment Variables
Currently, this server does not require any environment variables. The CTFtime API is public and does not require authentication.
Development
API Reference
This server wraps the public CTFtime API: https://ctftime.org/api/
All timestamps use UNIX epoch seconds. Country codes use ISO 3166-1 alpha-2 format (lowercase, e.g., us, de, pl).