Skip to main content

Browser MCP Server.

Project description

ブラウザMCPサーバー

MCPの仕様に準じ、LLMからのブラウザ操作命令に従うMCPサーバー。

前提

ローカル環境(PC)にChromeブラウザがインストールされていること。

サーバーのインストール手順

pythonパッケージ管理ソフトであるuvをPCにインストール(入っていない場合)

 curl -LsSf https://astral.sh/uv/install.sh | sh

python環境構築

 uv venv
 uv python install 3.11.7
 uv python pin 3.11.7
 source .venv/bin/activate

必要なpythonモジュールのインストール

 uv add -r requirements.txt
 uv sync

起動確認

 uv run main.py
 または
 mcp dev main.py # MCP Inspectorによる確認

これで正常に起動できていれば環境構築は成功してる。

MCPクライアント側の設定

(Claude等のMCPクライアント側の設定)

{
  "browser_use_mcp": {
    "command": "path/to/your/uv",
    "args": [
      "--directory",
      "/path/to/your/browser_use_mcp/",
      "run",
      "main.py"
    ],
    "env": {
      "OPENAI_API_KEY": "your OPENAI_API_KEY",
      "OPENAI_MODEL_NAME": "your OPENAI_MODEL_NAME"
    }
  }
}
{
  "browser_use_mcp": {
    "command": "/Users/takeshi.fujita/.local/bin/uv",
    "args": [
      "--directory",
      "/Users/takeshi.fujita/browser_use_mcp/",
      "run",
      "main.py"
    ],
    "env": {
      "OPENAI_API_KEY": "#######",
      "OPENAI_MODEL_NAME": "#######"
    }
  }
}

本MCPがClaude等のMCPクライアントから正常に使えるかどうかの確認は、クライアントソフトごとに異なる。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

browser_use_mcp-0.1.0.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

browser_use_mcp-0.1.0-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file browser_use_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: browser_use_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.3

File hashes

Hashes for browser_use_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c639755220a779f90a6b54ee318be7a3c25b7015712a19fae7618e3268ac3f57
MD5 8c828cc6a9a162af92e32491649f9f19
BLAKE2b-256 6704ceeb7879d7aaab795fdef89aba2e998b098af0b8cd56626cb6370569349b

See more details on using hashes here.

File details

Details for the file browser_use_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for browser_use_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa5ffcbb1e52bcdb0a220fad551187df683dd0d2c610b8909e1cf60c7681daa6
MD5 aaf3b3ff85bea695dfe38e934e3f2595
BLAKE2b-256 d3624fb9be0b5157e4fb40782fb23352f3734aefe32e6c3fe9f4665f67206cd8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page