foreign-llm-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@foreign-llm-mcp ask gemini to translate "where is the train station" into Japanese"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
foreign-llm-mcp
A Claude Code plugin (MCP server) that hands simple, one-shot tasks to free web LLMs — Gemini and ChatGPT — by driving their websites in a real Chrome window. Use it to save Claude tokens on things like summarizing, translating, small code snippets, a second opinion, web lookups, and image generation.
Heads-up. This automates consumer chat UIs, which may violate their terms of service and can break whenever the site changes its markup. Use it for personal use, at low volume, with your own accounts. No warranty.
Tools
Tool | What it does |
| New chat, send prompt, return the reply text. |
| Generate an image, return the saved file path. |
| Which providers are logged in. |
| Open the site so you can sign in; returns when you close that tab. |
Providers: gemini, chatgpt. Every call is a fresh one-shot chat (no history carried over),
calls are serialized, with a 5 s gap between them.
Related MCP server: free-web-ai-worker
Requirements
uv (installs the Python dependencies on first run)
Google Chrome (Playwright drives the installed Chrome, not a bundled browser)
Install
/plugin marketplace add dinhngocvu96/foreign-llm-mcp
/plugin install foreign-llm@foreign-llm-mcpRestart Claude Code, then ask Claude to call the login tool for each provider you want
(login(provider="gemini")), sign in in the window that opens, and close the tab.
Sessions persist in the browser profile.
Where data lives
~/.foreign-llm-mcp/ (override with the FOREIGN_LLM_HOME env var):
profile/— Chrome profile with your logged-in sessions. Keep it private.out/— generated images.
Errors
Tools fail with a code Claude can act on: NOT_LOGGED_IN, QUOTA, TIMEOUT,
NO_RESPONSE, SELECTOR_CHANGED.
Notes per provider
Gemini — image generation downloads the full-size file.
ChatGPT —
askuses a temporary chat (nothing saved). Image generation is blocked in temporary chats, sogenerate_imageuses a normal chat that stays in your history. Free-plan image quota is small.
Development
Selectors live at the top of each providers/<name>.py; when a site changes, fix them there.
To add a provider, create a module exposing URL, ask, generate_image, is_logged_in and
register it in PROVIDERS in server.py.
Live smoke test (needs logins, uses real quota): uv run python test_live.py
License
MIT
Available Tools
4 toolsaskB
One-shot question to a free web LLM (new chat each call). Good for summarize/translate/ small code/second opinion/web lookup. Returns the reply text.
Inputs: prompt (required), timeout, provider. Returns: result
generate_imageC
Generate an image on the web LLM; returns the saved file path under ./out/.
Inputs: prompt (required), timeout, provider. Returns: result
list_providersB
Providers and whether each is logged in (error code if not).
Inputs: no named parameters.
loginA
Open the provider's site in the browser so the user can sign in. Blocks until the user closes that tab (ask the user to do so when finished), then use list_providers to verify.
Inputs: provider. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
The four tools cover clearly separate actions: browser sign-in, one-shot text query, image generation, and provider status listing. Login and list_providers sit in the same auth lifecycle, but the login description explicitly points to list_providers for verification, so the boundary is clear.
All names are lowercase snake_case with verb or verb_noun form (login, ask, generate_image, list_providers). Minor deviation: 'login' and 'ask' are bare/ambiguous verb-nouns while the other two follow verb_noun, but the set is still predictable and readable.
Four tools is on the lean side but fits a narrow purpose: authenticate, delegate a question, delegate an image request, and check provider state. Nothing extraneous, though it sits near the thin end of the 3-15 range.
Core flows (sign in, ask, generate image, verify status) are covered, but the auth lifecycle has no logout/switch-provider tool, and there is no way to discover providers or models before a query without trial and error. These gaps are workaroundable but notable for the stated purpose.
Maintenance
Related MCP Connectors
Let AI agents use your real, signed-in Chrome: tabs, clicks, forms, screenshots and video.
Control your Chrome from chat: open websites, read what's on the page, click buttons, and fill in f…
Web search, browser automation, scraping, crawling and CAPTCHA solving for AI agents.
Send quick greetings, scrape website content, and generate text or images on demand. Perform web s…
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceLets AI assistants control your real Chrome browser to perform web tasks like reading pages, taking screenshots, clicking, and typing, using your existing logged-in sessions.145MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to delegate simple text subtasks such as summarising, translating, classifying, extracting, and reformatting to free web AIs through the user's own Edge/Chrome browser, returning only plain-text answers to save the main model's context and tokens.MIT
- AlicenseAqualityCmaintenanceLets AI agents generate images in Google Flow by driving the real web app in a Chrome window you sign into once, selecting the model, aspect ratio, and image count from a prompt. Results can be downloaded at 1K, 2K, or 4K, all without an API key.4MIT
- AlicenseBqualityBmaintenanceEnables AI agents to control your installed Google Chrome through MCP or HTTP using compact text snapshots, exact pixel coordinates, and a visible cursor. It provides browser tools for navigation, clicking, typing, scrolling, tabs, forms, waiting, recording, and human handoff.3597 npm3MIT