Skip to main content
Glama
Web Search MCP
by laptimehq
README.md
<div align="center">

<img src="assets/banner.png" alt="Web Search MCP: Search and read the web from any agent" width="820">

# Web Search MCP Server

**Web search and website crawling for Claude, ChatGPT, Cursor, VS Code, any MCP client or your own code: search results, whole sites as clean Markdown, and contact details. No search API key.**

[![Remote MCP server](https://img.shields.io/badge/MCP-remote_server-1D1D1F?logo=modelcontextprotocol&logoColor=white)](#quick-start)
[![MCP Registry](https://img.shields.io/badge/MCP_Registry-io.github.laptimehq%2Fweb--search--mcp-FF5A1F)](https://registry.modelcontextprotocol.io)
[![Validate](https://github.com/laptimehq/web-search-mcp/actions/workflows/validate.yml/badge.svg)](https://github.com/laptimehq/web-search-mcp/actions/workflows/validate.yml)
[![License: MIT](https://img.shields.io/badge/license-MIT-green)](LICENSE)

[![Install in Cursor](https://custom-icon-badges.demolab.com/badge/Install_in_Cursor-000000?style=for-the-badge&logo=cursor-ai-white)](https://cursor.com/en/install-mcp?name=web-search&config=eyJ1cmwiOiJodHRwczovL21jcC5hcGlmeS5jb20vP3Rvb2xzPWZldGNoLWFjdG9yLWRldGFpbHMsZ2V0LWFjdG9yLXJ1bixnZXQtZGF0YXNldC1pdGVtcyxsYXB0aW1lL3dlYi1zZWFyY2gsbGFwdGltZS93ZWJzaXRlLWNvbnRlbnQtY3Jhd2xlcixsYXB0aW1lL2NvbnRhY3QtZGV0YWlscy1zY3JhcGVyIn0=) 
[![Install in VS Code](https://custom-icon-badges.demolab.com/badge/Install_in_VS_Code-007ACC?style=for-the-badge&logo=vsc&logoColor=white)](https://vscode.dev/redirect/mcp/install?name=web-search&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.apify.com%2F%3Ftools%3Dfetch-actor-details%2Cget-actor-run%2Cget-dataset-items%2Claptime%2Fweb-search%2Claptime%2Fwebsite-content-crawler%2Claptime%2Fcontact-details-scraper%22%7D) 
[![Install in VS Code Insiders](https://custom-icon-badges.demolab.com/badge/VS_Code_Insiders-24BFA5?style=for-the-badge&logo=vsc&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=web-search&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.apify.com%2F%3Ftools%3Dfetch-actor-details%2Cget-actor-run%2Cget-dataset-items%2Claptime%2Fweb-search%2Claptime%2Fwebsite-content-crawler%2Claptime%2Fcontact-details-scraper%22%7D&quality=insiders) 
[![Claude Code plugin](https://img.shields.io/badge/Claude_Code-Plugin-C66140?style=for-the-badge&logo=claude&logoColor=white)](#client-setup)

[Quick start](#quick-start) · [Agent setup](#set-up-with-your-ai-agent) · [Tools](#tools) · [Client setup](#client-setup) · [Use from code](#use-it-from-code) · [Pricing](#pricing) · [FAQ](#faq)

</div>

Web Search MCP gives your AI assistant live access to the web. It searches and reads the top pages as Markdown, crawls whole websites and docs into clean text for answers and RAG, and finds emails, phone numbers and social links on company sites. Results come back as structured rows it can cite.

## Set up with your AI agent

Paste this repository's URL into Claude Code, Codex, Cursor or another agent and ask it to set up Web Search MCP. The steps below are written so your agent can follow them.

**For AI agents installing this server:**

1. This is a hosted remote MCP server (streamable HTTP). There is nothing to download or build. It needs a free Apify account and an Apify sign-in (OAuth) in the user's browser; do not ask for an API token unless the sign-in fails.
2. Server name `web-search`, server URL:
   ```text
   https://mcp.apify.com/?tools=fetch-actor-details,get-actor-run,get-dataset-items,laptime/web-search,laptime/website-content-crawler,laptime/contact-details-scraper
   ```
3. Add it with the client's own command:
   - Claude Code: `claude plugin marketplace add laptimehq/web-search-mcp`, then `claude plugin install web-search@web-search-mcp` (adds the server and the Web Search MCP skill).
   - Codex: `codex mcp add web-search --url "<server URL>"`, then `codex mcp login web-search`.
   - VS Code: `code --add-mcp '{"name":"web-search","type":"http","url":"<server URL>"}'`.
   - Cursor and other clients: add `{"mcpServers": {"web-search": {"url": "<server URL>"}}}` to the client's MCP config file (Cursor: `~/.cursor/mcp.json`).
4. Ask the user to complete the sign-in. In Claude Code they run `/mcp`, select web-search and choose **Authenticate**; other clients open the Apify sign-in page themselves. A client restart may be needed before the tools appear.
5. Check it works with a small call, for example `laptime--web-search` with `{"method": "GET", "path": "/", "query": {"query": "openai api pricing", "maxResults": 5}}`. Every returned row is billed to the user's Apify account, so keep test runs small.
6. Before real requests, read the [Web Search MCP skill](skills/web-search/SKILL.md): it explains the run flow and which inputs return good results.

## Why Web Search MCP

- **No search API key.** No Google, Bing or Brave key and no monthly plan.
- **Fast.** Results in under a second per query (median, 30 Nov 2026).
- **Read, not just search.** The top pages and whole sites come back as clean Markdown your assistant can quote.
- **Empty searches are free.** You pay per search that returns results.
- **Nothing to install.** A hosted remote MCP server: add one URL and sign in with Apify. Works in claude.ai and ChatGPT, not only in desktop apps.
- **Made for assistants.** A bundled skill teaches your assistant the inputs that work, and tool descriptions carry every option.
- **Pay per result.** Billed to your own Apify account, no subscription, no start fee. Apify's free plan includes $5 of usage a month.

| | Web Search MCP | Search APIs |
|---|---|---|
| API key and plan | Not needed, pay per search | Key plus a monthly plan |
| Page content | Top pages as Markdown included | Links and snippets only |
| Whole-site crawl | Included | Separate product |
| Contact details | Included | Not available |

## Tools

| Tool | What you get | Store page |
|---|---|---|
| **Web search** | Results with title, URL, snippet, position and date, and the top pages as Markdown. | [web-search](https://apify.com/laptime/web-search?utm_source=github&utm_medium=mcp) |
| **Website crawler** | Websites, docs and blogs to clean Markdown and text: menus, footers and cookie banners removed, JavaScript pages and PDFs included. | [website-content-crawler](https://apify.com/laptime/website-content-crawler?utm_source=github&utm_medium=mcp) |
| **Contact details** | Emails, phone numbers and social profiles from company websites. | [contact-details-scraper](https://apify.com/laptime/contact-details-scraper?utm_source=github&utm_medium=mcp) |

All tools are read-only. They never post, message, follow or buy anything.

## Quick start

1. **Create a free [Apify account](https://console.apify.com/sign-up?utm_source=github&utm_medium=mcp)** if you do not have one.
2. **Add the server to your assistant.** Click a button above, or follow the steps for your client below.
3. **Sign in with Apify when your assistant asks**, then ask a question such as *"Search the web for this week's reviews of the Framework 13 and summarise what changed, with sources."*

**About the Apify sign-in page.** Apify notes that your assistant was registered dynamically and asks for API access; every assistant that signs in this way sees that notice. It lets your assistant start runs on your account, and you can remove the access at any time on your [Apify Console integrations page](https://console.apify.com/settings/integrations).

Server URL, for any client that accepts a remote MCP server:

```text
https://mcp.apify.com/?tools=fetch-actor-details,get-actor-run,get-dataset-items,laptime/web-search,laptime/website-content-crawler,laptime/contact-details-scraper
```

## Client setup

<details open>
<summary><b>Claude (claude.ai and Claude Desktop)</b></summary>

1. Open **Settings** > **Connectors** and select **Add custom connector**.
2. Name it `Web Search MCP` and paste the server URL above.
3. Select **Connect** and sign in with Apify.
4. In a chat, enable the Web Search MCP connector from the tools menu.

For better results, also add the [Web Search MCP skill](skills/web-search/SKILL.md): zip the `skills/web-search` folder and upload it under **Skills** in Claude's settings.

</details>

<details>
<summary><b>Claude Code</b></summary>

Plugin (server plus the Web Search MCP skill, recommended):

```text
/plugin marketplace add laptimehq/web-search-mcp
/plugin install web-search@web-search-mcp
```

Server only:

```bash
claude mcp add --transport http web-search "https://mcp.apify.com/?tools=fetch-actor-details,get-actor-run,get-dataset-items,laptime/web-search,laptime/website-content-crawler,laptime/contact-details-scraper"
```

Then sign in: run `/mcp`, select the web-search server and choose **Authenticate**.

</details>

<details>
<summary><b>Cursor</b></summary>

Click **Install in Cursor** above, or add [`examples/cursor-mcp.json`](examples/cursor-mcp.json) to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (one project). Cursor asks you to sign in with Apify on first use.

</details>

<details>
<summary><b>VS Code and GitHub Copilot</b></summary>

Click **Install in VS Code** above, or add [`examples/vscode-mcp.json`](examples/vscode-mcp.json) to `.vscode/mcp.json`. Start the server from the MCP view and sign in with Apify when prompted. Use the tools in Copilot Chat agent mode.

</details>

<details>
<summary><b>ChatGPT</b></summary>

1. In ChatGPT, add a custom MCP server (connector) and name it `Web Search MCP`.
2. Paste the server URL above and choose **OAuth** authentication.
3. Sign in with Apify, then select Web Search MCP in a new chat.

Business, Enterprise and Edu workspaces may need an admin to enable custom servers. See OpenAI's [custom MCP server guide](https://help.openai.com/en/articles/12584461-connecting-custom-mcp-servers-in-chatgpt).

</details>

<details>
<summary><b>Codex</b></summary>

```bash
codex mcp add web-search --url "https://mcp.apify.com/?tools=fetch-actor-details,get-actor-run,get-dataset-items,laptime/web-search,laptime/website-content-crawler,laptime/contact-details-scraper"
codex mcp login web-search
```

Or copy [`examples/codex-config.toml`](examples/codex-config.toml) into `~/.codex/config.toml`.

</details>

<details>
<summary><b>Other clients, or a token instead of sign-in</b></summary>

Most clients that support remote MCP servers accept:

```json
{
  "mcpServers": {
    "web-search": {
      "url": "https://mcp.apify.com/?tools=fetch-actor-details,get-actor-run,get-dataset-items,laptime/web-search,laptime/website-content-crawler,laptime/contact-details-scraper"
    }
  }
}
```

If your client cannot complete the Apify sign-in, send your Apify token as a header instead, see [`examples/bearer-token-mcp.json`](examples/bearer-token-mcp.json). Copy the token from your [Apify Console integrations page](https://console.apify.com/settings/integrations) and keep it out of shared files. Clients that only run local servers can bridge with `mcp-remote`, see [`examples/claude-desktop-config.json`](examples/claude-desktop-config.json).

</details>

## Use it from code

Each tool is also an [Apify Actor](https://apify.com/laptime?utm_source=github&utm_medium=mcp) with a REST API, so you can call it from your own code, a pipeline or an automation, without an assistant. Copy your API token from the [Apify Console integrations page](https://console.apify.com/settings/integrations). The input fields are the same ones the assistant uses; each Store page has an **API** tab with the full input reference.

<details open>
<summary><b>Python</b></summary>

```bash
pip install apify-client
```

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("laptime/web-search").call(run_input={"query": "openai api pricing"})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

</details>

<details>
<summary><b>JavaScript and TypeScript</b></summary>

```bash
npm install apify-client
```

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('laptime/web-search').call({"query": "openai api pricing"});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

</details>

<details open>
<summary><b>One GET request</b></summary>

`web-search` also answers a plain GET request, with the answer in the response. No run to start or poll:

```bash
curl -H "Authorization: Bearer $APIFY_TOKEN" "https://laptime--web-search.apify.actor/?query=openai+api+pricing&maxResults=5"
```

The query parameters are the ones in the [skill](skills/web-search/SKILL.md). The first request can take a few seconds longer while the server starts.

</details>

<details>
<summary><b>HTTP</b></summary>

Start a run and get its results in one request:

```bash
curl -X POST "https://api.apify.com/v2/acts/laptime~web-search/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"query": "openai api pricing"}'
```

This waits up to 300 seconds. For bigger runs, start the run asynchronously and read its dataset when it finishes, see the [Apify API reference](https://docs.apify.com/api/v2/act-run-sync-get-dataset-items-post).

</details>

<details>
<summary><b>n8n, Make and Zapier</b></summary>

Use Apify's official integration for [n8n](https://docs.apify.com/platform/integrations/n8n), [Make](https://docs.apify.com/platform/integrations/make) or [Zapier](https://docs.apify.com/platform/integrations/zapier), choose the Actor (for example `laptime/web-search`) and pass the same JSON input. Ready-made n8n workflows: [laptimehq/n8n-templates](https://github.com/laptimehq/n8n-templates).

</details>

Other tools: replace the Actor ID with `laptime/website-content-crawler`, `laptime/contact-details-scraper`.

## Example prompts

- *Search for 'best open-source vector database 2026' and compare the top 5 answers.*
- *Crawl https://docs.apify.com/platform and answer: how do schedules work?*
- *Find the emails and phone numbers on these 20 company websites.*
- *What is the current pricing of the OpenAI API? Cite the page.*
- *Turn this documentation site into Markdown files for my RAG index.*

## Use cases

- **Agents that need fresh facts.** Search plus page text in one call, with sources.
- **RAG and knowledge bases.** Docs and sites as clean Markdown with headings and chunks.
- **Lead enrichment.** Emails, phones and socials from a list of company domains.
- **SEO checks.** Who ranks for a query, with positions and snippets.

## Example output

One row from a real run of [web-search](https://apify.com/laptime/web-search?utm_source=github&utm_medium=mcp) on Apify (2 December 2026), abridged. Your assistant reads rows like this and answers in plain language.

```json
{
  "query": "openai api pricing",
  "position": 1,
  "title": "Pricing - OpenAI API",
  "url": "https://developers.openai.com/api/docs/pricing",
  "snippet": "Pricing information for the OpenAI platform.",
  "siteName": "openai.com",
  "date": null,
  "domain": "developers.openai.com",
  "status": "ok",
  "reason": null
}
```

Each tool's Store page lists every field.

## How long requests take

Most Laptime runs finish in seconds, inside the first tool call. Bigger requests keep running on Apify after the call returns, and your assistant checks back until the results are ready, then reads them in pages. The [Web Search MCP skill](skills/web-search/SKILL.md) teaches assistants this flow, along with input recipes for each tool. Claude Code gets it with the plugin.

## Pricing

Pay per result, billed to your Apify account, no start fee. There is no subscription to this repository. Prices on 2 December 2026 (Apify free-plan list prices; paid plans pay less, and each pricing page has the details):

- [Web search](https://apify.com/laptime/web-search/pricing?utm_source=github&utm_medium=mcp): $1 per 1,000
- [Website crawler](https://apify.com/laptime/website-content-crawler/pricing?utm_source=github&utm_medium=mcp): $1 per 1,000
- [Contact details](https://apify.com/laptime/contact-details-scraper/pricing?utm_source=github&utm_medium=mcp): $0.99 per 1,000

Your assistant controls cost through result caps such as `maxItems`. Ask for a small number first, then scale up. Runs that return nothing are not charged.

## Troubleshooting

- **`/mcp` says the server is not authenticated, or its tools could not be fetched.** Select the server and choose **Authenticate**. Other clients show a **Connect** or **Sign in** button.
- **A crawl returns fewer pages than expected.** Raise the page limit, and check the crawl scope: by default it stays under the start URL's path.
- **Your assistant says a run is still going.** That is normal for bigger requests. Ask it to keep checking the same run; a new run for the same question is billed again.
- **Your client cannot complete the sign-in.** Use an Apify token header instead, see [Other clients](#client-setup).

## FAQ

**Which search engine does it use?**
Bing web results, with Bing News and Wikipedia filling in; see the Web Search tool's page.

**Does the crawler handle JavaScript sites?**
Yes, JavaScript pages and PDFs are included.

**Is there a web search API?**
Yes. Every tool can be called over a REST API or with Apify's Python and JavaScript clients, see [Use it from code](#use-it-from-code).

**Which AI assistants work with it?**
Any client that supports remote MCP servers, including Claude (claude.ai, Claude Desktop, Claude Code), ChatGPT, Codex, Cursor, VS Code with GitHub Copilot and many more.

**Is it free?**
Apify's free plan includes $5 of usage a month, enough to try every tool. After that you pay per result; see [Pricing](#pricing).

**Is this an official the web product?**
No. Web Search MCP is an independent product by Laptime and is not affiliated with the platforms it reads.

## Privacy

Requests go to Apify's hosted MCP server and run on your Apify account. Apify's [privacy policy](https://docs.apify.com/legal/privacy-policy) applies. This repository contains configuration and instructions only; it collects nothing.

## More from Laptime

Web Search MCP is built on [Laptime's Apify Actors](https://apify.com/laptime?utm_source=github&utm_medium=mcp): fast, timed scrapers with pay-per-result pricing. You can also run each tool directly on Apify, from its API, or on a schedule.

- [Instagram MCP](https://github.com/laptimehq/instagram-mcp): Instagram data for your AI assistant.
- [Reddit MCP](https://github.com/laptimehq/reddit-mcp): Reddit for your AI assistant.
- [YouTube Transcript MCP](https://github.com/laptimehq/youtube-transcript-mcp): Video transcripts for your AI assistant.
- [Ad Library MCP](https://github.com/laptimehq/facebook-ad-library-mcp): Ad libraries for your AI assistant.
- [Job Search MCP](https://github.com/laptimehq/job-search-mcp): Job listings for your AI assistant.
- [Threads MCP](https://github.com/laptimehq/threads-mcp): Threads for your AI assistant.
- [trendsfetch](https://github.com/laptimehq/trendsfetch): Google Trends for Python, a drop-in pytrends replacement.

## License

[MIT](LICENSE). Platform names are trademarks of their respective owners.