Skip to main content
Glama
AdsPower LocalAPI MCP Server

AdsPower LocalAPI MCP Server

Official
by AdsPower

AdsPower CLI & MCP

adspower-browserスキルの追加

adspower-browserスキルを使用すると、AIがMCPサーバーなしでCLI経由でAdsPowerを操作できるようになります。エディタに以下のように追加してください:

環境

追加方法

Cursor

npx skills add AdsPower/adspower-browser

Claude Code

npx skills add AdsPower/adspower-browser

GPT / Codex

add-skillがサポートされている場合: npx skills add AdsPower/adspower-browser。それ以外の場合は、skills/adspower-browser/からエージェントのスキルディレクトリ(例: ~/.codex/skills/adspower-browser/)にスキルをコピーしてください。

AdsPower LocalAPI MCPサーバー

AdsPowerブラウザのLocalAPIを操作するためのModel Context Protocolサーバーです。このサーバーにより、LLMはv2 APIを使用してAdsPowerブラウザプロファイルと対話でき、プロファイルの作成、更新、削除、グループ管理、ブラウザ操作の自動化が可能になります。

Claude Desktopでの使用方法

LLMに話しかけてブラウザを作成: Create an Android UA browser using Chrome 134

Claude desktop

LLMに話しかけてブラウザを作成: Help me with random UA, random fingerprint, random cookie generation, create 3 browsers, use 134 cores, and open them

Claude desktop

使用方法

要件

バージョンの互換性

一部のAPIはAdsPowerクライアントのバージョンアップに伴い段階的に導入されます。 特定のAPIを含むバージョンにクライアントがアップグレードされていない場合、リクエストが Not found を返すことがあります。

その場合は以下を行ってください:

  • まずAdsPowerクライアントを最新のパッチバージョンにアップグレードしてください。

  • その後、同じコマンド/APIを再試行してください。

インストール

Claude Desktopで使用するには、サーバー設定を追加します:

macOSの場合: ~/Library/Application Support/Claude/claude_desktop_config.json Windowsの場合: %APPDATA%/Claude/claude_desktop_config.json

MacOS / Linux
{
  "mcpServers": {
    "adspower-local-api": {
      "command": "npx",
      "args": ["-y", "local-api-mcp-typescript"]
    }
  }
}
Windows
{
  "mcpServers": {
    "adspower-local-api": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "local-api-mcp-typescript"]
    }
  }
}

設定パラメータ

MCPサーバーは、コマンドライン引数または環境変数による設定をサポートしています。

ポート設定

ポートパラメータはAdsPower Local APIのポートを指定します。デフォルトは 50325 です。

優先順位:

  1. コマンドライン引数 --port (最高優先度)

  2. 環境変数 PORT (中優先度)

  3. デフォルト値 50325 (最低優先度)

例:

コマンドライン引数を使用する場合:

{
  "mcpServers": {
    "adspower-local-api": {
      "command": "npx",
      "args": ["-y", "local-api-mcp-typescript", "--port", "50325"]
    }
  }
}

環境変数を使用する場合:

{
  "mcpServers": {
    "adspower-local-api": {
      "command": "npx",
      "args": ["-y", "local-api-mcp-typescript"],
      "env": {
        "PORT": "50325"
      }
    }
  }
}

APIキー設定

APIキーはAdsPower APIの認証に使用されます。リクエストの Authorization: Bearer <api-key> ヘッダーとして送信されます。

優先順位:

  1. コマンドライン引数 --api-key (最高優先度)

  2. 環境変数 API_KEY (中優先度)

  3. デフォルト値なし (指定がない場合、リクエストにAPIキーヘッダーは含まれません)

例:

コマンドライン引数を使用する場合:

{
  "mcpServers": {
    "adspower-local-api": {
      "command": "npx",
      "args": ["-y", "local-api-mcp-typescript", "--api-key", "your-api-key-here"]
    }
  }
}

環境変数を使用する場合:

{
  "mcpServers": {
    "adspower-local-api": {
      "command": "npx",
      "args": ["-y", "local-api-mcp-typescript"],
      "env": {
        "API_KEY": "your-api-key-here"
      }
    }
  }
}

組み合わせ設定

両方のパラメータを同時に使用できます。コマンドライン引数は環境変数を上書きします:

{
  "mcpServers": {
    "adspower-local-api": {
      "command": "npx",
      "args": ["-y", "local-api-mcp-typescript", "--port", "50326", "--api-key", "new-key"],
      "env": {
        "PORT": "50325",
        "API_KEY": "old-key"
      }
    }
  }
}

