A beautiful, real-time Minecraft server status checker built for Cloudflare Pages + Workers.
- ✅ Java & Bedrock edition support
- 🎨 Gorgeous dark dashboard with glassmorphism + particle background
- 📊 Players online, ping, MOTD, version, software info
- 🎨 Full Minecraft §-code MOTD color rendering
- 👥 Player list with Minecraft avatars (via crafthead.net)
- 🔍 Expandable debug information panel
- 📋 Copy server address / JSON response
- ⚡ Edge-cached API via Cloudflare Workers (30s TTL)
mc-status/
├── public/
│ ├── index.html # Main SPA
│ ├── style.css # Full dark theme stylesheet
│ ├── app.js # Frontend logic
│ ├── _headers # Security headers
│ └── _redirects # CF Pages routing
├── functions/
│ └── api/
│ └── status.js # Cloudflare Pages Function (Worker)
├── wrangler.toml
└── package.json
npm install
npm run dev
# → http://127.0.0.1:8788# Login first
npx wrangler login
# Deploy
npm run deploy- Push this repo to GitHub/GitLab
- Go to Cloudflare Dashboard → Pages → Create a project
- Connect your repository
- Set build settings:
- Build command: (leave empty)
- Build output directory:
public
- Deploy — Cloudflare will auto-detect
functions/for Workers
GET /api/status
| Param | Type | Required | Description |
|---|---|---|---|
host |
string | ✅ | Server hostname or IP |
port |
number | ❌ | Server port |
type |
string | ❌ | java (default) or bedrock |
Example:
/api/status?host=mc.hypixel.net&type=java
/api/status?host=play.felixcraft.xyz&port=19132&type=bedrock
- mcsrvstat.us — Minecraft server status API
- crafthead.net — Player avatar rendering
- Cloudflare Pages — Hosting & edge computing