Website · Features · Quick start · Configuration · Deployment · API · Contributing
MCServerlist is a source-available Minecraft server list built with Next.js. Server owners list their servers, players find them, check the live status and vote for their favourites. Votes can be delivered to the game server via Votifier/NuVotifier for in-game rewards.
Note
The website UI is in German (default) and English (/en), with a light and a dark theme.
Code and documentation are in English.
|
|
Monthly ranking with game mode, version and country filters |
Server page with live status, MOTD, uptime and top voters |
Screenshots use demo data.
For players
- 🔎 Server listings with monthly vote ranking, featured servers, search and filters (game mode, version, country, online only) and pagination
- 🟢 Live status via the Java Edition Server List Ping: online state, players, version, MOTD (colors and formatting), favicon, latency, SRV record support
- 📈 Player history and uptime: a background worker pings every server periodically and keeps 30 days of history
- 🗳️ Voting once every 24 hours per server, protected by IP hash, Minecraft name and optional Cloudflare Turnstile captcha, plus a top voter list
- 🌍 German and English UI, light and dark theme, game mode landing pages
For server owners
- ➕ Server submission and editing with reachability check, tags, banner, Markdown description, website, Discord and Bedrock address
- 🎁 Votifier v1 (RSA) and NuVotifier v2 (token) vote delivery with a built-in connection test
- 🔌 Public JSON API for server status and vote checks
Accounts, moderation and security
- 👤 User accounts: registration with e-mail confirmation, password reset, TOTP two-factor authentication with recovery codes, "my servers"
- 🚩 Reports so visitors can flag broken or abusive listings
- 🛠️ Admin area: stats, hide/feature/delete servers, manage users (roles, bans), handle reports
- 🔒 Security: SSRF guard for outgoing connections, hashed IPs, rate limiting, bcrypt passwords, hashed session tokens
- 🧭 SEO: metadata, hreflang, Open Graph images, structured data,
sitemap.xml,robots.txt
| Area | Tools |
|---|---|
| Framework | Next.js 16 (App Router, Server Actions) · React 19 · TypeScript |
| Styling | Tailwind CSS v4 |
| Data | PostgreSQL · Drizzle ORM · Zod |
| Minecraft | Own Server List Ping, Votifier/NuVotifier and Mojang skin clients |
| Quality | ESLint · Vitest · GitHub Actions |
| Deployment | Docker Compose · Dokploy |
git clone https://github.com/sluhtie/mc-serverlist.git
cd mc-serverlist
docker compose upOpen http://localhost:3000 and register with admin@example.com to get admin rights
(change it with ADMIN_EMAILS=you@example.com docker compose up). The source is mounted into the
container, so changes reload instantly. Postgres is reachable on localhost:5432 (user mcsl, any password).
Every e-mail the app sends (address confirmation, password reset, …) lands in Mailpit at http://localhost:8025 instead of a real inbox.
Local development uses ALLOW_PRIVATE_ADDRESSES=true, so you can list a Minecraft server
running on your own machine or LAN.
Requirements: Node.js 22+ and PostgreSQL 15+.
cp .env.example .env # adjust DATABASE_URL
npm ci
npm run devMigrations are applied automatically when the server starts.
All settings are environment variables read at runtime, so the same image runs everywhere.
See .env.example for the full list.
| Variable | Required | Description |
|---|---|---|
DATABASE_URL |
yes* | PostgreSQL connection string. *Alternatively set PGHOST, PGPORT, PGUSER, PGPASSWORD, PGDATABASE (used by the production compose file) |
APP_URL |
yes (prod) | Public URL, e.g. https://servers.example.com |
APP_SECRET |
yes (prod) | Random secret used to hash IPs and encrypt 2FA secrets (openssl rand -base64 48). Changing it disables every user's authenticator. |
ADMIN_EMAILS |
no | Comma-separated e-mails that become admins |
SITE_NAME |
no | Display name, default MCServerlist |
GOOGLE_SITE_VERIFICATION |
no | Google Search Console verification code (meta tag method) |
TURNSTILE_SITE_KEY / TURNSTILE_SECRET_KEY |
no | Enables the captcha on the vote page |
STATUS_WORKER_ENABLED |
no | Run the ping worker in this instance (default true) |
STATUS_INTERVAL_SECONDS |
no | Ping interval, minimum 60 (default 300) |
ALLOW_PRIVATE_ADDRESSES |
no | Allow private IPs as server addresses. Dev only. |
USESEND_API_KEY |
yes (prod) | useSend API key for account e-mails. Without it (or SMTP) no mail is sent, so nobody can confirm their address |
USESEND_BASE_URL |
no | Base URL of a self-hosted useSend, default https://app.usesend.com |
SMTP_HOST |
no | SMTP server, used only when USESEND_API_KEY is empty (dev uses Mailpit) |
SMTP_PORT |
no | Default 587 (STARTTLS); use 465 for implicit TLS |
SMTP_SECURE |
no | Force implicit TLS on/off (default: on for port 465) |
SMTP_USER / SMTP_PASSWORD |
no | SMTP login |
MAIL_FROM |
no | Sender, default <SITE_NAME> <noreply@<APP_URL domain>> |
LEGAL_NAME / LEGAL_ADDRESS / LEGAL_EMAIL |
yes (prod) | Operator shown in the imprint and privacy policy. LEGAL_ADDRESS is comma-separated (Street 1, 12345 City) |
LEGAL_PHONE |
no | Phone number in the imprint |
LEGAL_HOSTING / LEGAL_MAIL_PROVIDER |
no | Hosting and mail provider(s) named in the privacy policy (free text) |
Production runs with docker-compose.prod.yml, tailored for
Dokploy. Step-by-step guide: docs/deployment.md.
| Endpoint | Description |
|---|---|
GET /api/v1/servers/<slug> |
Status, players, version, MOTD, monthly votes |
GET /api/v1/votes/check?server=<slug>&username=<name> |
Did the player vote in the last 24 h? |
GET /api/health |
Health check (database connectivity) |
Contributions are very welcome! Please read CONTRIBUTING.md and our Code of Conduct. If you use an AI coding agent, point it to AGENTS.md.
MCServerlist is source-available, not open source. The code is published under the PolyForm Strict License 1.0.0: you may read it and contribute to this repository (see CONTRIBUTING.md), but you may not distribute it, make changes or build new works based on it, so it cannot serve as the base of your own projects. Commercial use is not permitted either. If you would like to use it in a way the license does not allow, ask in an issue.
MCServerlist is not affiliated with Mojang Studios or Microsoft. Minecraft is a trademark of Mojang Studios.