To expose Puma Browser MCP server running on emulator to host machine need to forward MCP server port using adb:
adb forward tcp:32423 tcp:32423
Also need to ensure that MCP server uses the same port in MCP server settings in Puma Browser (by default port is 8080 but it may be already used on host machine - in this case port needs to be changed)
To debug MCP server we can use MCP inspector app which can be installed and run using next command:
npx @modelcontextprotocol/inspector
Then in browser need to enter IP address and port of device with Puma Browser (e.g. http://127.0.0.1:32423 to connect to emulator), also need to select SSE as transport and select Direct connection
To integrate Puma Browser MCP tools into Claude desktop need to modify developer config in settings and then restart Claude Desktop
"mcpServers": {
"puma-browser": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"http://127.0.0.1:32423",
"--allow-http",
"--transport",
"sse-only"
]
}
},