Skip to main content
Glama

free_web_mcp

Free Web MCP – ein kostenloser MCP-Server, der Claude / Cursor / anderen MCP-Clients Websuche (DuckDuckGo, ohne API-Key) sowie Tools zum Web-Scraping und zur Textextraktion bereitstellt.

Detaillierte Anforderungen finden Sie in docs/free_web_mcp.md.

Tools

Tool

Beschreibung

web_search(query, max_results=5)

DuckDuckGo-Suche, gibt eine Liste von {title,url,snippet,source} zurück

web_fetch(url, rendered=False)

Ruft eine Webseite ab, extrahiert den Haupttext und gibt {url,title,content,text_length} zurück; bei rendered=True kommt headless Chromium zum Einsatz (erfordert RENDER_ENABLED=true)

web_search_and_fetch(query, max_results=5, rendered=False)

Sucht und ruft anschließend die Haupttexte der Top-N-Ergebnisse einzeln ab

Related MCP server: qsearch

Schnellstart

uv sync

stdio-Modus (lokale Clients)

uv run free-web-mcp                # 或: uv run python -m free_web_mcp

Konfigurationsbeispiel für Cursor / Claude Desktop:

{
  "mcpServers": {
    "free-web-mcp": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/free_web_mcp", "free-web-mcp"]
    }
  }
}

HTTP-Modus (Remote-Bereitstellung)

uv run free-web-mcp --transport http   # 监听 .env 中的 HOST/PORT,默认 0.0.0.0:8000
curl http://localhost:8000/health      # -> {"status":"ok","service":"free-web-mcp"}

MCP-streamable-http-Endpunkt: http://<host>:8000/mcp.

Docker

# 默认:仅 HTTP 抓取路径
docker build -f docker/Dockerfile -t free-web-mcp .
docker run --rm -p 8000:8000 free-web-mcp

# 启用 headless 渲染(构建时下载 Chromium ~150MB;首次启动约 1-3s)
docker build -f docker/Dockerfile --build-arg INSTALL_PLAYWRIGHT_BROWSERS=true -t free-web-mcp:render .
docker run --rm -p 8000:8000 -e RENDER_ENABLED=true free-web-mcp:render

Konfiguration (.env)

.env.example nach .env kopieren und nach Bedarf anpassen; .env wird nicht ins Repository aufgenommen.

Variable

Standard

Beschreibung

HOST / PORT

0.0.0.0 / 8000

HTTP-Listenadresse

LOG_LEVEL

INFO

Log-Level

HTTP_TIMEOUT

30

Abruf-Timeout (Sekunden)

MAX_CONTENT_LENGTH

5000000

Obergrenze für die Antwortgröße (Bytes)

SEARCH_MAX_RESULTS

10

Harte Obergrenze für max_results

RENDER_ENABLED

false

Aktiviert den Headless-Browser (Playwright + Chromium)

RENDER_TIMEOUT

30

Render-Timeout (Sekunden)

RENDER_MAX_BYTES

5000000

Obergrenze für die Antwortgröße nach dem Rendern (Bytes)

Entwicklung

uv run pytest                  # 测试
uv run ruff check .            # lint
uv run mypy                    # 类型检查(strict)

Architektur

Strikte Schichtung: MCP-Tool-Ebene → Service-Ebene (SearchService/FetchService) → Provider/HTTP-Ebene. Die Suchquelle ist austauschbar (aktuelle Implementierung: DuckDuckGoProvider); HTTP läuft einheitlich über WebClient. Für die Textextraktion wird bevorzugt trafilatura verwendet, mit BeautifulSoup als Fallback. Details siehe AGENTS.md.

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
    Not graded
    quality
    C
    maintenance
    Enables AI agents to perform web searches with full content retrieval and multi-engine provenance, including trust scoring and local corpus persistence, via MCP integration.
    3
    2
    Apache 2.0
  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to perform unified web research through a single MCP server, including search, page fetching, recursive crawling, document parsing, YouTube transcript extraction, and deep multi-query research.
    2

View all related MCP servers

Related MCP Connectors

  • Stealth web browser for agents: search, fetch, click, download and type in persistent MCP sessions.

  • Web tools for agents: fetch URL as markdown (free MCP) + x402 scrape, links, AI JSON, snapshot.

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

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/chenxuyaun/free_web_mcp'

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