Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

An MCP server that enables Claude Code CLI to interact with Cloud Desktop, ChatGPT, and Gemini web interfaces through browser automation.

README.md

Web Automation MCP Server

An MCP (Model Context Protocol) server that enables Claude Code CLI to interact with Cloud Desktop, ChatGPT, and Gemini web interfaces through browser automation.

Features

  • Multi-Service Support: Interact with Cloud Desktop, ChatGPT, and Gemini
  • Browser Automation: Uses Playwright for reliable web automation
  • Session Persistence: Maintains browser sessions across requests
  • Response Extraction: Automatically extracts and returns responses
  • Conversation Management: Clear conversation history when needed

Installation

  1. Clone the repository:
cd ~/web-automation-mcp
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Configuration

Add the server to your Claude MCP settings (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "web-automation": {
      "command": "node",
      "args": ["/Users/YOUR_USERNAME/web-automation-mcp/dist/index.js"]
    }
  }
}

Usage

Natural Language Support

The MCP server now supports natural language queries through the web_automation_query tool:

# Ask ChatGPT a question
"Ask ChatGPT: What is quantum computing?"

# Send to Gemini
"Send to Gemini: Explain machine learning"

# Clear conversation
"Clear ChatGPT conversation"

# Get latest response
"Get the latest response from Gemini"

# Browser control
"Initialize browser in visible mode"
"Close browser"

Available Tools

  1. web_automation_query - Process natural language queries
  • query: string - Natural language description of what you want to do
  1. initialize_browser - Initialize the browser
  • headless: boolean (default: false) - Run in headless mode
  1. send_to_service - Send input to a service and get response
  • service: "clouddesktop" | "chatgpt" | "gemini"
  • content: string - The message to send
  1. get_latest_response - Get the latest response from a service
  • service: "clouddesktop" | "chatgpt" | "gemini"
  1. clear_conversation - Clear conversation history
  • service: "clouddesktop" | "chatgpt" | "gemini"
  1. cleanup_browser - Close all browser windows

Example Usage in Claude Code

Natural language examples: ```

Ask ChatGPT

Use web_automation_query with query: "Ask ChatGPT about the history of computing"

Send to Gemini

Use web_automation_query with query: "Send to Gemini: write a Python function to sort a list"

Clear conversation

Use web_automation_query with query: "Clear ChatGPT conversation" ```

Direct tool usage: ```

Initialize browser (visible mode)

Use the initialize_browser tool with headless: false

Send a message to ChatGPT

Use the send_to_service tool with service: "chatgpt" and content: "What is the capital of France?"

Clean up when done

Use the cleanup_browser tool ```

Important Notes

  1. Manual Login Required: You must manually log in to each service in the browser window the first time
  2. Service URLs: Update the URLs in the handler files if they change:
  • src/handlers/cloudDesktop.ts - Update Cloud Desktop URL
  • src/handlers/chatgpt.ts - ChatGPT URL
  • src/handlers/gemini.ts - Gemini URL
  1. Selectors: The CSS selectors in handlers may need updates if the services change their UI

Development

To run in development mode: ``bash npm run dev ``

To modify service handlers, edit the files in src/handlers/.

Troubleshooting

  • Login Required Error: Open the browser in non-headless mode and log in manually
  • Selector Not Found: The service UI may have changed - update selectors in the handler
  • Timeout Errors: Increase timeout values in the handlers for slower connections

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Browser & Scraping servers.