WebSearch MCP Server
Provides web search capabilities using DuckDuckGo HTML, returning parsed results (Title, URL, Snippet).
Allows logging into Google accounts via headed browser to maintain authenticated sessions for subsequent headless scraping.
Extracts transcripts from YouTube videos, using internal API first and falling back to browser automation if blocked.
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., "@WebSearch MCP Serversearch for MCP server best practices"
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.
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-profileto save your cookies, logins, and session state across runs.
Related MCP server: Web Search MCP
Prerequisites
Node.js (v18 or higher)
Installation
Clone the repository:
git clone https://github.com/nafi-jza/websearch-mcp.git cd websearch-mcpInstall dependencies:
npm installInstall Playwright browsers:
npx playwright install chromiumBuild 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:blankpages and closes browser instances strictly after automated executions to prevent memory leaks and zombie processes.Logging & Output: All activity is logged to
activity.login the root directory. Markdown outputs of scrapes are saved locally to theoutputs/directory for historical reference.
Maintenance
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
- Alicense-qualityDmaintenanceEnables web search across Bing, DuckDuckGo, and Google using Playwright automation, with tools for retrieving search results and extracting page text content.7MIT
- Alicense-qualityCmaintenanceEnables 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.11MIT
- AlicenseCqualityAmaintenanceEnables 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.741MIT
- FlicenseAqualityCmaintenanceEnables web search, content fetching, dynamic page scraping, and URL preview via DuckDuckGo, Playwright, and Cheerio, without requiring API keys.4
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.
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/Nafi-Jza/websearch-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server