
adspower/adspower-browser 是一个从 https://github.com/adspower/adspower-browser. 导入的 MCP 服务器候选服务器。
概览
adspower/adspower-browser 是一个从 https://github.com/adspower/adspower-browser. 导入的 MCP 服务器候选服务器。
概述(AI 翻译)
adspower-browser 技能
Claude Code/Codex/Cursor/OpenCode/Gemini GL
OpenClaw(小龙虾)
爱马仕agent(爱马仕)
AdsPower CLI
AdsPower CLI 与 AdsPower 客户端完全隔离,独立运行,不共享本地缓存/内核等。然而,CLI 也支持无头模式来运行 AdsPower 客户端。
AdsPower客户端无头模式:
广告力量 MCP
克劳德代码:
军规:
OpenClaw:
光标:进入光标设置 -> MCP -> 添加新MCP服务器,然后粘贴以下内容:
OpenCode:更新 ~/.config/opencode/opencode.json
如何使用?
要求
-
广告力量
-
节点版本18及以上
版本兼容性
部分 API 由 AdsPower 客户端版本逐步引入。
如果客户端尚未升级到包含特定API的版本,请求可能会返回Not found。
当这种情况发生时:
- 先将 AdsPower 客户端升级到最新的补丁版本。
- 然后重新尝试相同的命令/API。
端口配置
端口参数指定了AdsPower本地API端口。默认为50325。
优先顺序:
- 命令行参数
--port(最高优先级)
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
AdsPower Skill & MCP & CLI
adspower-browser Skill
Claude Code/Codex/Cursor/OpenCode/Gemini GL
npx skills add https://github.com/adspower/adspower-browser --skill adspower-browser
OpenClaw(小龙虾)
npx clawhub@latest install adspower-browser --force
Hermes agent(爱马仕)
hermes skills install https://github.com/AdsPower/adspower-browser/blob/main/skills/adspower-browser --force
AdsPower CLI
The AdsPower CLI is completely isolated from the AdsPower client, runs independently, and does not share local caches/kernels, etc. However, the CLI also supports headless mode for operating the AdsPower client.
npm install -g adspower-browser # 安装
ads start -k # 启动 adspower
ads stop # 停止 adspower
ads restart # 重启 adspower
ads status # 查询 adspower 运行状态
ads get-browser-list # 获取配置文件列表
... #查看 https://github.com/AdsPower/adspower-browser/blob/main/packages/adspower-browser/README.MD
AdsPower client headless mode:
AdsPower Global:
Windows: "AdsPower Global.exe" --headless=true --api-key=your_api_key --api-port=50325
MacOS:"/Applications/AdsPower Global.app/Contents/MacOS/AdsPower Global" --args --headless=true --api-key=your_api_key --api-port=50325
Linux:adspower_global --headless=true --api-key=your_api_key --api-port=50325
AdsPower MCP
Claude Code:
claude mcp add adspower-local-api -e PORT="50325" -e API_KEY="your_api_key" -- npx -y local-api-mcp-typescript
Codex:
codex mcp add --env PORT="50325" --env API_KEY="your_api_key" adspower-local-api -- npx -y local-api-mcp-typescript
OpenClaw:
openclaw mcp set adspower-local-api '{"command":"npx","args":["-y","local-api-mcp-typescript"],"env":{"PORT":"50325","API_KEY":"your_api_key"}}'
Cursor: Go to Cursor Settings -> MCP -> Add New MCP Server, and then paste the following content:
{
"mcpServers": {
"adspower-local-api": {
"command": "npx",
"args": ["-y", "local-api-mcp-typescript"],
"env": {
"PORT": "50325",
"API_KEY": "your_api_key"
}
}
}
}
OpenCode: update ~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"adspower-local-api": {
"command": "npx",
"args": ["-y", "local-api-mcp-typescript"],
"env": {
"PORT": "50325",
"API_KEY": "your_api_key"
}
}
}
}
How to use?
Requirements
-
Node version 18 or greater
Version Compatibility
Some APIs are introduced incrementally by AdsPower client version.
If the client has not been upgraded to a version that includes a specific API, requests may return Not found.
When this happens:
- Upgrade AdsPower client to the latest patch version first.
- Then retry the same command/API.
安装
npx -y local-api-mcp-typescript配置
{
"mcpServers": {
"adspower-local-api": {
"command": "npx",
"args": ["-y", "local-api-mcp-typescript"],
"env": {
"PORT": "50325",
"API_KEY": "your_api_key"
}
}
}
}