这是一个与AdsPower浏览器LocalAPI交互的模型上下文协议服务器。该服务器使大型语言模型能够与启动浏览器、创建浏览器、更新浏览器指纹配置等功能进行交互...
通过大型语言模型创建浏览器:使用Chrome 134创建一个Android UA浏览器

通过大型语言模型创建浏览器:帮助我生成随机UA、随机指纹、随机cookie,创建3个浏览器,使用134核心,并打开它们

Node版本18或更高
要在Claude Desktop中使用,请添加服务器配置:
在macOS上:~/Library/Application Support/Claude/claude_desktop_config.json 在Windows上:%APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"adspower-local-api": {
"command": "npx",
"args": ["-y", "local-api-mcp-typescript"]
}
}
}
{
"mcpServers": {
"adspower-local-api": {
"command": "cmd",
"args": ["/c", "npx", "-y", "local-api-mcp-typescript"]
}
}
}

或者在Cursor中使用

# git克隆
git clone https://github.com/AdsPower/local-api-mcp-typescript.git
# 安装包
cd local-api-mcp-typescript && npx pnpm i
# 构建
npm run build
# 将服务器添加到您的claude_desktop_config.json
"mcpServers": {
"adspower-local-api": {
"command": "node",
"args": [
"<替换您的项目路径>/local-api-mcp-typescript/build/index.js"
]
}
}
open_browser
serialNumber (字符串,可选):要打开的浏览器序列号userId (字符串,可选):要打开的浏览器IDclose_browser
userId (字符串):要停止的浏览器IDcreate_browser
groupId (字符串):浏览器的组IDdomainName (字符串,可选):域名openUrls (字符串数组,可选):要打开的URLcookie (字符串,可选):浏览器cookieusername (字符串,可选):用户名password (字符串,可选):密码system (字符串,可选):系统类型name (字符串,可选):浏览器名称country (字符串,可选):国家sysAppCateId (字符串,可选):系统应用类别IDstorageStrategy (数字,可选):存储策略userProxyConfig (对象):代理配置fingerprintConfig (对象,可选):浏览器指纹配置update_browser
userId (字符串):要更新的浏览器用户IDdelete_browser
userIds (字符串数组):要删除的浏览器用户IDget_browser_list
groupId (字符串,可选):浏览器的组IDsize (数字,可选):页面大小id (字符串,可选):浏览器IDserialNumber (字符串,可选):浏览器序列号sort (枚举,可选):排序字段 ('serial_number' | 'last_open_time' | 'created_time')order (枚举,可选):排序顺序 ('asc' | 'desc')get-opened_browser
move_browser
groupId (字符串):目标组IDuserIds (字符串数组):要移动的浏览器IDcreate_group
groupName (字符串):要创建的组名称remark (字符串,可选):组备注update_group
groupId (字符串):要更新的组IDgroupName (字符串):新的组名称remark (字符串或null,可选):新的组备注,设置为null以清除get_group_list
name (字符串,可选):组名称size (数字,可选):页面大小get-application_list
size (数字,可选):页面大小proxy_soft (枚举):代理软件类型 ('brightdata', 'brightauto', 'oxylabsauto'等)proxy_type (枚举,可选):代理类型 ('http', 'https', 'socks5', 'no_proxy')proxy_host (字符串,可选):代理主机proxy_port (字符串,可选):代理端口proxy_user (字符串,可选):代理用户名proxy_password (字符串,可选):代理密码proxy_url (字符串,可选):代理URLglobal_config (枚举,可选):全局配置 ('0' | '1')automatic_timezone (枚举,可选):自动时区 ('0' | '1')timezone (字符串,可选):时区language (字符串数组,可选):语言flash (字符串,可选):Flash版本fonts (字符串数组,可选):字体列表webrtc (枚举,可选):WebRTC设置 ('disabled' | 'forward' | 'proxy' | 'local')browser_kernel_config (对象,可选):
version (字符串,可选):浏览器版本type (枚举,可选):浏览器类型 ('chrome' | 'firefox')random_ua (对象,可选):
ua_version (字符串数组,可选):用户代理版本ua_system_version (枚举数组,可选):系统版本tls_switch (枚举,可选):TLS开关 ('0' | '1')tls (字符串,可选):TLS配置