この例では、サーバーは port: 50326 および apiKey: new-key を使用します(コマンドライン引数が環境変数を上書きするため)。

Claude desktop MCP

またはCursorで使用 Cursor

Related MCP server: Puppeteer MCP Server

開発

# clone
git clone https://github.com/AdsPower/adspower-browser.git
cd adspower-browser

# install (monorepo)
pnpm install

# build all packages
pnpm run build

ローカルでのMCP開発については、Claude DesktopでMCPパッケージを指定してください:

"mcpServers": {
  "adspower-local-api": {
    "command": "node",
    "args": ["<Replace Your Project Path>/adspower-browser/packages/local-api-mcp/build/index.js"]
  }
}

Available Tools

27 tools
click-elementC

Click the element

Inputs: selector (required).

close-browserC

Close the browser

Inputs: userId (required).

connect-browser-with-wsC

Connect the browser with the ws url

Inputs: wsUrl (required), userId, serialNumber.

create-browserD

Create a browser

Inputs: groupId (required), userProxyConfig (required), domainName, openUrls, +8 more.

create-groupC

Create a browser group

Inputs: groupName (required), remark.

delete-browserC

Delete the browser

Inputs: userIds (required).

drag-elementD

Drag the element

Inputs: selector (required), targetSelector (required).

evaluate-scriptD

Evaluate the script

Inputs: script (required).

fill-inputC

Fill the input

Inputs: selector (required), text (required).

get-application-listC

Get the list of applications

Inputs: size.

get-browser-listC

Get the list of browsers

Inputs: groupId, size, page, id, +3 more.

get-group-listC

Get the list of groups

Inputs: groupName, size, page.

get-opened-browserB

Get the list of opened browsers

Inputs: no named parameters.

get-page-htmlB

Get the html content of the page

Inputs: no named parameters.

get-page-visible-textB

Get the visible text content of the page

Inputs: no named parameters.

hover-elementD

Hover the element

Inputs: selector (required).

iframe-click-elementC

Click the element in the iframe

Inputs: selector (required), iframeSelector (required).

move-browserC

Move browsers to a group

Inputs: groupId (required), userIds (required).

open-browserD

Open the browser, both environment and profile mean browser

Inputs: serialNumber, userId, ipTab, launchArgs, +2 more.

open-new-pageC

Open a new page

Inputs: no named parameters.

press-keyD

Press the key

Inputs: key (required), selector.

screenshotC

Get the screenshot of the page

Inputs: savePath, isFullPage.

scroll-elementC

Scroll the element

Inputs: selector (required).

select-optionD

Select the option

Inputs: selector (required), value (required).

update-browserD

Update the browser

Inputs: userId (required), domainName, openUrls, cookie, +9 more.

update-groupC

Update the browser group

Inputs: groupId (required), groupName (required), remark.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.8/5.0

    Scored across 27 tools

    Disambiguation4/5

    Most tools have distinct purposes, such as create-browser vs. open-browser, but some overlap exists, like get-browser-list and get-opened-browser, which could cause confusion. The descriptions help clarify, but the boundaries between these list tools are not perfectly clear.

    Naming Consistency5/5

    All tool names follow a consistent verb-noun pattern with hyphens, such as create-browser, get-browser-list, and navigate. There are no deviations in style or convention, making the naming highly predictable and readable throughout the set.

    Tool Count3/5

    With 27 tools, the count is borderline high for a browser automation server, as it may feel heavy and complex for agents to navigate. However, given the domain's scope covering browser management, groups, and page interactions, it is not extreme but could benefit from consolidation.

    Completeness5/5

    The tool set provides comprehensive coverage for browser automation, including CRUD operations for browsers and groups, navigation, element interactions, and page content retrieval. There are no obvious gaps, and the surface supports full lifecycle management and interaction workflows.

    Maintenance

    ActivityMaintained
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      A Model Context Protocol server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment.
      32
      14,136 npm
      5,674
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that provides browser automation capabilities using Playwright, enabling LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment.
      19
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that enables LLMs to automate web browsers using Puppeteer, allowing navigation, screenshots, form filling, and JavaScript execution in a real browser environment.
      2
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      A Model Context Protocol server that provides browser automation capabilities using Puppeteer, enabling LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment.
      7
      29,827 npm
      1
      MIT