picoclaw-mcp-server
Enables browser automation with stealth features, GitHub integration, and persistent opencode repository access through MCP tools.
README
picoclaw-mcp-server
A Model Context Protocol (MCP) server with browser automation, GitHub integration, and persistent opencode repository support.
Features
Browser Automation
- Human-like behavior: Random delays, bezier-curve mouse movements, viewport/user-agent randomization
- Stealth mode: Avoids bot detection using playwright-stealth
- Full browser control: Navigate, click, type, scroll, hover, screenshot, get page content
GitHub Integration
- List repository files
- Read file contents
- Search code
- Search repositories
- Get repository information
OpenCode Integration (Persistent)
- Auto-clone/pull: Automatically clone or pull your opencode repository on startup
- Heartbeat refresh: Periodic automatic refresh (configurable interval)
- Manual refresh: MCP tools to force pull/refresh
- Local file access: Read, list, and search your opencode repository
Utilities
- Web search via DuckDuckGo
- URL fetching
Installation
# Clone the repository
git clone https://github.com/Evansxm/picoclaw-mcp-server.git
cd picoclaw-mcp-server
# Create virtual environment
python -m venv venv
source venv/bin/activate # Linux/Mac
# venv\Scripts\activate # Windows
# Install dependencies
pip install -r requirements.txt
# Install Playwright browsers
playwright install chromium
Configuration
Environment Variables
| Variable | Default | Description |
|---|---|---|
GITHUB_TOKEN |
- | GitHub Personal Access Token for higher rate limits |
HEADLESS |
true |
Run browser in headless mode |
STEALTH_MODE |
true |
Enable stealth mode to avoid bot detection |
OPENCODE_ENABLED |
true |
Enable opencode repository integration |
OPENCODE_REPO_URL |
- | URL of your opencode repository |
OPENCODE_LOCAL_PATH |
~/opencode-clone |
Local path to clone the repository |
OPENCODE_REFRESH_INTERVAL |
1800 |
Seconds between automatic refreshes |
Configuration File
You can also configure via ~/.picoclaw/config.json:
{
"opencode": {
"enabled": true,
"repo_url": "https://github.com/yourusername/your-opencode-repo",
"local_path": "~/opencode-clone",
"refresh_interval": 1800,
"github_token": "your-github-token"
}
}
Claude Desktop Configuration
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"picoclaw": {
"command": "/path/to/picoclaw-mcp-server/venv/bin/python",
"args": ["/path/to/picoclaw-mcp-server/server.py"],
"env": {
"GITHUB_TOKEN": "your-github-token-here",
"OPENCODE_ENABLED": "true",
"OPENCODE_REPO_URL": "https://github.com/yourusername/your-repo",
"HEADLESS": "false",
"STEALTH_MODE": "true"
}
}
}
}
Cursor Configuration
Add to Cursor settings (Settings → Tools → MCP):
{
"mcpServers": {
"picoclaw": {
"command": "python",
"args": ["/absolute/path/to/picoclaw-mcp-server/server.py"],
"env": {
"GITHUB_TOKEN": "your-github-token-here",
"OPENCODE_ENABLED": "true"
}
}
}
}
Available Tools
OpenCode Tools
| Tool | Description |
|---|---|
| `opencode | Force pull/refresh the opencode repository |
_pull_repoopencode_clone_repo` |
Clone or ensure repository exists locally |
opencode_list_files |
List files in the opencode repository |
opencode_read_file |
Read a file from the opencode repository |
opencode_search_code |
Search for code in the opencode repository |
opencode_get_status |
Get status of the opencode repository |
Browser Tools
| Tool | Description |
|---|---|
browser_navigate |
Navigate to a URL |
browser_click |
Click element by CSS selector |
browser_click_text |
Click element by text content |
browser_type |
Type text into input |
browser_scroll |
Scroll the page |
browser_screenshot |
Take a screenshot |
browser_get_screenshot_base64 |
Get screenshot as base64 |
browser_get_page_content |
Get page text content |
browser_get_page_html |
Get page HTML source |
browser_hover |
Hover over element |
browser_wait |
Wait for seconds |
browser_close |
Close browser |
GitHub Tools
| Tool | Description |
|---|---|
list_repo_files |
List files in a repository |
read_file |
Read file contents |
search_code |
Search code on GitHub |
search_repositories |
Search repositories |
get_repository_info |
Get repository information |
Utility Tools
| Tool | Description |
|---|---|
web_search |
Search the web via DuckDuckGo |
fetch_url |
Fetch URL content |
Systemd Service (Always-On)
For persistent always-on behavior on Linux:
# Copy the service file
sudo cp picoclaw-mcp.service /etc/systemd/system/
# Reload systemd
sudo systemctl daemon-reload
# Enable and start the service
sudo systemctl enable picoclaw-mcp
sudo systemctl start picoclaw-mcp
# Check status
sudo systemctl status picoclaw-mcp
Systemd Service Customization
Edit the service file to customize:
[Service]
Environment="OPENCODE_REPO_URL=https://github.com/yourusername/your-repo"
Environment="OPENCODE_REFRESH_INTERVAL=1800"
Environment="HEADLESS=true"
Development
# Run with MCP Inspector
uv run mcp dev server.py
# Run directly
python server.py
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。