web-search-mcp
Provides web search, image search, and URL fetching capabilities by leveraging the SearXNG meta-search engine, enabling AI agents to search the internet and retrieve content from web pages without requiring API keys.
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., "@web-search-mcpsearch for latest advancements in renewable energy"
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.
Free Web Search MCP 🔍
MCP server สำหรับ ค้นหาเว็บ + อ่านเนื้อหาหน้าเว็บ แบบฟรี 100% ไม่ต้องสมัคร ไม่ต้องมี API key ของ Google/Bing — ใช้ SearXNG (meta-search ที่รันเองบน Docker)
ให้ OpenWebUI หรือ CLI ที่ไม่มี search engine สามารถ "เสิร์ชอินเทอร์เน็ต" ได้
เครื่องมือ (tools) ที่ให้
Tool | หน้าที่ |
| ค้นหาเว็บ คืนชื่อเรื่อง + ลิงก์ + สรุปย่อ |
| ดึงเนื้อหาหลักของหน้าเว็บ แปลงเป็นข้อความสะอาด |
| ค้นรูปภาพ คืน markdown ฝังรูป + ลิงก์แหล่งที่มา |
| วิจัยเชิงลึก: ค้นหลายแหล่งพร้อมกัน ดึงเนื้อหาเต็ม รวมเป็นเอกสารเดียวพร้อมเลขอ้างอิง [1][2]… + รูปภาพ + รายการแหล่งอ้างอิง |
Deep Research ทำงานยังไง? ตัว MCP รวบรวม "หลักฐาน" จากหลายแหล่ง (ฟรี ไม่ต้องมี LLM/API key) แล้วส่งเนื้อหา+อ้างอิง+รูปกลับไป ให้ LLM ใน OpenWebUI เป็นคนเรียบเรียงสรุปโดยอ้างอิงเลข [n] — ได้ผลแนวเดียวกับ Deep Research โดยไม่เสียเงิน
Related MCP server: SearXNG MCP Server
สถาปัตยกรรม
OpenWebUI ──HTTP/OpenAPI──> mcpo ──MCP stdio──> server.py ──HTTP──> SearXNG ──> อินเทอร์เน็ต
CLI (Claude Code/Cline) ───────────MCP stdio──> server.py ──┘วิธีติดตั้ง (Docker — แนะนำ)
cd "Code VSTH/web-search-mcp"
# 1) ตั้ง secret_key ของ SearXNG ให้เป็นค่าสุ่ม
# แก้ไฟล์ searxng/settings.yml บรรทัด secret_key
# 2) (ทางเลือก) ตั้ง API key ให้ mcpo
cp .env.example .env # แล้วใส่ MCPO_API_KEY ถ้าต้องการ
# 3) สั่งรันทั้งระบบ
docker compose up -d --buildตรวจสอบ:
SearXNG : http://localhost:8080 (ลองค้นหาดูได้)
OpenAPI docs : http://localhost:8000/docs (จะเห็น web_search / fetch_url)
ทดสอบ JSON API ของ SearXNG :
curl "http://localhost:8080/search?q=test&format=json"
ต่อกับ OpenWebUI
เปิด OpenWebUI → Settings → Tools (หรือ Admin → Settings → Tools / Functions → External Tools)
Add Tool Server ใส่ URL:
http://localhost:8000ถ้า OpenWebUI รันใน Docker คนละ network ให้ใช้
http://host.docker.internal:8000หรือเอา servicemcpไปอยู่ network เดียวกับ OpenWebUI แล้วใช้ชื่อ serviceถ้าตั้ง
MCPO_API_KEYไว้ ให้ใส่ key นั้นในช่อง API keyบันทึก แล้วเปิดใช้งานในแชท — โมเดลจะเรียก
web_search/fetch_urlได้เอง
ต่อกับ CLI ที่พูด MCP (Claude Code / Cline ฯลฯ)
รันแบบ stdio โดยตรง (ไม่ต้องใช้ mcpo). ติดตั้ง deps ในเครื่องก่อน:
pip install -r mcp/requirements.txtตัวอย่าง config (เช่น claude_desktop_config.json หรือ MCP config ของ CLI):
{
"mcpServers": {
"web-search": {
"command": "python",
"args": ["C:\\Users\\LAPTOP-BACKER\\Code VSTH\\web-search-mcp\\mcp\\server.py"],
"env": { "SEARXNG_URL": "http://localhost:8080" }
}
}
}ต้องให้ container
searxngรันอยู่ (docker compose up -d searxng) เพื่อให้SEARXNG_URLใช้งานได้
เพิ่มใน Claude Code ได้ด้วย:
claude mcp add web-search -e SEARXNG_URL=http://localhost:8080 -- python "C:/Users/LAPTOP-BACKER/Code VSTH/web-search-mcp/mcp/server.py"ปรับแต่ง (env)
ตัวแปร | ค่าเริ่มต้น | ความหมาย |
|
| ที่อยู่ SearXNG |
|
| timeout (วินาที) |
|
| เพดานจำนวนผลลัพธ์ |
|
| จำนวนหน้าที่ deep_research ดึงพร้อมกัน |
| (ว่าง) | API key ของ OpenAPI endpoint |
หมายเหตุ
ทุกอย่างฟรี ไม่มีค่าใช้จ่าย แต่ SearXNG ดึงจาก engine สาธารณะ — ถ้ายิงถี่มากบาง engine อาจ rate-limit (แก้ได้โดยเปิด/ปิด engine ใน
searxng/settings.yml)เปลี่ยน
secret_keyในsearxng/settings.ymlก่อนใช้งานจริงเสมอ
This server cannot be deployed
Maintenance
Related MCP Connectors
LLM-ready web search + instant answers + URL-to-clean-text fetch for agents and RAG.
Web search, fetch, extract, and research for AI agents. Markdown output + AI-synthesized answers.
Web search, browser automation, scraping, crawling and CAPTCHA solving for AI agents.
The best web search for your AI Agent
Related MCP Servers
- AlicenseBqualityCmaintenanceProvides web search capabilities using SearxNG, allowing AI assistants like Claude to search the web with a privacy-respecting metasearch engine.111MIT
- AlicenseAqualityDmaintenanceProvides privacy-focused web search capabilities through SearXNG metasearch engine, enabling web, image, video, and news searches without tracking. Includes comprehensive research tools that aggregate and analyze results from multiple search engines.34MIT
- AlicenseAqualityDmaintenanceEnables web search, image search, and news search through a self-hosted SearXNG instance. Provides privacy-focused meta-search capabilities aggregating results from multiple search engines.31MIT
- AlicenseBqualityDmaintenanceFree web search for your AI using public SearXNG instances, with parallel multi-server requests and throttling.16 npmMIT