qwen-web-research-mcp
MCP server that fetches web pages and uses local Qwen models to answer questions about their content, with site-scoped search and map-reduce chunking for long pages.
README
qwen-web-research-mcp
MCP server for web research: given a URL (or a site + phrase to search), it fetches the full page content, and uses a local Qwen model (via Ollama) to extract/answer a question about it. Long pages are automatically split into chunks and analyzed with a map-reduce strategy, so nothing is skipped.
Content extraction uses trafilatura, which strips navigation/ads/boilerplate based on content heuristics rather than site-specific CSS selectors — so it keeps working if a site's layout changes. Site-scoped search uses DuckDuckGo's site: operator, so any domain works without custom scraping code per site.
Tools
analyze_page(url, question)— fetch a page and answerquestionabout its full content.search_site_and_analyze(site, phrase, question, max_results)— find pages onsitecontainingphrase, then runanalyze_page-style extraction on each match.list_available_models()— list the Qwen/Ollama models available on the configured Ollama server.
Requirements
- Python 3.11+
- An Ollama server with at least one Qwen model pulled (defaults to
qwen3:14b)
Configuration (environment variables)
| Variable | Default | Description |
|---|---|---|
QWEN_MODEL |
qwen3:14b |
Ollama model to use |
OLLAMA_PORT |
11434 |
Port of the Ollama server |
OLLAMA_HOST_IP |
auto-detected | Override the Ollama host IP. If unset, it's read from ip route show default (useful when running inside WSL and Ollama runs on the Windows host) |
MCP_TRANSPORT |
stdio |
stdio, sse, or streamable-http |
MCP_HOST |
127.0.0.1 |
Bind host (HTTP transports only) |
MCP_PORT |
8000 |
Bind port (HTTP transports only) |
Run locally
python3 -m venv .venv
.venv/bin/pip install -e .
.venv/bin/python -m qwen_web_research.server
Run with Docker
docker build -t qwen-web-research-mcp .
docker run -p 8001:8000 \
-e MCP_TRANSPORT=streamable-http \
-e MCP_HOST=0.0.0.0 \
-e OLLAMA_HOST_IP=host.docker.internal \
qwen-web-research-mcp
Or as a service in a docker-compose.yml alongside other tools (e.g. Open WebUI):
qwen-web-research:
build: ./qwen-web-research-mcp
ports:
- "8001:8000"
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- MCP_TRANSPORT=streamable-http
- MCP_HOST=0.0.0.0
- MCP_PORT=8000
- OLLAMA_HOST_IP=host.docker.internal
- QWEN_MODEL=qwen3:14b
Then point your MCP client (e.g. Open WebUI's Tools/Connections settings) at http://qwen-web-research:8000/mcp (internal Docker network) or http://localhost:8001/mcp (from the host).
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.