Skip to main content
Glama

claude-web-bridge

AI coding agents are bad at the web you actually use. Claude Code, Codex or Gemini CLI ask for a page and get a 403, a Cloudflare check, an empty JavaScript shell, or only the abstract of a paper your university already pays for. You can open all of those in your browser in a second.

This small MCP server closes that gap. It runs on your machine and opens pages in a separate Chrome window that has your own logins. The agent gets clean Markdown back, or a PDF saved to disk.

I built it for academic work: reading papers, getting PDFs, checking journal metrics such as JCR quartiles. It works for any page that's hard to reach, though.

How it works

  • It tries plain HTTP first. If that is blocked, nearly empty or paywalled, it switches to the browser.

  • The browser is your installed Chrome (or Edge) running with its own profile, so your everyday profile isn't touched. Every agent on the machine shares that one window, so you only log in once.

  • You do the logins and the "are you human" checkboxes yourself. The agent opens the window, tells you what to click, and waits. It never types passwords or solves CAPTCHAs.

  • Every downloaded PDF is checked to make sure it really is a PDF, not a login page.

  • You don't need a subscription. For a paywalled paper you still get its abstract and details, and a legal open copy whenever one exists. Abstracts and copies come from Crossref, OpenAlex, Semantic Scholar and Europe PMC, through anonymous requests. A university login just opens more full texts.

  • Some sites run an automatic bot check, and that check only works in a window you can actually see. When one shows up, the bridge window pops up for a few seconds and then minimizes again.

Related MCP server: rag-paper

Install

You need Node.js 22.22+ or 24.15+, and Chrome or Edge. So far I've only tested it on Windows, but it should run on macOS and Linux too.

git clone https://github.com/sefatuncer/claude-web-bridge.git
cd claude-web-bridge
npm install

Then register it with your agent, using the absolute path to src/server.js.

Claude Code:

claude mcp add web-bridge -s user -- node /path/to/claude-web-bridge/src/server.js

Codex CLI:

codex mcp add web-bridge -- node /path/to/claude-web-bridge/src/server.js

Gemini CLI, in ~/.gemini/settings.json:

{
  "mcpServers": {
    "web-bridge": {
      "command": "node",
      "args": ["/path/to/claude-web-bridge/src/server.js"],
      "timeout": 300000
    }
  }
}

Copying skill/web-bridge into ~/.claude/skills/ (or ~/.codex/skills/) is optional, but worth it. The skill teaches the agent when to reach for the bridge, and how to report journal metrics without mixing up sources: a SCImago quartile is not a JCR quartile.

First run

The first time a page needs the browser, a Chrome window opens and minimizes itself. To give the agent what's behind your university login, open that window once and sign in to your library or publisher, or ask the agent to call web_open. Your cookies stay in the bridge profile.

Tools

Tool

What it does

web_read

Turns a page or DOI into Markdown, with citation metadata. Long pages come in chunks.

paper_info

Gets a paper's metadata (checked against Crossref), abstract and keywords, even when it's paywalled, plus any legal open copies.

web_download

Downloads one paper PDF from a DOI, landing page or direct link. If the publisher copy is locked, it falls back to a legal open copy (arXiv, PMC, repositories) and tells you which version you got.

journal_metrics

Collects free journal metrics: Web of Science index, the impact factor and JCR quartile the publisher prints, and OpenAlex citation stats.

journal_guide

Finds and reads a journal's Guide for Authors. Works for Elsevier, Springer, MDPI, Taylor & Francis, Wiley, SAGE, Frontiers, OUP and DergiPark, and for others through the link on the journal page.

web_open

Brings the window to the front so you can log in or pass a check.

web_snapshot, web_click, web_type

Let the agent use interactive sites such as JCR or Scopus.

web_status

Shows whether Chrome is running, where files go, and recent download counts.

Settings

All optional, as environment variables:

Variable

Default

WEB_BRIDGE_DOWNLOAD_DIR

~/Downloads/web-bridge

WEB_BRIDGE_CHROME

auto-detected Chrome or Edge

WEB_BRIDGE_CDP_PORT

9333

