Skip to main content
Glama
Nafi-Jza

WebSearch MCP Server

by Nafi-Jza

WebSearch MCP Server

A powerful Model Context Protocol (MCP) server that provides full-featured web searching, scraping, and YouTube transcript extraction capabilities using Playwright.

This server allows AI assistants (like Claude via Claude Code) to autonomously search the web, read articles, and fetch video transcripts without being blocked by CAPTCHAs or regional firewalls.

Features

  • πŸ” DuckDuckGo Search: Headed search using Playwright to bypass aggressive bot-protection and regional blocks (e.g., Internet Positif).

  • πŸ•ΈοΈ Headless Scraping: Extracts clean Markdown from websites using Mozilla's Readability and Turndown.

  • πŸŽ₯ YouTube Transcripts: Fetches auto-generated or manual transcripts with a fallback to Playwright extraction if the API fails.

  • πŸ”“ Manual Browser Interaction: Allows the AI to open a headed browser window, pausing execution so you can manually solve CAPTCHAs or log into accounts.

  • πŸͺ Persistent Profiles: Maintains a browser-profile to save your cookies, logins, and session state across runs.

Related MCP server: Web Search MCP

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/nafi-jza/websearch-mcp.git
    cd websearch-mcp
  2. Install dependencies:

    npm install
  3. Install Playwright browsers:

    npx playwright install chromium
  4. Build the project:

    npm run build

Configuration in Claude Code

To add this MCP server to your Claude Code setup, edit your ~/.claude.json or project-level .claude.json file:

{
  "mcpServers": {
    "websearch-mcp": {
      "type": "stdio",
      "command": "node",
      "args": [
        "C:/absolute/path/to/websearch-mcp/dist/index.js"
      ],
      "env": {}
    }
  }
}

(Make sure to replace the path with your actual absolute path to the dist/index.js file)

Available Tools

Once configured, the following tools will be available to the AI:

  • search: Search the web using DuckDuckGo.

    • Input: { query: string }

  • scrape: Load a webpage and extract its main content as Markdown.

    • Input: { url: string }

  • open_browser: Open a headed browser window to manually solve CAPTCHAs or log into sites. Pauses the MCP server until you close the browser.

    • Input: { url?: string }

  • youtube_transcript: Extract the transcript from a YouTube video.

    • Input: { target: string, lang?: string }

Architecture & How It Works

  • Bot Bypass: Playwright is used to execute searches visibly (headed) which tricks most basic bot-protection systems and DNS blocks.

  • Graceful Cleanup: The server automatically manages Chromium contexts. It safely removes the default about:blank pages and closes browser instances strictly after automated executions to prevent memory leaks and zombie processes.

  • Logging & Output: All activity is logged to activity.log in the root directory. Markdown outputs of scrapes are saved locally to the outputs/ directory for historical reference.

Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    C
    maintenance
    Enables web searching through Google, DuckDuckGo, and Bing using a headless Chrome browser, returning structured results with titles, URLs, and snippets. Also supports fetching and extracting text content from any webpage.
    11
    MIT
  • A
    license
    C
    quality
    A
    maintenance
    Enables AI agents to perform web searches via DuckDuckGo without API keys and automate browser tasks with headless Chromium. Supports multi-step research workflows that automatically search and extract content from multiple pages.
    7
    41
    MIT

View all related MCP servers

Related MCP Connectors

  • LLM-ready web search + instant answers + URL-to-clean-text fetch for agents and RAG.

  • Provides cloud browser automation capabilities using Stagehand and Browserbase, enabling LLMs to i…

  • Read a URL as clean markdown, screenshot a website, url to PDF. Web access for agents, no signup.

View all MCP Connectors

Latest Blog Posts

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/Nafi-Jza/websearch-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server