Skip to main content
Glama
MCP Web LLM Aggregator

MCP Web LLM Aggregator

by HGD-coder

MCP Web LLM Aggregator

English | 中文

A Zero-Cost, Non-API MCP Server that aggregates web versions of ChatGPT, Claude, Gemini, DeepSeek, Grok, and Qwen.

Query multiple top-tier models in parallel directly from your AI IDE (Trae, Cursor, etc.) using your local browser sessions. No API keys or tokens required.

Features

  • Multi-Model Aggregation: The ask_all tool queries all supported models simultaneously and returns a consolidated JSON response.

  • File/Image Upload: Supports local file paths and inline base64 images, then uploads them to supported model web UIs through Playwright.

  • Supported Models:

    • ChatGPT (chatgpt.com)

    • Claude (claude.ai)

    • Gemini (gemini.google.com)

    • DeepSeek (chat.deepseek.com)

    • Grok (grok.com)

    • Qwen (chat.qwen.ai)

  • No API Tokens: Leverages the free web interfaces of these models.

  • Browser Automation: Uses Playwright and CDP to connect to your existing Chrome instance, reusing your login state.

  • Cost Saving: Perfect for developers who want high-quality model outputs without the API costs.

  • No Long-Term Memory Feature: The previous experimental memory/session feature has been rolled back. The project currently only keeps a simple local chat history.

Related MCP server: agent-chrome

Demo

Demo video (MP4)

Tools

  • ask_chatgpt(query: str, file_paths?: list[str], images_base64?: list[str]) -> str

  • ask_claude(query: str, file_paths?: list[str], images_base64?: list[str]) -> str

  • ask_gemini(query: str, file_paths?: list[str], images_base64?: list[str]) -> str

  • ask_deepseek(query: str, file_paths?: list[str], images_base64?: list[str]) -> str

  • ask_grok(query: str, file_paths?: list[str], images_base64?: list[str]) -> str

  • ask_qwen(query: str, file_paths?: list[str], images_base64?: list[str]) -> str

  • ask_all(query: str, file_paths?: list[str], images_base64?: list[str]) -> str returns a JSON string with keys: chatgpt/claude/gemini/deepseek/grok/qwen

File Input Notes

  • file_paths: absolute local file paths, suitable for files already saved on disk.

  • images_base64: inline image payloads from IDE attachments or clipboard screenshots; the server writes them to a temporary local file before upload.

  • If your IDE cannot pass structured file arguments, you can also place an absolute local path directly inside query, and the server will try to auto-extract it.

Usage

Install as a CLI so you don't need to clone the repo:

uv tool install git+https://github.com/HGD-coder/mcp-web-llm.git

Windows Users Note: If you encounter permission errors during installation (e.g., os error -2147024891), please use the --link-mode=copy flag:

uv tool install git+https://github.com/HGD-coder/mcp-web-llm.git --link-mode=copy

1. Prerequisites

This project uses uv for dependency management. Run in the project root:

uv sync

2. Prepare Chrome Browser

You need a dedicated Chrome window for AI conversations. We use "Connect over CDP" mode to avoid bans and CAPTCHAs.

Windows: Run in PowerShell (change path if needed):

& "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 --user-data-dir="C:\chrome_debug_profile" --disable-blink-features=AutomationControlled

macOS:

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 --user-data-dir="$HOME/chrome_debug_profile" --disable-blink-features=AutomationControlled

After running:

  1. A new Chrome window will pop up.

  2. Open and log in to these sites in tabs:

  3. Do not close this window! Keep it running in the background.

3. Configure IDE (Trae/Cursor)

Add to your mcp-servers.json:

{
  "mcpServers": {
    "web-llm-agent": {
      "command": "mcp-web-llm",
      "args": [],
      "env": {
        "PYTHONIOENCODING": "utf-8"
      }
    }
  }
}

If you run from source instead:

{
  "mcpServers": {
    "web-llm-agent": {
      "command": "uv",
      "args": ["run", "server.py"],
      "cwd": "/path/to/mcp-web-llm",
      "env": { "PYTHONIOENCODING": "utf-8" }
    }
  }
}

4. Start Using