WEB_BRIDGE_HEADLESS

off. Set 1 to hide the window; you then can't log in or click checks.

WEB_BRIDGE_HOST_CAP, WEB_BRIDGE_TOTAL_CAP

20 per site and 60 in total, downloads per hour

Pass them with -e in claude mcp add, --env in codex mcp add, or an env block for Gemini.

Ground rules

This isn't a way around paywalls or anyone's terms. It reaches only what you can reach yourself.

  • It blocks pirate libraries (Sci-Hub, LibGen, Anna's Archive, Z-Library), Google Scholar and SSRN in code. Localhost and private network addresses are blocked too.

  • It downloads one paper per call, with an hourly cap. Most publisher licences forbid bulk downloading, and breaking that can get a whole university cut off.

  • The browser's debugging port listens only on 127.0.0.1. Still, any program on your machine can use it while the bridge Chrome is open. If that matters to you, close the window when you're done.

Türkçe kısaca

Claude Code, Codex ve Gemini gibi ajanların açamadığı sayfaları bilgisayarınızdaki ayrı bir Chrome penceresinden açan küçük bir MCP sunucusu. Bunlar 403 dönen siteler, Cloudflare doğrulamaları, JavaScript ile dolan sayfalar ve kurum aboneliği gereken makaleler olabilir.

Abonelik gerekmez. Kapalı makalelerin özeti ve künyesi yine gelir; yasal açık kopyası varsa (arXiv, PMC, kurumsal depo) o indirilir. Dergilerin yazar kılavuzlarını (Guide for Authors, DergiPark yazım kuralları) ve yayıncının yazdığı etki faktörünü de bulup okur.

Kurulum yukarıdaki gibi: npm install, sonra claude mcp add ... ile ajanınıza ekleyin. Kurum girişinizi köprü penceresinde bir kez kendiniz yaparsınız. Ajan şifre yazmaz; doğrulama kutucuklarını siz tıklarsınız. Korsan siteler, Google Scholar ve SSRN kapalıdır. Makaleler tek tek indirilir.

License

MIT

Available Tools

10 tools
journal_guideJournal author guidelinesA
Read-only

Find and read a journal's author guidelines (Guide for Authors, Submission guidelines, Instructions for authors, DergiPark "Yazım kuralları"): word limits, structure, reference style, templates, APC and policies. Give an ISSN, a title or the journal page URL. Uses known publisher URL patterns (Elsevier, Springer, MDPI, Taylor & Francis, Wiley, SAGE, Frontiers, OUP, DergiPark) and otherwise the matching link on the journal page. Returns the guide as Markdown in chunks; continue with web_read(url, offset).

Inputs: journal (required), offset, homepage, max_chars.

journal_metricsJournal metrics from free sourcesA
Read-only

Look up a journal by ISSN (best) or title and collect what can be read without a subscription: OpenAlex citation stats, Web of Science index from the Master Journal List (SCIE/SSCI/AHCI/ESCI), and the Impact Factor, JCR quartile and CiteScore lines printed on the publisher's own journal page. Use it for questions about impact factor, WoS/JCR quartile or indexing. Report every number with its source and year; never present an SJR or OpenAlex figure as the JCR impact factor or quartile.

Inputs: journal (required), homepage.

paper_infoPaper metadata, abstract and open copiesA
Read-only

Everything that is openly available about one paper, even when the full text is paywalled or the publisher site blocks bots: Crossref-verified metadata, the abstract and keywords from the publisher page (through the bridge browser), with the abstract filled in from OpenAlex, Semantic Scholar or Europe PMC when the page fails, plus any legal open-access copies. Accepts a DOI or an article URL. Use it before web_download, and whenever the full text is not needed.

Inputs: paper (required).

web_clickClick an element in the bridge tabA

Click the element with the given ref from the last web_snapshot. Returns a fresh snapshot, or the saved path if the click started a download.

Inputs: ref (required).

web_downloadDownload a paper PDF or file through the local bridgeA

Download one article PDF (or another file) using the user's machine and bridge Chrome session, including open-access PDFs that block bots and articles the user can access through their institution. Accepts a direct file URL, an article landing page or a DOI; finds citation_pdf_url or the PDF link itself and verifies the file really is a PDF. One article per call, only articles the user actually needs: publisher licences forbid bulk downloading, and there is an hourly cap. Never use for pirate libraries. Saves to the default download folder (see web_status) unless dir is given.

Inputs: url (required), dir, expect, filename.

web_openShow the bridge browser to the userA
Read-only

Bring the bridge Chrome window to the front (optionally at a URL) so the USER can log in (university SSO, OpenAthens, Shibboleth, publisher or Clarivate account) or pass a bot check. The bridge never types passwords and never solves CAPTCHAs. After calling, tell the user what to do in that window and wait for them to confirm.

Inputs: url, wait_seconds.

web_readRead a web page through the local bridgeA
Read-only

Read a web page as clean Markdown from the user's own machine. Use when WebFetch fails or returns too little (403, bot check, JavaScript-only page, paywall the user can pass with their institution) and for academic publisher, journal-metric (JCR, Scopus, SCImago) and DergiPark pages. mode=auto tries plain HTTP first and falls back to the user's bridge Chrome (their cookies and institutional logins); publisher sites go straight to the browser. Accepts a URL or a DOI. Returns citation metadata (DOI, journal, PDF link) when present. Call without url to read the bridge tab as it is now (after web_open or clicks). Long pages come in chunks: use offset, or Read the saved file. extract="full" keeps tables and search results that article mode drops.

Inputs: url, mode, offset, extract, +1 more.

web_snapshotSee the current bridge tab with clickable elementsA
Read-only

Visible text plus a numbered list of links, buttons and inputs in the bridge tab. Use for interactive sites (JCR, Web of Science, Scopus, search forms) together with web_click and web_type. Refs change after every navigation.

Inputs: offset, max_chars.

web_statusBridge statusA
Read-only

Show whether the bridge Chrome is running, the profile and download folders, and recent download counts.

Inputs: no named parameters.

web_typeType into a field in the bridge tabA

Type text into the input with the given ref (search boxes, filters). submit=true presses Enter. Refuses password fields. Returns a fresh snapshot.

Inputs: ref (required), text (required), submit.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 10 tools

    Disambiguation4/5

    The set splits cleanly into browser primitives (web_open, web_snapshot, web_click, web_type, web_read, web_download, web_status) and academic lookups (paper_info, journal_guide, journal_metrics), and the descriptions state the boundaries explicitly (snapshot = interactive refs, read = Markdown, open = user login). The only soft edges are paper_info vs web_read and journal_guide vs web_read, since both can fetch an article/journal page, but the metadata-vs-full-text distinction is spelled out. An agent can select correctly with the descriptions given.

    Naming Consistency4/5

    Everything is snake_case with a predictable verb_noun or noun_noun shape, so it reads uniformly. The only deviation is a two-tier scheme: generic primitives are prefixed web_* while the three academic helpers are unprefixed, which slightly breaks the pattern even though it signals domain grouping.

    Tool Count5/5

    Ten tools is well within the healthy range, and none look redundant: five primitives cover the interaction loop, three cover the academic research workflow, and two cover session/file setup. Each tool has an evident job that no sibling performs.

    Completeness4/5

    The surface covers a full browse-and-retrieve lifecycle: open/login, snapshot, click, type, read, download, status, plus paper metadata, journal guidelines and metrics. Minor gaps remain around tab/navigation management (back, close, multi-tab), scrolling, and selecting dropdown options other than via clicking, which agents can mostly work around but are real dead ends on complex forms.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      A local-first paper RAG server that enables searching and managing academic PDFs via MCP tools, supporting metadata enrichment and citation graphs.
      2
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Safe, self-hosted MCP server for web grounding that fetches live pages through a stealth-patched Chrome and returns clean Markdown with provenance, preventing SSRF and blocks.
      4
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      A hardened local browser MCP server that drives your existing Chrome over the DevTools Protocol, providing token-efficient Markdown extraction and stealth features to avoid trivial automation detection.
      13 npm
      1
      MIT