Exposes the Gemini 2.5 Computer Use model as an MCP server so agents can hand it tasks and get information back.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add gemini-computer-use --env GEMINI_API_KEY='<GEMINI_API_KEY>' -- uvx computer-use-mcp~/.codex/config.toml
[mcp_servers.gemini-computer-use]
command = "uvx"
args = ["computer-use-mcp"]
env = { GEMINI_API_KEY = "<GEMINI_API_KEY>" }
# codex mcp add gemini-computer-use --env GEMINI_API_KEY='<GEMINI_API_KEY>' -- uvx computer-use-mcp~/.cursor/mcp.json
{
"mcpServers": {
"gemini-computer-use": {
"command": "uvx",
"args": [
"computer-use-mcp"
],
"env": {
"GEMINI_API_KEY": "<GEMINI_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"gemini-computer-use": {
"type": "stdio",
"command": "uvx",
"args": [
"computer-use-mcp"
],
"env": {
"GEMINI_API_KEY": "<GEMINI_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"gemini-computer-use": {
"command": "uvx",
"args": [
"computer-use-mcp"
],
"env": {
"GEMINI_API_KEY": "<GEMINI_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"gemini-computer-use": {
"command": "uvx",
"args": [
"computer-use-mcp"
],
"env": {
"GEMINI_API_KEY": "<GEMINI_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"gemini-computer-use": {
"command": "uvx",
"args": [
"computer-use-mcp"
],
"env": {
"GEMINI_API_KEY": "<GEMINI_API_KEY>"
}
}
}
}Environment variables
GEMINI_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.