AdsPower LocalAPI MCP Server is a Model Context Protocol server that enables large language models (LLMs) to interact with AdsPower browser's LocalAPI. This server allows you to create, manage, and automate browser instances with custom fingerprints directly through natural language commands to LLMs like Claude.
Before installing the MCP server, you need:
To integrate the server with Claude Desktop, you need to modify the Claude configuration file:
Add the following to ~/Library/Application Support/Claude/claude_desktop_config.json
:
{
"mcpServers": {
"adspower-local-api": {
"command": "npx",
"args": ["-y", "local-api-mcp-typescript"]
}
}
}
Add the following to %APPDATA%/Claude/claude_desktop_config.json
:
{
"mcpServers": {
"adspower-local-api": {
"command": "cmd",
"args": ["/c", "npx", "-y", "local-api-mcp-typescript"]
}
}
}
After installation, you can interact with the AdsPower browser through natural language commands in Claude. Here are some examples of what you can do:
You can use natural language to:
You can tell Claude:
open_browser: Opens a browser instance
serialNumber
(optional), userId
(optional)close_browser: Closes a browser instance
userId
(required)create_browser: Creates a new browser with custom settings
groupId
: The group ID for the browsername
: Browser name (optional)system
: System type (optional)openUrls
: URLs to open (optional)userProxyConfig
: Proxy configurationfingerprintConfig
: Browser fingerprint configuration (optional)update_browser: Updates an existing browser's settings
userId
to identify the browserdelete_browser: Deletes browser instances
userIds
(array of browser IDs to delete)get_browser_list: Retrieves a list of browsers
groupId
(optional), size
(optional), id
(optional), etc.get-opened_browser: Gets a list of currently opened browsers
move_browser: Moves browsers between groups
groupId
(target group), userIds
(browsers to move)create_group: Creates a new browser group
groupName
, remark
(optional)update_group: Updates a group's settings
groupId
, groupName
, remark
(optional)get_group_list: Gets a list of browser groups
name
(optional), size
(optional)get-application_list: Gets a list of applications
size
(optional)When creating or updating a browser, you can specify proxy settings using the userProxyConfig
object:
{
"proxy_soft": "brightdata",
"proxy_type": "http",
"proxy_host": "example.com",
"proxy_port": "8080",
"proxy_user": "username",
"proxy_password": "password"
}
You can customize browser fingerprints with the fingerprintConfig
object:
{
"automatic_timezone": "1",
"timezone": "America/New_York",
"language": ["en-US", "en"],
"browser_kernel_config": {
"version": "134",
"type": "chrome"
},
"random_ua": {
"ua_version": ["134"],
"ua_system_version": ["windows"]
}
}
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.