Mu Server quick start


Mu Server: Java's modern web server

Quick Start

Add one dependency...


...and say hello:

import io.muserver.*;
public class Hello {
    public static void main(String[] args) {
        MuServer server = MuServerBuilder.httpServer()
            .addHandler(Method.GET, "/", (request, response, pathParams) -> {
                response.write("Hello, world");
        System.out.println("Started server at " + server.uri());

Upgrading to 2.x? See the upgrade notes.


Each release is tested with Java 8, 11, 17 and 21.