mcp-web-search
mcp-web-search
MCP-Server (Model Context Protocol) für Internetrecherchen, bereitgestellt auf Vercel als zustandslose HTTP-API. Ermöglicht KI-Agenten wie Antigravity, im Web zu suchen, Seiten zu lesen, REST-APIs zu nutzen und Links zu extrahieren – ohne Probleme mit Anti-Bot-Blockaden.
Verfügbare Tools
Tool | Beschreibung |
| Sucht im Internet über die Tavily API und gibt Titel, URL und Snippet jedes Ergebnisses zurück |
| Verwendet Tavily Extract, um Seiten unter Umgehung von Anti-Bot-Blockaden herunterzuladen, und gibt den Inhalt als Markdown, reinen Text oder HTML zurück |
| Führt per Axios einen GET-Request auf eine beliebige URL aus und gibt das JSON der Antwort zurück (ideal für öffentliche REST-APIs) |
| Verwendet Tavily Extract, um die Seite zu lesen, und extrahiert alle Links mit Unterstützung für Filter nach Domäne |
Related MCP server: Spider MCP Server
Stack
Next.js 16 (App Router) — Server-Framework
mcp-handler — HTTP-Adapter für das MCP-Protokoll
@modelcontextprotocol/server — MCP SDK v2
Tavily API — offizielle Such- und Seiten-Extraktions-API (immun gegen Anti-Bot-Blockaden)
axios + cheerio + turndown — für REST-APIs und das Parsen von HTML-Inhalten
Zod v4 — Schema-Validierung der Tools
Vercel Hobby — kostenloses Hosting (60s Timeout pro Request)
Tavily API konfigurieren
Da Vercel und andere Rechenzentren beim Scraping von Webinhalten häufig von Firewalls blockiert werden, verwendet dieses Projekt Tavily – eine auf KI ausgerichtete API, die Seiten lesen und im Internet suchen kann – 100 % zuverlässig.
Damit alles einwandfrei funktioniert:
Erstellen Sie ein kostenloses Konto auf tavily.com (1.000 kostenlose Anfragen pro Monat inklusive).
Gehen Sie zum Dashboard Ihres Hostings (z. B. Vercel) und fügen Sie die folgende Umgebungsvariable hinzu:
TAVILY_API_KEY:sua_chave_aqui
Deployment auf Vercel
Voraussetzungen
Node.js 20+
pnpm
1. Repository klonen
git clone https://github.com/suportebono/mcp-web-search.git
cd mcp-web-search
pnpm install2. Lokal testen
pnpm devDer MCP-Endpunkt ist unter http://localhost:3000/api/mcp verfügbar.
Um die Tools visuell zu prüfen:
npx @modelcontextprotocol/inspector http://localhost:3000/api/mcp3. Auf Vercel veröffentlichen
npx vercelNach dem Deployment erhalten Sie eine URL im Format https://mcp-web-search-xxx.vercel.app. Vergessen Sie nicht, den TAVILY_API_KEY zu konfigurieren!
Konfiguration in Antigravity
Bearbeiten Sie die Datei ~/.gemini/config/mcp_config.json (erstellen Sie sie, falls sie nicht existiert):
{
"mcpServers": {
"web-search": {
"serverUrl": "https://seu-projeto.vercel.app/api/mcp"
}
}
}Starten Sie Antigravity neu und prüfen Sie unter ... > MCP Servers – die 4 Tools sollten aufgelistet sein.
Konfiguration in anderen MCP-Clients
Claude Desktop / Cursor / Windsurf
Fügen Sie Folgendes zur Konfigurationsdatei Ihres Clients hinzu:
{
"mcpServers": {
"web-search": {
"url": "https://seu-projeto.vercel.app/api/mcp"
}
}
}Clients, die nur stdio unterstützen
Verwenden Sie das Paket mcp-remote als Proxy:
{
"mcpServers": {
"web-search": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://seu-projeto.vercel.app/api/mcp"]
}
}
}Referenz der Tools
web_search
Durchsucht das Internet mithilfe der Tavily-API.
Parameter:
Name | Typ | Erforderlich | Beschreibung |
|
| ✅ | Suchbegriffe |
|
| ❌ | Anzahl der Ergebnisse (Standard: 5) |
Beispiel für die Rückgabe:
[
{
"title": "Next.js 15 — Blog",
"url": "https://nextjs.org/blog/next-15",
"snippet": "Next.js 15 introduces...",
"source": "nextjs.org"
}
]read_webpage
Liest und extrahiert den Inhalt einer URL unter Umgehung von Paywalls und Anti-Bots mithilfe von Tavily Extract.
Parameter:
Name | Typ | Erforderlich | Beschreibung |
|
| ✅ | URL der Seite |
|
| ❌ | Ausgabeformat (Standard: |
Entfernt automatisch Skripte, Stile, Anzeigen, Navigation und Fußzeile, bevor der Inhalt zurückgegeben wird.
fetch_json
Führt eine GET-Anfrage über Axios aus und gibt das rohe JSON zurück.
Parameter:
Name | Typ | Erforderlich | Beschreibung |
|
| ✅ | URL der API |
|
| ❌ | Optionale HTTP-Header |
extract_links
Verwendet Tavily Extract, um das tatsächliche HTML der Seite zu lesen (einschließlich dynamischer Websites) und extrahiert alle Links.
Parameter:
Name | Typ | Erforderlich | Beschreibung |
|
| ✅ | URL der Seite |
|
| ❌ | Filtert Links, die diese Teilzeichenfolge enthalten (z. B. |
Beispiel für die Rückgabe:
[
{
"text": "Documentação",
"href": "/docs",
"absolute_url": "https://exemplo.com/docs"
}
]Projektstruktur
mcp-web-search/
├── app/
│ └── api/
│ └── mcp/
│ └── route.ts ← Endpoint MCP (GET + POST)
├── lib/
│ ├── mcp-server.ts ← Registro de todas as ferramentas
│ └── tools/
│ ├── web-search.ts ← Busca via Tavily API
│ ├── read-webpage.ts ← Leitura e parsing de páginas (Tavily Extract)
│ ├── fetch-json.ts ← Fetch de APIs REST genéricas
│ └── extract-links.ts ← Extração de links via Tavily Extract HTML
├── next.config.ts
└── package.jsonUnterstütztes MCP-Protokoll
Dieser Server implementiert die Spezifikation MCP 2026-07-28 über den Transport Streamable HTTP stateless und ist mit modernen Clients kompatibel. Er bietet außerdem einen automatischen Fallback für Clients, die die Streamable-HTTP-Spezifikation aus der Ära 2025 verwenden.
Lizenz
MIT
This server cannot be installed
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
- AlicenseAqualityDmaintenanceEnables AI assistants to access real-time web data through search, markdown scraping, and browser automation while bypassing anti-bot protections. It provides tools for web research, e-commerce monitoring, and data extraction from across the globe.46,1036MIT
- AlicenseAqualityFmaintenanceEnables AI agents to crawl, scrape, search, and automate browsers with anti-bot bypass, providing fast web access via 22 tools.22433MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to perform web searches, extract webpage content, and conduct end-to-end search-and-extract operations using multiple search providers and content extraction methods.
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to fetch and extract clean, readable content from web pages, and search within pages for specific queries, without needing a full browser.1MIT
Related MCP Connectors
Reliable web access for AI agents: smart HTTP, rotating proxies, and full-browser rendering.
AI-powered browser automation — navigate, click, fill forms, and extract data from any website.
Give your agent live data from Twitter, Reddit, the web and GitHub. No API keys, no scraping stack.
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/DaviDaminelli/mcp-web-search'
If you have feedback or need assistance with the MCP directory API, please join our Discord server