local-api-mcp-python

local-api-mcp-python

2.5

The AdsPower LocalAPI MCP Server is designed to work with the AdsPower browser LocalAPI, allowing for operations such as starting and configuring browsers via LLMs. It supports environments like Claude Desktop, making it highly integrative and functional for browser automation tasks.

AdsPower LocalAPI MCP Server Python

A Model Context Protocol server that AdsPower browser LocalAPI. This server enables LLMs to interact with start browser, create browser, update browser fingerprint config ...

Usage with Claude Desktop

Talk to LLMs to create browser: Create an Android UA browser using Chrome 134

Claude desktop

Usage width Cursor

Cursor

System requirements

  • AdsPower
  • Python 3.10 or higher installed.

Set up your environment, install uv

First, let’s install uv and set up our Python project and environment:

MacOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
Windows
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Development

# 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 .

To use with Claude Desktop, add the server config:

On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json On 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"
        ]
        }
    }
}