1. Prepare your phone and computer
Install PhoneMCP on Android and start its server. On your computer, install and sign in to Gemini CLI. This guide uses the command-line client, not the Gemini mobile app or website.
Choose one connection below. Local Wi-Fi is free and requires the computer to reach the phone's network address. Remote access works across networks and includes a 30-day trial, then a subscription. See PhoneMCP pricing.
2. Pair through Remote access
- Switch on Remote access in PhoneMCP. Keep the phone online and its 8-character pairing code ready.
- In a terminal on your computer, add the phone:
gemini mcp add --scope user --transport sse phone https://phonemcp.ai/sse
Start or restart Gemini CLI. Run:
/mcp auth phone
Complete authentication in the browser with the pairing code shown in PhoneMCP. Then use /mcp list to check the connection. Keep a browser available on the same computer for the sign-in callback.
The command explicitly selects SSE, the transport exposed by PhoneMCP. You do not need to create an OAuth client or enter a client secret.
Or connect over local Wi-Fi
Use this instead of remote pairing when your computer can reach the phone directly. Start the server, then copy the address and access token shown in PhoneMCP into this command:
gemini mcp add --scope user --transport sse --header "Authorization: Bearer <token>" phone http://<phone-ip>:3001/sse
Replace both placeholders and use the port displayed by your app. User scope keeps this configuration outside your project. Keep the token and shell history private. Local HTTP is unencrypted; use it only on a trusted private network.
Restart Gemini CLI and run /mcp list. Local access uses the phone's token, so no remote pairing code is needed. Use a different server name, such as phone-local, if you want to keep both configurations.
3. Try a phone tool
Enable Sensors in PhoneMCP, then run /mcp reload in Gemini CLI to refresh its tool list. Ask:
Use phone_sensor. List the sensors available on my phone and explain one reading. Do not invent missing readings.
Review Gemini's tool request and allow the reading you asked for. Look for a tool result from the phone. Available sensors vary by device; move the phone and compare another reading.
After that works, enable Files or Camera for a specific task and review any Android permission request. Try another phone task. Your connected AI service processes the data you request.
If the phone is not available
No tools appear after pairing
Enable Sensors in PhoneMCP and run /mcp reload in Gemini CLI. Check that the phone server is still running. Pairing identifies your phone; the app's tool switches control what it exposes.
The pairing browser does not open
Run /mcp auth phone on a computer with browser access. Check the terminal for an authorization link. Headless or remote shell sessions may not be able to receive the local browser callback.
Local Wi-Fi cannot reach the phone
Check the current address, port and token in PhoneMCP. Guest networks can isolate devices. Use a trusted network with device-to-device access, or choose Remote access.
Gemini on Android does not show this connection
This setup belongs to Gemini CLI on your computer. It does not add a connection to the Gemini Android app. PhoneMCP's on-device AppFunctions integration is a separate feature; see the app's AppFunctions notes.
References and other agents
Client instructions checked on 31 October 2026 against Gemini CLI's MCP documentation and command reference.