In your IDE chat, use natural language:

  • "Use ask_all to compare Vue vs React."

  • "Ask Claude to write a Python script."

Architecture

graph TD
    A[AI IDE <br> Trae / Cursor] -->|MCP Protocol| B(mcp-web-llm Server)
    B -->|CDP / Playwright| C[Local Chrome Browser <br> Port 9222]
    C -->|Web Automation| D1(ChatGPT)
    C -->|Web Automation| D2(Claude)
    C -->|Web Automation| D3(Gemini)
    C -->|Web Automation| D4(DeepSeek)
    C -->|Web Automation| D5(Grok)
    C -->|Web Automation| D6(Qwen)

Contributing

Contributions are welcome! If you'd like to add support for a new model or improve the existing automation scripts:

  1. Fork the repository.

  2. Create a new branch for your feature or bug fix.

  3. Submit a pull request with a detailed description of your changes. Please make sure to test your changes locally using uv run server.py.

Troubleshooting

  • CDP (9222) not running: run mcp-web-llm doctor to see status; on Windows the server can auto-launch a dedicated Chrome window.

  • Timeouts/no output: usually login required, CAPTCHA/rate limit, or site UI changes; try keeping the dedicated Chrome window open and logged in.

Security & Privacy

  • Uses your local Chrome session via CDP; it can access pages you have logged into in that dedicated Chrome profile.

  • This project does not require API keys or tokens, but website terms and anti-bot systems may apply; use at your own risk.

License

MIT. See LICENSE.

Available Tools

7 tools
ask_allA

Ask the same question to ALL supported models (ChatGPT, Claude, Gemini, DeepSeek, Grok, Qwen) in parallel. Returns a JSON string containing answers from all models.

Inputs: query (required), file_paths, images_base64. Returns: result

ask_chatgptC

Ask a question to ChatGPT web interface.

Inputs: query (required), file_paths, images_base64. Returns: result

ask_claudeC

Ask a question to Claude web interface.

Inputs: query (required), file_paths, images_base64. Returns: result

ask_deepseekC

Ask a question to DeepSeek web interface.

Inputs: query (required), file_paths, images_base64. Returns: result

ask_geminiC

Ask a question to Gemini web interface.

Inputs: query (required), file_paths, images_base64. Returns: result

ask_grokC

Ask a question to Grok web interface.

Inputs: query (required), file_paths, images_base64. Returns: result

ask_qwenC

Ask a question to Qwen web interface.

Inputs: query (required), file_paths, images_base64. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 7 tools

    Disambiguation4/5

    Each ask_<model> tool targets a distinct provider, so per-model selection is unambiguous; ask_all is the only overlap, but its description clearly marks it as a parallel aggregate of the others. An agent could occasionally pick ask_all when a single answer was wanted, but the boundary is stated.

    Naming Consistency5/5

    Every tool follows the exact same ask_<target> pattern, with ask_all fitting the same schema as a target. No mixed conventions or stray verbs.

    Tool Count5/5

    Seven tools is well-scoped: six provider-specific queries plus one parallel aggregator, each earning its place. Nothing redundant beyond the intentional ask_all convenience.

    Completeness4/5

    The core capability (query one or all supported models) is fully covered, and the provider list is enumerated in ask_all's description. Minor gaps exist: no way to list/detect available models dynamically, no conversation continuity or follow-up, and no per-call options (timeout, model variant).

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables token-efficient browser automation for AI chats like ChatGPT, Gemini, and Claude, allowing reading responses, sending messages, waiting for streaming replies, and bridging conversations between tabs via Chrome DevTools Protocol.
      5
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Lets local AI agents drive the Chrome browser a user already has open, including signed-in sessions, by listing tabs, reading page text and actionable elements, then clicking, filling, selecting, scrolling, navigating, and capturing viewport screenshots without exporting cookies. Runs as a dependency-free local stdio process over Native Messaging, with per-tab leases, automatic reconnection, and pause/write-action controls.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables Claude Code to send prompts to signed-in ChatGPT and Gemini browser tabs and retrieve streamed replies as MCP tools without API keys. It also supports listing tabs, reading the latest response, scraping conversations, and checking connection health.
      MIT