Skip to main content
Glama

Browser MCP Server

by pansin

browser-server-console

Launch a static server from a directory, interact with browser commands, and capture real-time console output for debugging or content verification.

Instructions

Spawn an Express static server for a directory and capture console output from the served content

Input Schema

NameRequiredDescriptionDefault
commandsNoBrowser commands to execute (e.g., "click .button wait 2s") (optional)
directoryYesThe directory to serve statically
pathNoPath to navigate to after starting server (default: "/")/
portNoPreferred port to run the server on (will find next available if busy, default: 3000)
streamNoWhether to stream console output in real-time (default: true)
timeoutNoTimeout in milliseconds (default: 30000)
waitForNoCSS selector or text to wait for before capturing console (optional)

Input Schema (JSON Schema)

{ "properties": { "commands": { "description": "Browser commands to execute (e.g., \"click .button wait 2s\") (optional)", "type": "string" }, "directory": { "description": "The directory to serve statically", "type": "string" }, "path": { "default": "/", "description": "Path to navigate to after starting server (default: \"/\")", "type": "string" }, "port": { "default": 3000, "description": "Preferred port to run the server on (will find next available if busy, default: 3000)", "type": "number" }, "stream": { "default": true, "description": "Whether to stream console output in real-time (default: true)", "type": "boolean" }, "timeout": { "default": 30000, "description": "Timeout in milliseconds (default: 30000)", "type": "number" }, "waitFor": { "description": "CSS selector or text to wait for before capturing console (optional)", "type": "string" } }, "required": [ "directory" ], "type": "object" }

Other Tools from Browser MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pansin/browserMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server