MCP Browser Use Server

# --------------------------- # API Keys (Replace as needed) # --------------------------- OPENAI_API_KEY=your_openai_api_key_here ANTHROPIC_API_KEY=your_anthropic_api_key_here GOOGLE_API_KEY=your_google_api_key_here AZURE_OPENAI_API_KEY=your_azure_api_key_here DEEPSEEK_API_KEY=your_deepseek_api_key_here # ---------------------------------- # Model Provider & Endpoint Settings # ---------------------------------- # Typical endpoints; change to match your usage. OPENAI_ENDPOINT=https://api.openai.com/v1 ANTHROPIC_API_ENDPOINT=https://api.anthropic.com AZURE_OPENAI_ENDPOINT=https://your-azure-openai-endpoint DEEPSEEK_ENDPOINT=https://api.deepseek.com # --------------------------- # Model & Agent Configuration # --------------------------- # Choose one provider: "openai", "anthropic", "azure_openai", "deepseek", "gemini", "ollama". MCP_MODEL_PROVIDER=anthropic MCP_MODEL_NAME=claude-3-5-sonnet-20241022 MCP_TEMPERATURE=0.3 MCP_MAX_STEPS=30 MCP_MAX_ACTIONS_PER_STEP=5 MCP_USE_VISION=true MCP_TOOL_CALL_IN_CONTENT=true # --------------------------------- # Chrome / Playwright Configuration # --------------------------------- # If CHROME_PATH is set, the code will attempt to launch a locally installed Chrome # with remote debugging on port 9222. # If left empty, it will launch a standard Chromium instance via Playwright. CHROME_PATH=/path/to/your/chrome/binary CHROME_USER_DATA=/path/to/your/chrome-profile CHROME_DEBUGGING_PORT=9222 CHROME_DEBUGGING_HOST=localhost CHROME_PERSISTENT_SESSION=false # You can add extra flags in your code if needed: # Example: export CHROME_EXTRA_ARGS="--some-chrome-flag" # -------------- # Other Settings # -------------- # Adjust HEADLESS or DISABLE_SECURITY if your code checks them. # By default, you might keep them out or set them in the code itself. # HEADLESS=false # DISABLE_SECURITY=false # ------------- # Example Usage # ------------- # Load this file with: # source .env # or use a library like python-dotenv or uv to manage environment variables. # Note: In production or multi-user environments, never commit real API keys # or share them publicly. Instead use a secrets manager or encrypted storage.