Skip to main content
Glama
mcp-web-research

mcp-web-research

by deialedin
README.md
# mcp-web-research

MCP server for web research with 7 search engines, automatic fallback, page fetching via Jina Reader, and privacy-first browsing.

Works out of the box with DuckDuckGo (no API key needed). Add API keys for Brave, Tavily, Google, Bing, or Jina for better results.

## Tools

### `web_search`

Search the web with automatic engine fallback.

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `query` | string | yes | Search query |
| `engine` | string | no | Engine to use (default: duckduckgo) |
| `max_results` | number | no | Max results 1-50 (default: 10) |

**Fallback chain**: DuckDuckGo → Tavily → Brave → Bing → Google → Jina (tries next on failure)

### `fetch_page`

Fetch a web page and return clean markdown content.

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | yes | URL to fetch |

Uses Jina Reader for high-quality markdown extraction. Falls back to direct fetch if Jina is unavailable.

### `list_engines`

List available search engines based on your configured API keys.

## Installation

```bash
npm install mcp-web-research
```

Or run directly:

```bash
npx mcp-web-research
```

## Configuration

### Claude Desktop / Cursor / MCP Client

```json
{
  "mcpServers": {
    "web-research": {
      "command": "npx",
      "args": ["mcp-web-research"],
      "env": {
        "TAVILY_API_KEY": "your-key",
        "BRAVE_API_KEY": "your-key"
      }
    }
  }
}
```

### Environment Variables

| Variable | Required | Description |
|----------|----------|-------------|
| `TAVILY_API_KEY` | No | Tavily AI search ($0.008/credit, best quality) |
| `BRAVE_API_KEY` | No | Brave Search (free tier: 2K queries/month) |
| `BING_API_KEY` | No | Azure Bing Web Search |
| `GOOGLE_API_KEY` | No | Google Custom Search API |
| `GOOGLE_SEARCH_CX` | No | Google Custom Search engine ID |
| `JINA_API_KEY` | No | Jina AI (free key at jina.ai/reader, 180 RPM vs 18 RPM without) |
| `SEARXNG_URL` | No | Self-hosted SearXNG instance URL |

**No API keys needed** — DuckDuckGo and SearXNG work without configuration.

## Search Engines

| Engine | API Key? | Rate Limit | Notes |
|--------|----------|-----------|-------|
| DuckDuckGo | No | 10/min | Default, scraping-based |
| Tavily | Yes | 20/min | AI-native, best for research |
| Brave | Yes | 15/min | Free tier 2K/month |
| Bing | Yes | 15/min | Azure free tier available |
| Google | Yes | 10/min | Requires Custom Search setup |
| SearXNG | No | 5/min | Metasearch, public instances |
| Jina | Optional | 18-180/min | Search + page reader |

## Privacy

- Tracking parameters automatically stripped from URLs (60+ patterns)
- User-Agent rotation to prevent fingerprinting
- No data stored server-side (stateless)

## Development

```bash
git clone https://github.com/deialedin/mcp-web-research
cd mcp-web-research
npm install
npm run build
npm test
```

## License

MIT

TDQS

A3.6/5.0

Scored across 3 tools

Disambiguation5/5

Each tool targets a clearly distinct operation: enumerating engines, running a search, and fetching a page's content. There is no overlap between discovery (list_engines), querying (web_search), and retrieval (fetch_page).

Naming Consistency4/5

All names use snake_case with an action-oriented verb (list_engines, fetch_page) except web_search, which puts the noun first. The pattern is still readable and predictable, with only a minor deviation.

Tool Count4/5

Three tools is lean but each one earns its place in a search-then-fetch workflow. It is slightly under-provisioned (no controls for engine choice or result limits), but nothing is redundant.

Completeness3/5

The core loop of find engines → search → fetch is covered, but there are notable gaps: no way to force a specific engine per search, no pagination/result-count control, and no raw-HTML or metadata retrieval. Agents can work around these, but the surface is thin for a research server.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues