@@ -27,7 +27,7 @@ uv tool update-shell
2727
2828Create a ` .env `  file:
2929
30- ``` 
30+ ``` bash 
3131OPENAI_API_KEY=your-api-key
3232CHROME_PATH=optional/path/to/chrome
3333PATIENT=false  #  Set to true if API calls should wait for task completion
@@ -65,7 +65,7 @@ browser-use-mcp-server run server --port 8000 --stdio --proxy-port 9000
6565
6666## Client Configuration  
6767
68- ### SSE Mode  
68+ ### SSE Mode Client Configuration   
6969
7070``` json 
7171{
@@ -77,7 +77,7 @@ browser-use-mcp-server run server --port 8000 --stdio --proxy-port 9000
7777}
7878``` 
7979
80- ### stdio Mode  
80+ ### stdio Mode Client Configuration   
8181
8282``` json 
8383{
@@ -154,18 +154,29 @@ To develop and test the package locally:
154154
155155## Docker  
156156
157+ Using Docker provides a consistent and isolated environment for running the server.
158+ 
157159``` bash 
158- #  Run with default VNC password 
160+ #  Build the Docker image 
159161docker build -t browser-use-mcp-server . 
162+ 
163+ #  Run the container with the default VNC password ("browser-use")
164+ #  --rm ensures the container is automatically removed when it stops
165+ #  -p 8000:8000 maps the server port
166+ #  -p 5900:5900 maps the VNC port
160167docker run --rm -p8000:8000 -p5900:5900 browser-use-mcp-server
161168
162- #  Use custom VNC password
163- echo  " your-password" >  vnc_password.txt
169+ #  Run with a custom VNC password read from a file
170+ #  Create a file (e.g., vnc_password.txt) containing only your desired password
171+ echo  " your-secure-password" >  vnc_password.txt
172+ #  Mount the password file as a secret inside the container
164173docker run --rm -p8000:8000 -p5900:5900 \
165-   -v $( pwd) 
174+   -v $( pwd) :ro  \
166175  browser-use-mcp-server
167176``` 
168177
178+ * Note: The ` :ro `  flag in the volume mount (` -v ` ) makes the password file read-only inside the container for added security.* 
179+ 
169180### VNC Viewer  
170181
171182``` bash 
@@ -175,7 +186,7 @@ cd noVNC
175186./utils/novnc_proxy --vnc localhost:5900
176187``` 
177188
178- Default password: ` browser-use ` 
189+ Default password: ` browser-use `  (unless overridden using the custom password method) 
179190
180191<div  align =" center " >
181192  <img  width =" 428 "  alt =" VNC Screenshot "  src =" https://github.com/user-attachments/assets/45bc5bee-418d-4182-94f5-db84b4fc0b3a "  />
@@ -187,7 +198,7 @@ Default password: `browser-use`
187198
188199Try asking your AI:
189200
190- ``` 
201+ ``` text 
191202open https://news.ycombinator.com and return the top ranked article 
192203``` 
193204
0 commit comments