Repository navigation
Self Hosting Node.js
Run MC Presence directly on your computer or server using Node.js. This is the simplest setup and works on Windows, macOS, and Linux.
- Node.js 18 or newer — download here
- Git — download here
Verify your install:
node --version # should print v18.x or higher
npm --version
git --versiongit clone https://github.com/RedZephon/Minecraft-Present-Bot.git
cd Minecraft-Present-Botnpm installcp .env.example .envOpen .env in a text editor and fill in your values:
MC_HOST=play.yourserver.com
MC_PORT=25565
WEB_PORT=3100
ANTHROPIC_API_KEY=sk-ant-your-key-hereOnly MC_HOST is required. Everything else has sensible defaults. See Configuration for all options.
npm startYou should see:
[MC-Presence] v2.0.0 — Web UI at http://0.0.0.0:3100
Navigate to http://localhost:3100 in your browser.
screen -S mc-presence
npm start
# Press Ctrl+A then D to detach
# Reattach later with: screen -r mc-presenceCreate /etc/systemd/system/mc-presence.service:
[Unit]
Description=MC Presence Bot
After=network.target
[Service]
Type=simple
User=your-username
WorkingDirectory=/path/to/Minecraft-Present-Bot
ExecStart=/usr/bin/node server.js
Restart=on-failure
RestartSec=10
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.targetThen enable and start:
sudo systemctl enable mc-presence
sudo systemctl start mc-presence
sudo systemctl status mc-presenceUse NSSM to run as a Windows service, or simply keep a terminal window open.
Create ~/Library/LaunchAgents/com.mcpresence.plist for automatic startup on login.
cd Minecraft-Present-Bot
git pull
npm install
# Restart the appYour data/bots.json and data/settings.json are preserved across updates.
Change WEB_PORT in your .env file to a different port (e.g., 3101).
Delete the .minecraft folder and reconnect — you'll be prompted to sign in again.
- Verify the server address and port are correct
- Make sure the server is online and allows the Minecraft version your account uses
- Check if the server has a whitelist — your account must be whitelisted