community_usecase/qwen3_mcp/README.md
This project demonstrates how to use the CAMEL-AI OWL framework with Qwen3 large language model through MCP (Model Context Protocol). The example showcases improved terminal output formatting, markdown log generation, and seamless integration with MCP servers.
Clone the OWL repository:
git clone https://github.com/camel-ai/owl
cd owl
Install dependencies:
pip install -r requirements.txt
Add your Qwen API key to the .env file:
QWEN_API_KEY=your_api_key_here
Configure MCP servers in mcp_sse_config.json
(Optional) Install Playwright MCP manually:
npm install -D @playwright/mcp
Note: This step is optional as the config will auto-install Playwright MCP through npx.
This example integrates with two powerful MCP servers:
edgeone-pages-mcp)EdgeOne Pages MCP is a specialized service that enables:
Configuration in mcp_sse_config.json:
"edgeone-pages-mcp": {
"type": "sse",
"url": "https://mcp.api-inference.modelscope.cn/sse/fcbc9ff4e9704d"
}
playwright)Playwright MCP is a powerful browser automation tool that allows:
Configuration in mcp_sse_config.json:
"playwright": {
"command": "npx",
"args": [
"@playwright/mcp@latest"
]
}
Installation Options:
npx.npm install -D @playwright/mcp
"playwright": {
"command": "npx",
"args": [
"@playwright/mcp"
]
}
Run the script with a task prompt:
python run_mcp_qwen3.py "Your task description here"
If no task is provided, a default task will be used.
Terminal Output: Colorful, formatted output showing:
Markdown Logs: Detailed conversation logs saved to conversation_logs/ directory
mcp_sse_config.json to add or remove MCP serversconstruct_society functionround_limit parameterThis implementation extends the standard OWL run_mcp.py script with: