community_usecase/Puppeteer MCP/README.md
A Streamlit app powered by the CAMEL-AI OWL framework and MCP (Model Context Protocol) that connects to a Puppeteer-based MCP server. It allows natural language task execution via autonomous agents, combining local tool access with browser automation.
export OPENAI_API_KEY="your_api_key_here"
Clone the repository
git clone https://github.com/camel-ai/owl.git
cd owl/community_usecase/Puppeteer MCP
Create a virtual environment
python -m venv venv
source venv/bin/activate # macOS/Linux
venv\\Scripts\\activate # Windows
Install Python dependencies
pip install -r requirements.txt
Environment Variables
Create a .env file in the root directory with:
OPENAI_API_KEY=your_openai_key_here
MCP Server Config
Ensure mcp_servers_config.json is present and contains:
{
"mcpServers": {
"puppeteer": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/mcp-server-puppeteer"]
}
}
}
Run the Streamlit app:
streamlit run demo.py
This will open the UI in your browser. Enter a natural language task (e.g., βSearch for the weather in Parisβ) and click Run Task.
construct_society function.Puppeteer-MCP/
βββ demo.py # Streamlit frontend
βββ mcp_servers_config.json # MCP config
βββ .env # Secrets and keys
Let your agents browse and automate the web for you!