mirror of
https://github.com/browser-use/browser-use
synced 2026-05-06 17:52:15 +02:00
Remove outdated prompts and images from README.md to streamline content and improve clarity.
This commit is contained in:
78
README.md
78
README.md
@@ -80,11 +80,6 @@ Check out the [library docs](https://docs.browser-use.com) and [cloud docs](http
|
||||
|
||||
<br/><br/>
|
||||
|
||||
Prompt: Add my latest LinkedIn follower to my leads in Salesforce.
|
||||
|
||||

|
||||
|
||||
<br/><br/>
|
||||
|
||||
[Prompt](https://github.com/browser-use/browser-use/blob/main/examples/use-cases/find_and_apply_to_jobs.py): Read my CV & find ML jobs, save them to a file, and then start applying for them in new tabs, if you need help, ask me.'
|
||||
|
||||
@@ -92,21 +87,9 @@ https://github.com/user-attachments/assets/171fb4d6-0355-46f2-863e-edb04a828d04
|
||||
|
||||
<br/><br/>
|
||||
|
||||
[Prompt](https://github.com/browser-use/browser-use/blob/main/examples/browser/real_browser.py): Write a letter in Google Docs to my Papa, thanking him for everything, and save the document as a PDF.
|
||||
For more examples see the [examples](examples) folder.
|
||||
|
||||

|
||||
|
||||
<br/><br/>
|
||||
|
||||
[Prompt](https://github.com/browser-use/browser-use/blob/main/examples/custom-functions/save_to_file_hugging_face.py): Look up models with a license of cc-by-sa-4.0 and sort by most likes on Hugging face, save top 5 to file.
|
||||
|
||||
https://github.com/user-attachments/assets/de73ee39-432c-4b97-b4e8-939fd7f323b3
|
||||
|
||||
<br/><br/>
|
||||
|
||||
## More examples
|
||||
|
||||
For more examples see the [examples](examples) folder or join the [Discord](https://link.browser-use.com/discord) and show off your project. You can also see our [`awesome-prompts`](https://github.com/browser-use/awesome-prompts) repo for prompting inspiration.
|
||||
|
||||
## MCP Integration
|
||||
|
||||
@@ -115,7 +98,7 @@ Browser-use supports the [Model Context Protocol (MCP)](https://modelcontextprot
|
||||
### Use as MCP Server with Claude Desktop
|
||||
|
||||
Add browser-use to your Claude Desktop configuration:
|
||||
|
||||
This gives Claude Desktop access to browser automation tools for web scraping, form filling, and more.
|
||||
```json
|
||||
{
|
||||
"mcpServers": {
|
||||
@@ -129,62 +112,11 @@ Add browser-use to your Claude Desktop configuration:
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
This gives Claude Desktop access to browser automation tools for web scraping, form filling, and more.
|
||||
|
||||
### Connect External MCP Servers to Browser-Use Agent
|
||||
|
||||
Browser-use agents can connect to multiple external MCP servers to extend their capabilities:
|
||||
|
||||
```python
|
||||
import asyncio
|
||||
from browser_use import Agent, Tools, ChatOpenAI
|
||||
from browser_use.mcp.client import MCPClient
|
||||
|
||||
async def main():
|
||||
# Initialize tools
|
||||
tools = Tools()
|
||||
|
||||
# Connect to multiple MCP servers
|
||||
filesystem_client = MCPClient(
|
||||
server_name="filesystem",
|
||||
command="npx",
|
||||
args=["-y", "@modelcontextprotocol/server-filesystem", "/Users/me/documents"]
|
||||
)
|
||||
|
||||
github_client = MCPClient(
|
||||
server_name="github",
|
||||
command="npx",
|
||||
args=["-y", "@modelcontextprotocol/server-github"],
|
||||
env={"GITHUB_TOKEN": "your-github-token"}
|
||||
)
|
||||
|
||||
# Connect and register tools from both servers
|
||||
await filesystem_client.connect()
|
||||
await filesystem_client.register_to_tools(tools)
|
||||
|
||||
await github_client.connect()
|
||||
await github_client.register_to_tools(tools)
|
||||
|
||||
# Create agent with MCP-enabled tools
|
||||
agent = Agent(
|
||||
task="Find the latest pdf report in my documents and create a GitHub issue about it",
|
||||
llm=ChatOpenAI(model="gpt-4.1-mini"),
|
||||
tools=tools # Tools has tools from both MCP servers
|
||||
)
|
||||
|
||||
# Run the agent
|
||||
await agent.run()
|
||||
|
||||
# Cleanup
|
||||
await filesystem_client.disconnect()
|
||||
await github_client.disconnect()
|
||||
|
||||
asyncio.run(main())
|
||||
```
|
||||
|
||||
See the [MCP documentation](https://docs.browser-use.com/customize/mcp-server) for more details.
|
||||
|
||||
|
||||
|
||||
|
||||
<div align="center">
|
||||
Tell your computer what to do, and it gets it done.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user