{"id":1102,"date":"2025-04-17T00:10:34","date_gmt":"2025-04-16T16:10:34","guid":{"rendered":"https:\/\/hali.life\/?p=1102"},"modified":"2025-04-17T17:30:36","modified_gmt":"2025-04-17T09:30:36","slug":"%e4%bd%bf%e7%94%a8mcp%e6%a0%87%e9%85%8d%e7%bb%84%e4%bb%b6%e3%80%90browser-use%e3%80%91%ef%bc%8c%e6%8a%93%e5%8f%96%e7%94%b5%e5%95%86%e7%83%ad%e9%97%a8%e6%95%b0%e6%8d%ae","status":"publish","type":"post","link":"https:\/\/hali.life\/?p=1102","title":{"rendered":"\u4f7f\u7528MCP\u6807\u914d\u7ec4\u4ef6\u3010Browser-Use\u3011\uff0c\u6293\u53d6\u7535\u5546\u70ed\u95e8\u6570\u636e"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">\u7b80\u4ecb<\/h1>\n\n\n\n<p>\u6700\u8fd1\u8fd9\u51e0\u5468\uff0cMCP\u7684\u6982\u5ff5\u975e\u5e38\u706b\u554a\uff0c\u4e0d\u8fc7\u6bd4\u8d77\u600e\u4e48\u4f7f\u7528mcp\uff0c\u6211\u66f4\u60f3\u77e5\u9053\u6211\u8be5\u8ba9mcp\uff0c\u8be5\u8ba9ai\u4e3a\u6211\u505a\u4ec0\u4e48\u3002\u6211\u4eec\u5df2\u7ecf\u5230\u4e86\uff0c<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">\u63d0\u51fa\u95ee\u9898\u7684\u80fd\u529b\uff0c\u6bd4\u89e3\u51b3\u95ee\u9898\u7684\u80fd\u529b\uff0c\u66f4\u91cd\u8981\u7684\u65f6\u523b\u3002<\/mark><\/strong>\u521a\u597d\u6211\u6700\u8fd1\u5728\u505a\u65e0\u8d27\u6e90\u7535\u5546\u554a\uff0c\u65e0\u8d27\u6e90\u6700\u91cd\u8981\u7684\u4e00\u73af\u5c31\u662f\u6536\u96c6\u5e73\u53f0\u7684\u70ed\u95e8\u6570\u636e\u3002\u4e4b\u524d\u6536\u96c6\u6296\u97f3\u5546\u57ce\u7684\u6570\u636e\u662f\u81ea\u5df1\u5199\u7684\u722c\u866b\u3002\u6211\u73b0\u5728\u60f3\u6536\u96c6\u6dd8\u5b9d\u7684\uff0c\u90a3\u6211\u73b0\u5728\u5c31\u6765\u8bd5\u8bd5\u8ba9mcp\u6765\u5e2e\u6211\u628a\u6280\u672f\u5e73\u79fb\u3002\u6211\u9009\u62e9\u4f7f\u7528\u7684\u662f<strong>Browser-use<\/strong>\u8fd9\u4e2a\u5de5\u5177\uff0c\u5b83\u5df2\u7ecf\u88ab\u597d\u51e0\u4e2amcp\u534f\u8bae\u7eb3\u5165\u4e86\u5185\u90e8\u7ec4\u4ef6\u3002\u5b83\u7684\u5b9e\u73b0\u65b9\u6cd5\u5f88\u7b80\u5355\uff0c\u5c31\u662f\u6a21\u4eff\u4eba\u53bb\u70b9\u51fb\u6d4f\u89c8\u5668\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u5de5\u5177\u4e0b\u8f7d<\/h1>\n\n\n\n<p>\u94fe\u63a5\uff1a<a href=\"https:\/\/pan.quark.cn\/s\/e40723b4a1d1\" target=\"_blank\" rel=\"noreferrer noopener\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">\u672c\u671f\u89c6\u9891\u6240\u9700\u5de5\u5177<\/mark><\/strong><\/a><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u89c6\u9891\u6559\u5b66<\/h1>\n\n\n\n<iframe src=\"\/\/player.bilibili.com\/player.html?bvid=BV1Ln5iz1E5c&#038;page=1\" scrolling=\"no\" border=\"0\" frameborder=\"no\" framespacing=\"0\" allowfullscreen=\"true\" style=\"width:100%; height:500px; max-width: 100%\uff1balign:center; margin-left: 60px; \"> <\/iframe>\n\n\n\n<h1 class=\"wp-block-heading\">\u4e00\u3001Browser-Use \u5b89\u88c5<\/h1>\n\n\n\n<h3 class=\"wp-block-heading\">1\u3001\u83b7\u53d6Browser-use<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># \u5982\u679c\u4f60\u5b89\u88c5\u6709git\ngit clone https:\/\/github.com\/browser-use\/web-ui.git\ncd web-ui<\/code><\/pre>\n\n\n\n<p>\u6216\u8005<\/p>\n\n\n\n<p>\u5982\u679c\u4f60\u6ca1\u6709\u5b89\u88c5git\uff0c\u4ece\u3010\u5de5\u5177\u4e0b\u8f7d\u3011\u4e2d\u4e0b\u8f7d \u201cweb-ui\u201d<br><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2\u3001\u5b89\u88c5\u865a\u62df\u73af\u5883\uff08\u53ef\u9009\uff09<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>python -m venv browser-use\n.\\browser-use\\Scripts\\activate.bat<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3\u3001\u5b89\u88c5Browser-Use\u6240\u9700\u73af\u5883<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install -r requirements.txt\nplaywright install\npip install lxml_html_clean<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">4\u3001\u590d\u5236\u73af\u5883\u6587\u4ef6<\/h3>\n\n\n\n<p>\u5c06 .env.example \u6587\u4ef6\u590d\u5236\u4e00\u4efd\uff0c\u7136\u540e\u6539\u540d\u4e3a .env<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5\u3001\u8fd0\u884c<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>python webui.py --ip 127.0.0.1 --port 7788<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\">\u4e8c\u3001\u914d\u7f6e Browser-Use<\/h1>\n\n\n\n<h3 class=\"wp-block-heading\">1\u3001&nbsp;Browser Settings \u6d4f\u89c8\u5668\u8bbe\u7f6e<\/h3>\n\n\n\n<p>\u5982\u679c\u52fe\u9009\u3010Use Own Browser\u3011\u53ef\u4ee5\u4f7f\u7528\u81ea\u5df1\u6d4f\u89c8\u5668\u4e2d\u7f13\u5b58\u7684\u6570\u636e\uff0c\u514d\u53bb\u767b\u9646\u8d26\u53f7\u7b49\u70e6\u607c\uff0c\u4f46\u662f\u8981\u6307\u5b9a\u81ea\u5df1Chrome\u7684\u4f4d\u7f6e\u3002\u4fee\u6539 .env \u6587\u4ef6\u4e2d\u7684CHROME_PATH\u5982\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CHROME_PATH=\"C:\\\\Program Files\\\\Google\\\\Chrome\\\\Application\\\\chrome.exe\"<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2\u3001LLM Settings \u5927\u9884\u8a00\u6a21\u578b\u8bbe\u7f6e<\/h3>\n\n\n\n<p>\u4f8b\u4e00\uff1a\u4f7f\u7528\u8c37\u6b4c\u7684gemini\u5927\u6a21\u578b\uff08\u6548\u679c\u597d\uff0c\u5728\u7ebf\uff0c\u6709\u514d\u8d39\u989d\u5ea6\uff09<\/p>\n\n\n\n<p>LLM Provider \u8bbe\u7f6e\u4e3a google<br>Model Name \u8bbe\u7f6e\u4e3a gemini-2.0-flash<\/p>\n\n\n\n<p>\u6765\u5230\u8c37\u6b4cGemini\u7684\u5b98\u7f51 https:\/\/aistudio.google.com\/apikey \u53f3\u4e0a\u89d2 \u201cCreate API Key\u201d \u521b\u5efa\u5bc6\u94a5<br>API Key \u8bbe\u7f6e\u4e3a \u5bc6\u94a5<\/p>\n\n\n\n<p>\u4f8b\u4e8c\uff1a\u672c\u5730Ollama\u8fd0\u884c DeepSeek\uff08\u5403\u663e\u5361\u914d\u7f6e\uff0c\u901f\u5ea6\u6162\uff0c\u5168\u514d\u8d39\uff09<\/p>\n\n\n\n<p>\u5728\u3010\u5de5\u5177\u4e0b\u8f7d\u3011\u4e2d\uff0c\u627e\u5230OllamaSetup .exe\u53cc\u51fb\u5b89\u88c5\uff0c\u65e0\u8111\u4e0b\u4e00\u6b65\u3002<br>\u6839\u636e\u81ea\u5df1\u7684\u914d\u7f6e\u9009\u62e9\u5b89\u88c5\u4e0d\u540c\u5927\u5c0f\u7684DeepSeek<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ollama run deepseek-r1:70b\nollama run deepseek-r1:32b\nollama run deepseek-r1:14b\nollama run deepseek-r1:8b\nollama run deepseek-r1:7b<\/code><\/pre>\n\n\n\n<p>LLM Provider \u8bbe\u7f6e\u4e3a ollama<br>Model Name \u8bbe\u7f6e\u4e3a \u81ea\u5df1\u5b89\u88c5\u7684\u6a21\u578b\u540d\u5b57\uff0c\u5982\uff1adeepseek-r1:32b<br>API Key \u8bbe\u7f6e\u4e3a \u968f\u4fbf\u586b<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u4e09\u3001\u4f7f\u7528 Browser-Use<\/h1>\n\n\n\n<p>\u5728\u201c&nbsp;Run Agent\u201d \u4e2d \u586b\u5165\u81ea\u5df1\u7684\u63d0\u793a\u8bcd\uff0c\u6bd4\u5982\uff1a<br><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">\u8bf7\u6253\u5f00https:\/\/bilibili.com \u641c\u7d22\u535a\u4e3b&#8221;\u7a0b\u5e8f\u5458\u54c8\u5229&#8221;\uff0c\u6765\u5230\u7a0b\u5e8f\u5458\u54c8\u5229\u7684\u4e3b\u9875\uff0c\u5e76\u4e14\u6253\u5f00\u7b2c\u4e00\u4e2a\u89c6\u9891\u8fdb\u884c\u64ad\u653e<\/mark><\/strong><br>\u70b9\u51fb \u3010<strong>Run Agent<\/strong>\u3011<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b80\u4ecb \u6700\u8fd1\u8fd9\u51e0\u5468\uff0cMCP\u7684\u6982\u5ff5\u975e\u5e38\u706b\u554a\uff0c\u4e0d\u8fc7\u6bd4\u8d77\u600e\u4e48\u4f7f\u7528mcp\uff0c\u6211\u66f4\u60f3\u77e5\u9053\u6211\u8be5\u8ba9mcp\uff0c\u8be5\u8ba9ai\u4e3a\u6211\u505a\u4ec0\u4e48\u3002\u6211&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":1104,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1102","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"views":4373,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/posts\/1102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hali.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1102"}],"version-history":[{"count":3,"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/posts\/1102\/revisions"}],"predecessor-version":[{"id":1106,"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/posts\/1102\/revisions\/1106"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/media\/1104"}],"wp:attachment":[{"href":"https:\/\/hali.life\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hali.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hali.life\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}