blowsh-mcp
This server enables AI agents to interact with the web by:
Fetching any web page, including JavaScript-rendered content, with output in plain text, HTML, Markdown, or PDF text extraction.
Performing web searches via DuckDuckGo/Bing, returning ranked results with titles, URLs, and snippets.
Extracting all hyperlinks from a rendered page.
Fetching up to 10 URLs in a single batch request with per-URL error isolation.
Applying CSS selectors, character limits, and wait times for dynamic content.
Protecting against SSRF by blocking private/reserved IPs.
Utilizing in-memory caching for faster repeated fetches.
Receiving structured error responses with HTTP status codes.
Provides web search via DuckDuckGo, returning ranked results with URLs and snippets that can be used to discover pages for fetching.
Click on "Install 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., "@blowsh-mcpget the markdown of the React documentation page"
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.
blowsh-mcp
Model Context Protocol Server for JS-Capable Terminal Browsing with Browsh
What is blowsh-mcp?
blowsh-mcp is a Model Context Protocol (MCP) server that exposes the power of Browsh—a fully JavaScript-capable terminal browser—to any AI Agent, IDE agent, or MCP client. This project allows your AI to fetch and render any modern web page, including those requiring JavaScript, and receive the result as easily-parsed plain text, HTML, or Markdown.
Mnemonic: “blowsh” = Browsh-powered MCP server.
Related MCP server: Crawlbase MCP
Key Features
fetch_web Tool: Unified tool for readable plain text, HTML, or Markdown extraction (after full JS rendering). Supports CSS
selectorextraction,max_charsoutput caps, andwait_msJS-settle polling.search_web Tool: Discover pages via a rendered search engine (DuckDuckGo HTML with Bing fallback) — ranked results with URLs and snippets.
extract_links Tool: List hyperlinks (text + absolute URL) from any JS-rendered page for navigation following.
fetch_web_batch Tool: Fetch up to 10 URLs in one call with per-URL error isolation.
SSRF guard: Refuses requests to loopback, private, link-local, or reserved addresses (DNS-resolved), protecting the server-side browser.
AI-optimized tool documentation: Inputs, outputs, and illustrated use-cases designed for seamless agent automation. Tools throw structured errors with HTTP status codes (
isErrorin MCP responses).Robust Browsh management: Launches Browsh once, keeps it running, reuses a RAM/CPU-light singleton, graceful shutdown on exit.
In-memory render cache with TTL: Repeated fetches are served instantly without re-rendering.
Designed for PaaS, Cloud, Local AI tools, and IDE agents.
Links
Browsh CLI Browser — The rendering engine.
Firefox — Required as the backend for Browsh.
Model Context Protocol (MCP) Specification — The agent/server protocol.
How it Works
AI/Agent makes an MCP request:
fetch_web(single URL),search_web(query),extract_links(URL), orfetch_web_batch(up to 10 URLs).blowsh-mcp launches Browsh in HTTP server mode (on first use) and reuses it for all later calls.
blowsh-mcp requests the raw output from Browsh, using
X-Browsh-Raw-Mode: PLAIN(for text),DOM(for HTML), or fetches HTML and then converts to Markdown.The page (after full JS execution) is returned as terminal plain text, rich HTML DOM, or clean Markdown—AI/agents pick the output type to match downstream processing.
Results are cached in memory (TTL) so repeated fetches are instant; every request is SSRF-checked before reaching the browser.
Quick Start (Docker — Prebuilt Image)
The image is published to GitHub Container Registry and rebuilt automatically on
every main push via GitHub Actions — no host-side Firefox/Browsh/html2markdown needed:
docker pull ghcr.io/mokhtarabadi/blowsh-mcp:latest
docker run --rm -i ghcr.io/mokhtarabadi/blowsh-mcp:latestThe
-iflag is mandatory: the MCP server speaks JSON-RPC over stdin/stdout. Keep it interactive and pipe requests, or point your MCP client at it (see AI Client Configuration below).
Example Usage
From Claude, Cursor, or any MCP-enabled agent:
{
"tool": "search_web",
"params": { "query": "bitcoin price today", "max_results": 5 }
}
// → Ranked results with URLs + snippets → feed top URL to fetch_web
{
"tool": "fetch_web",
"params": { "url": "https://coindesk.com/price/bitcoin/", "type": "plain" }
}
// → Returns readable plain text (live price as text table, etc)
{
"tool": "fetch_web",
"params": { "url": "https://coindesk.com/price/bitcoin/", "type": "markdown", "selector": "main", "wait_ms": 3000 }
}
// → Markdown of <main> only, after JS settles ("# Bitcoin Price\n\n| Time | Price | ...")
{
"tool": "extract_links",
"params": { "url": "https://example.com", "limit": 20 }
}
// → [{"text": "Learn more", "url": "https://iana.org/domains/example"}, ...]
{
"tool": "fetch_web_batch",
"params": { "urls": ["https://a.com", "https://b.com"], "type": "markdown" }
}
// → Per-URL results; a failing page never fails the batchAI receives:
With
type: plain: pure readable text (tables, lists, main body content; ideal for NLP/summarization or terminal context ingestion).With
type: html: the full HTML markup, after all JavaScript. Use for element parsing, link graph construction, complex scrapes, etc.With
type: markdown: a clean Markdown version—best for LLM context chunks, semantic pipelines, and AI-friendly consumption/workflows.Errors are structured: MCP responses set
isError: truewith aFetchErrormessage including the HTTP status when available.
Project Structure
src/server.ts— MCP server exposing tools.src/browshManager.ts— Launch, monitor, shutdown Browsh.src/tools/fetchWeb.ts— fetchWeb tool implementation (plain, html, markdown; selector/max_chars/wait_ms).src/tools/searchWeb.ts— search_web (DuckDuckGo HTML + Bing fallback parser).src/tools/extractLinks.ts— extract_links (hyperlinks from rendered DOM).src/tools/fetchWebBatch.ts— fetch_web_batch (multi-URL, per-URL error isolation).src/tools/html2markdownManager.ts— Wrapper for html2markdown CLI.src/ssrf.ts— SSRF guard (blocks private/loopback/reserved targets).src/cache.ts— In-memory TTL render cache.src/extract.ts— Main-content extraction, selector helpers, truncation.src/errors.ts—FetchError+ message formatting.README.md— This file.Dockerfile— Multi-stage container (builds TS, bundles Firefox, Browsh, html2markdown)..github/workflows/docker-publish.yml— CI/CD: builds and publishes the image to ghcr.io onmain/v*..env— Config overrides. See.env.examplefor all options.
Installation
Requirements:
Node.js >= 20.18
Firefox installed and in PATH
Browsh CLI installed and in PATH
html2markdown CLI installed and in PATH
On Debian/Ubuntu, install with:
wget -O /tmp/html2markdown.deb "https://github.com/JohannesKaufmann/html-to-markdown/releases/download/v2.5.2/html2markdown_2.5.2_linux_amd64.deb" sudo apt-get install -y /tmp/html2markdown.deb rm /tmp/html2markdown.debOr use the prebuilt binary for your OS from the releases page.
Prefer Docker? Skip the host-side installs entirely — the multi-stage image bundles Firefox, Browsh, and html2markdown. The fastest path is the published image (
ghcr.io/mokhtarabadi/blowsh-mcp:latest, see Quick Start); to build it yourself:docker build -t blowsh-mcp:latest . docker run --rm -i blowsh-mcp:latest
git clone https://github.com/mokhtarabadi/blowsh-mcp.git
cd blowsh-mcp
npm install
npm run buildRun the MCP server
After building, start the server using:
node dist/server.jsReplace dist/server.js with the correct path if your build output differs.
Create a .env file as needed for configuration. For example:
MCP_TRANSPORT=stdio
BROWSH_FIREFOX_PATH=/usr/bin/firefox-esr
HTML2MARKDOWN_PATH=html2markdown
CACHE_TTL_MS=300000
BROWSH_REQUEST_TIMEOUT_MS=30000
ALLOW_PRIVATE_URLS=false
NODE_ENV=productionBROWSH_FIREFOX_PATHlets you customize the Firefox executable used by Browsh during headless/HTTP operation.HTML2MARKDOWN_PATHlets you specify a custom path to the html2markdown binary (default:html2markdownin PATH).CACHE_TTL_MS,BROWSH_REQUEST_TIMEOUT_MS, andALLOW_PRIVATE_URLStune the render cache, per-request timeout, and SSRF guard respectively.Browsh's HTTP port/host are NOT configurable.
Project Documentation
File | Audience | Purpose |
| Agents | Operating rules, guardrails, task lifecycle |
| All | MCP response/output design language |
| Devs | System overview, component wiring |
| Devs | Tool input/output schemas and error model |
| Devs | DateTime standard, SOLID guidelines |
| All | Version history (Keep a Changelog) |
| Team | Kanban task files (backlog → archive) |
This README is the user-facing entry point; agent-facing rules live in AGENTS.md and are mandatory reading before any implementation.
Tool API
Name | Params | AI Use-case/Description |
fetch_web |
| Fetch one page post-JS-render as text/HTML/Markdown. |
search_web |
| Search the web (DuckDuckGo HTML + Bing rendered concurrently) and return |
extract_links |
| Return all hyperlinks ( |
fetch_web_batch |
| Fetch up to 10 URLs in one call (cache-aware). Returns per-URL |
Returns
type: plain: Terminal-style, JS-executed readable text (or error string).type: html: Post-JS HTML markup string (or error string). Withselector, only the matched element's HTML.type: markdown: Markdown conversion of the main content or selected element (or error string). Links, headings, lists, and page structure retained for AI-friendly context.type: pdf: extracted plain text from the PDF document (via pdftotext, 20 MB cap).Errors are structured: an MCP response with
isError: trueand aFetchErrormessage that includes the HTTP status when knowable (never a silent empty string).
Environment Variables
Set these via .env (loaded automatically) or the environment:
Variable | Default | Description |
|
| Firefox binary used by Browsh (e.g. |
|
| Path to the html2markdown binary. |
|
| Per-render request timeout (ms). |
|
| Max PDF file size in bytes for |
|
| Number of requests after which the browser process is recycled. |
|
| Idle time in ms before the browser process is killed (10 min). |
|
| In-memory render cache TTL (ms). |
|
| Set |
|
| Transport type (only |
|
| Node environment. |
AI-Guided Tool Selection
Start with
search_web: To discover pages, run a query and pick the best result URLs; then fetch them.Use
fetch_webfor single pages:plainwhen you need quick readable output for summarization/classification;htmlto parse elements, links, or tables;markdownfor LLM-friendly context chunks. Addselector/max_chars/wait_msto stay token-efficient and get settled, relevant content.Use
extract_linksbefore deep crawls: Follow navigation cheaply instead of fetching full DOMs.Use
fetch_web_batchfor multiple sources: One call instead of N round-trips; failures are isolated per URL.
Error handling:
Tools throw FetchError and MCP returns isError: true with an actionable message — invalid protocols, SSRF blocks, unmatched selectors, HTTP status codes, and rendering failures are never silent.
MCP Protocol: AI Client Configuration
Before configuring your AI client (Claude, Cursor, etc.), you must
Install dependencies:
npm installBuild the project:
npm run buildLaunch the MCP server from the compiled output:
node dist/server.js
Example config for Claude Desktop or Cursor:
{
"mcpServers": {
"blowsh": {
"command": "node",
"args": ["dist/server.js"],
"env": {}
}
}
}Example config for opencode (project opencode.json):
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"blowsh": {
"type": "local",
"command": ["docker", "run", "--rm", "-i", "ghcr.io/mokhtarabadi/blowsh-mcp:latest"],
"enabled": true,
"timeout": 120000
}
},
"permission": { "blowsh_*": "allow" }
}The Docker form needs no host-side binaries; the image bundles Firefox, Browsh, and html2markdown. Restart opencode after saving (config is loaded once at startup).
Graceful Shutdown
blowsh-mcp traps SIGINT/SIGTERM and ensures Browsh is terminated cleanly—no orphan browsers.
Security and Considerations
The server runs Browsh locally and fetches via HTTP localhost.
SSRF guard: By default,
fetch_web/search_web/extract_links/fetch_web_batchrefuse URLs that resolve to loopback, private, link-local, or reserved IP ranges (checked over DNS). SetALLOW_PRIVATE_URLS=trueto disable — not recommended.No public exposure unless MCP HTTP/streamable server is explicitly configured.
Never expose ports to open web without firewall.
Use env vars for secrets/config.
Extending
Add new tools in src/tools/, export them in src/server.ts, and document.
AI clients will auto-discover docstrings.
Troubleshooting
If fetchPlain returns 404 or fails to render JS: check Firefox and Browsh are installed and in PATH.
If Firefox is not found or fails to launch, set
BROWSH_FIREFOX_PATHin.envto specify the full path to your Firefox install.Browsh port/host are fixed—there is no environment or CLI setting to change them.
For maximum security, run in a container.
License
MIT
Author: Mohammad Reza Mokhtarabadi mmokhtarabadi@gmail.com
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA server that enables AI systems to browse, retrieve content from, and interact with web pages through the Model Context Protocol.1

Crawlbase MCPofficial
AlicenseAqualityDmaintenanceA Model Context Protocol server that enables AI agents to fetch live web content with JavaScript rendering, proxy rotation, and anti-bot evasion.93755MIT- AlicenseNot gradedqualityDmaintenanceEnables AI agents to automate web tasks such as browsing, clicking, typing, and taking screenshots via the Model Context Protocol.1MIT

Browseagent MCPofficial
AlicenseAqualityDmaintenanceEnables AI agents to control web browsers through the Model Context Protocol, supporting navigation, clicking, typing, and screenshots.12101MIT
Related MCP Connectors
Web scraping for AI agents. Converts URLs to clean, LLM-ready Markdown with anti-bot bypass.
Read a URL as clean markdown, screenshot a website, url to PDF. Web access for agents, no signup.
Read any web page as clean Markdown for AI agents: fetch, search, metadata, links. SSRF-safe.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mokhtarabadi/blowsh-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server