浏览器自动化API服务

AdsPower LocalAPI MCP Server Python是一个基于Python的模型上下文协议服务器,允许大型语言模型(LLMs)通过API与AdsPower浏览器交互,实现创建、启动和更新浏览器指纹配置等功能。

  • by AdsPower
  • Python
  • 本地部署
  • 7 星标
  • 更新于
在 GitHub 查看 AdsPower/local-api-mcp-python

使用说明

AdsPower本地API MCP服务器Python

AdsPower浏览器LocalAPI的模型上下文协议服务器。此服务器使LLM能够与启动浏览器、创建浏览器、更新浏览器指纹配置进行交互。..

使用Claude Desktop

与LLM交谈以创建浏览器: Create an Android UA browser using Chrome 134

使用宽度光标

系统要求

  • AdsPower
  • 已安装Python 3.10或更高版本。

设置您的环境,安装uv

首先,让我们安装uv并设置我们的Python项目和环境:

MacOS/Linux

curl -LsSf https://astral.sh/uv/install.sh | sh

视窗

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

# Add the server to your claude_desktop_config.json
{
    "mcpServers": {
        "adspower-local-api": {
        "command": "uv",
        "args": [
            "--directory",
            "<Replace Your Project Path>/local-api-mcp-python",
            "run",
            "main.py"
        ]
        }
    }
}