Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_FILENoPath for the server log file.mcp_server_browser_use.log
CHROME_CDPNoConnect to existing Chrome via DevTools Protocol URL. Required if MCP_USE_OWN_BROWSER=true.
CHROME_PATHNoPath to Chrome/Chromium executable.
MCP_API_KEYNoOptional generic override for the LLM provider's API key (takes precedence over provider-specific keys).
MCP_BASE_URLNoOptional generic override for the LLM provider's base URL.
MCP_HEADLESSNoRun browser without UI specifically for run_browser_agent tool.true
MCP_MAX_STEPSNoMax steps per agent run.100
GOOGLE_API_KEYNoAPI Key for Google AI (Gemini).
MCP_AGENT_TYPENoAgent implementation for run_browser_agent ('org' or 'custom').org
MCP_MODEL_NAMENoSpecific model name for the chosen provider.claude-3-7-sonnet-20250219
MCP_USE_VISIONNoEnable vision capabilities (screenshot analysis).true
OLLAMA_NUM_CTXNoContext window size for Ollama models.32000
OPENAI_API_KEYNoAPI Key for OpenAI.
ALIBABA_API_KEYNoAPI Key for Alibaba Cloud (DashScope).
MCP_TEMPERATURENoLLM temperature (0.0-2.0). Controls randomness.0.0
MISTRAL_API_KEYNoAPI Key for Mistral AI.
OLLAMA_ENDPOINTNoOllama API endpoint URL.http://localhost:11434
OPENAI_ENDPOINTNoOpenAI API endpoint URL.https://api.openai.com/v1
UNBOUND_API_KEYNoAPI Key for Unbound AI.
ALIBABA_ENDPOINTNoAlibaba (DashScope) API endpoint URL.
BROWSER_HEADLESSNoRun browser without visible UI. Primarily affects run_deep_search. See also MCP_HEADLESS.true
CHROME_USER_DATANoPath to Chrome user data directory (for persistent sessions, useful with CHROME_CDP).
DEEPSEEK_API_KEYNoAPI Key for DeepSeek.
MISTRAL_ENDPOINTNoMistral API endpoint URL.https://api.mistral.ai/v1
MOONSHOT_API_KEYNoAPI Key for Moonshot AI.
UNBOUND_ENDPOINTNoUnbound AI API endpoint URL.https://api.getunbound.ai
ANTHROPIC_API_KEYNoAPI Key for Anthropic.
DEEPSEEK_ENDPOINTNoDeepSeek API endpoint URL.https://api.deepseek.com
MOONSHOT_ENDPOINTNoMoonshot API endpoint URL.https://api.moonshot.cn/v1
ANTHROPIC_ENDPOINTNoAnthropic API endpoint URL.https://api.anthropic.com
BROWSER_TRACE_PATHNoDirectory to save Playwright trace files (useful for debugging)../tmp/trace
MCP_MODEL_PROVIDERYesLLM provider to use. Supported: openai, azure_openai, anthropic, google, mistral, ollama, deepseek, openrouter, alibaba, moonshot, unbound.anthropic
OLLAMA_NUM_PREDICTNoMax tokens to predict for Ollama models.1024
OPENROUTER_API_KEYNoAPI Key for OpenRouter.
MCP_USE_OWN_BROWSERNoSet to true to connect to user's browser via CHROME_CDP instead of launching a new one.false
OPENROUTER_ENDPOINTNoOpenRouter API endpoint URL.https://openrouter.ai/api/v1
ANONYMIZED_TELEMETRYNoEnable/disable anonymized telemetry (true/false).true
AZURE_OPENAI_API_KEYNoAPI Key for Azure OpenAI.
BROWSER_WINDOW_WIDTHNoBrowser window width (pixels).1280
MCP_DISABLE_SECURITYNoDisable browser security features specifically for run_browser_agent tool (use cautiously).true
MCP_ENABLE_RECORDINGNoEnable Playwright video recording for run_browser_agent.false
MCP_MAX_INPUT_TOKENSNoMax input tokens for LLM context for run_browser_agent.128000
AZURE_OPENAI_ENDPOINTNoRequired if using Azure. Your Azure resource endpoint.
BROWSER_WINDOW_HEIGHTNoBrowser window height (pixels).720
MCP_KEEP_BROWSER_OPENNoKeep browser managed by server open between run_browser_agent calls (if MCP_USE_OWN_BROWSER=false).false
MCP_RESEARCH_SAVE_DIRNoDirectory to save research artifacts (report, results)../tmp/deep_research/{task_id}
MCP_AGENT_HISTORY_PATHNoDirectory to save agent history JSON files../tmp/agent_history
MCP_RESEARCH_MAX_QUERYNoMax search queries per iteration.3
MCP_SAVE_RECORDING_PATHNoPath to save agent run video recordings (required if MCP_ENABLE_RECORDING=true).
MCP_TOOL_CALLING_METHODNoMethod for tool invocation ('auto', 'json_schema', 'function_calling'). Affects run_browser_agent.auto
AZURE_OPENAI_API_VERSIONNoAzure API version.2025-01-01-preview
BROWSER_DISABLE_SECURITYNoGeneral browser security setting. See also MCP_DISABLE_SECURITY.false
MCP_MAX_ACTIONS_PER_STEPNoMax actions per agent step.5
BROWSER_USE_LOGGING_LEVELNoLogging level (DEBUG, INFO, WARNING, ERROR, CRITICAL).INFO
MCP_RESEARCH_MAX_ITERATIONSNoMax search iterations for deep research.10
MCP_RESEARCH_AGENT_MAX_STEPSNoMax steps for sub-agents within deep research.10
MCP_RESEARCH_USE_OWN_BROWSERNoUse a separate browser instance for research (requires CHROME_CDP if MCP_USE_OWN_BROWSER=true).false

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources