Set up a full node
Install clients and run an MCN Mainnet node on Ubuntu, with automatic restart.
This guide uses Ubuntu 24.04 and a normal account with sudo access. A full node runs Geth and Prysm Beacon Chain. To sign validator duties, continue with Run a validator after the node is ready.
1. Prepare the server
Connect over SSH and install the dependencies.
sudo apt update
sudo apt install -y git python3 python3-venv ca-certificates curl jq
timedatectl statusConfirm that System clock synchronized is yes. Start with 2 vCPU, 4 GB RAM and 50 GB SSD. Monitor free space with df -h and expand storage as data grows. Reserve additional space for backups and exchange indexing.
2. Install the clients
cd "$HOME"
git clone https://github.com/MCNBlockchain/start-mcn.git
cd "$HOME/start-mcn"
./install-clientsThe installer downloads Geth 1.17.10 and Prysm Beacon Chain 7.3.1 for Linux x86_64 or ARM64 into bin/. It checks their SHA-256 digests against tools/clients.json. To include Prysm Validator, run ./install-clients --validator.
For clients already installed elsewhere, set MCN_GETH and MCN_BEACON to their absolute paths. Geth releases · Prysm 7.3.1
Checkpoint sync for new nodes
To start Prysm from a recent finalized state, follow the checkpoint sync guide. New Prysm databases use the MCN Beacon API by default.
3. Start the node
./start
./start status
./start logs
./start waitThe node stays running after SSH disconnects. On first start, Geth uses a finalized block hash from the public MCN RPC as its target and downloads data from peers. Prysm then loads a recent finalized checkpoint from the MCN Beacon API and downloads the remaining blocks. Duration depends on peers, network throughput and storage.
wait exits with Node ready. once both clients are ready and finality advances. While Prysm reports is_syncing: true, it is loading history. If the wait times out, inspect the logs and status before running it again. Local databases remain available.
4. Start automatically after reboot
Stop the background node before handing it over to systemd.
cd "$HOME/start-mcn"
./start stop
mkdir -p "$HOME/.config/systemd/user"
cat > "$HOME/.config/systemd/user/mcn-node.service" <<'UNIT'
[Unit]
Description=MCN Mainnet full node
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
WorkingDirectory=%h/start-mcn
ExecStart=%h/start-mcn/start foreground
Restart=on-failure
RestartSec=10
TimeoutStopSec=300
UMask=0077
[Install]
WantedBy=default.target
UNIT
sudo loginctl enable-linger "$USER"
systemctl --user daemon-reload
systemctl --user enable --now mcn-nodeUse systemctl --user restart mcn-node or systemctl --user stop mcn-node to manage the service. Inspect it with ./start status, ./start logs, and journalctl --user -u mcn-node -n 50 --no-pager.
Network and storage
Allow outbound peer connections and HTTPS. For inbound peer traffic, allow TCP/UDP 30303 for Geth, TCP/UDP 13000 and UDP 12000 for Prysm through the server and provider firewalls. Keep SSH access available when changing firewall rules.
| Local interface | Address |
|---|---|
| MCN JSON-RPC, Chain ID 2325 | http://127.0.0.1:8545 |
| Engine API with JWT | http://127.0.0.1:8551 |
| Beacon REST API | http://127.0.0.1:3500 |
| Beacon gRPC for validators | 127.0.0.1:4000 |
Databases and logs live in .mcn-data/. Keep that directory across updates. If using MCN_DATA_DIR, use the same value in commands and service configuration.