
AdsPower LocalAPI MCP Server Python

2025.03.31
3
Python浏览器自动化浏览器自动化
AdsPower LocalAPI MCP Server Python 是一个基于 Model Context Protocol 的服务器,用于与 AdsPower 浏览器 LocalAPI 进行交互。该服务器使 LLMs(大型语言模型)能够启动浏览器、创建浏览器、更新浏览器指纹配置等。
View on GitHub
Overview
基本能力
产品定位
AdsPower LocalAPI MCP Server Python 是一个用于浏览器自动化的工具,特别适用于通过 LLMs 控制和管理浏览器实例的场景。
核心功能
- 启动浏览器
- 创建浏览器实例
- 更新浏览器指纹配置
- 与 LLMs 交互实现浏览器自动化
适用场景
- 通过 LLMs 自动化浏览器操作
- 浏览器指纹配置管理
- 浏览器实例的创建和管理
工具列表
- AdsPower 浏览器:用于实际的浏览器操作和管理
- Claude Desktop:用于与 LLMs 交互并控制浏览器
- Cursor:另一个可能的交互工具(文档中未详细说明)
常见问题解答
- 需要安装 AdsPower 浏览器
- 需要 Python 3.10 或更高版本
使用教程
使用依赖
- AdsPower
- Python 3.10 或更高版本
安装教程
MacOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
Windows
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
开发环境设置
# git clone
git clone https://github.com/AdsPower/local-api-mcp-python.git
# cd
cd local-api-mcp-python
# venv
uv venv
source .venv/bin/activate
# Install dependencies
uv pip install .
调试方式
要与 Claude Desktop 一起使用,需要添加服务器配置:
在 macOS 上:~/Library/Application Support/Claude/claude_desktop_config.json
在 Windows 上:%APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"adspower-local-api": {
"command": "uv",
"args": [
"--directory",
"<Replace Your Project Path>/local-api-mcp-python",
"run",
"main.py"
]
}
}
}