WebSearch MCP
Integrates with Ollama Web Search to provide a web_search tool that finds relevant URLs for a query using an OLLAMA_API_KEY.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@WebSearch MCP Find official React Native macOS setup docs and summarize install steps."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
WebSearch MCP
MCP server for web search and web fetch tools.
Features
Two tools
web_search: find relevant URLs for a queryweb_fetch: fetch latest page content (markdown/text)
Cost-aware workflow: recall → search → selective fetch (save quota)
Docs-first answers: answers can cite freshly fetched official pages
Official reference: Ollama Web Search
Related MCP server: Web Search MCP Server
Installation
Prerequisites: Node.js for npm install. OLLAMA_API_KEY is required for web_search.
npm:
npm install -g @neabyte/websearch-mcpQuick Start
Run MCP Server (Stdio)
Run the server (example for MCP clients using stdio):
websearch-mcpIf you want to set the API key for Ollama web search:
export OLLAMA_API_KEY="..."
websearch-mcpEditor Integration (Cursor / VSCode)
You can integrate this MCP server directly into editors (Cursor/VSCode) via stdio MCP configuration. Two common options:
Global install:
npm install -g @neabyte/websearch-mcpthen runwebsearch-mcpNo global install: use
npx -y @neabyte/websearch-mcp(recommended for editors)
Example (Recommended): npx Stdio + Env
Paste this MCP server config in your editor (example JSON used by many MCP clients):
{
"mcpServers": {
"websearch-mcp": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@neabyte/websearch-mcp"],
"env": {
"OLLAMA_API_KEY": "YOUR_OLLAMA_API_KEY"
}
}
}
}
OLLAMA_API_KEYis required forweb_search.web_fetchcan run without a key.
Smoke Test Prompt
After the server is registered in your editor, try a prompt like this:
Use installed MCP Servers: `websearch-mcp` - `web_fetch` to fetch https://reactnative.dev/docs/environment-setup. Summarize the macOS install steps.Example Prompts
Direct fetch (when the URL is known):
Use installed MCP Servers: `websearch-mcp` - `web_fetch` to fetch the official React Native documentation pages. Question: How to install in macOS?Search → fetch (when the URL is unknown):
Use installed MCP Servers: `websearch-mcp` - `web_search` to find official React Native docs URLs for "environment setup macOS". Then use `web_fetch` on the most relevant official doc page URLs. Question: How to install React Native in macOS?Concept: LLM Knowledge → Latest Docs
This approach uses two steps:
Recall: the LLM proposes likely official URLs from its knowledge
Fetch: the LLM calls
web_fetchto retrieve the latest content
This is useful for fast-changing documentation, because the final answer is grounded in pages fetched at tool-call time.
Strategy: Save Quota
Ollama can get expensive if you web_fetch many pages. A cost-aware pattern is:
Recall first: ask for a shortlist of likely official URLs
Search if needed: use
web_searchto find fresh candidatesFetch selectively: fetch only 1–3 most relevant pages
With this pattern, you only spend fetch calls on pages you actually cite.
Examples (Screenshots)
Web Fetch (Single Tool)
Prompt | Output |
Prompt: ask the model to use
websearch-mcp+web_fetchto fetch official React Native docsOutput: the model fetches
reactnative.devand summarizes install steps
Web Search → Web Fetch (Double Tool)
Even if web_search has its own quota/limits, the “double tool” pattern can reduce total cost by
shortlisting URLs first and fetching only what you need.
Use websearch-mcp web_search with query: "latest crypto payment gateway 2026".
Then use websearch-mcp web_fetch to fetch the official pages from the top results.
Answer with a short list of the latest crypto payment gateways and include the source links.Build & Test
From the repo root (requires Deno).
Check — format, lint, and typecheck source:
deno task checkUnit Tests:
deno task testTests live under
tests/
License
This project is licensed under the MIT license. See the LICENSE file for details.
Available Tools
2 toolsweb_fetchA
What it does: Fetches the content of a single URL and returns it as readable markdown. HTML is converted to markdown so the result is easy to read and quote.
When to use: Use this tool whenever you need to retrieve or analyze live webpage content (e.g. research, quoting, summarization, checking a link, comparing pages).
Use cases (in order):
Recall: The LLM recalls or selects the relevant URL(s) from the user's question, its knowledge, context, or links the user provided. Then call this tool for each URL to get up-to-date content. One URL per call.
Crawling: When you need many pages or want to crawl multiple URLs, call this tool in a loop. One tool call per URL. Do not pass multiple URLs in one call. Iterate over the list and call once per URL.
Rules and limits:
The URL must be a fully-formed, valid URL (http or https).
This tool is read-only. It does not perform actions that change state or have side effects.
Results may be live or cached; the tool does not guarantee real-time freshness.
Authentication is not supported. If the URL requires login or auth, an error will be returned.
If the server returns a non-200 status (e.g. 404, 500), the tool returns an error message instead of page content.
This fetch runs from an isolated environment. Hosts like localhost and private IPs may not work.
Binary content is not supported (e.g. media files, PDFs). Only text-like responses are returned.
Requests are bounded by a maximum timeout. Very slow or unresponsive URLs will return a timeout error.
For static assets or non-webpage URLs, use another tool if available.
Inputs: url (required).
web_searchA
What it does: Runs a web search for one query via Ollama's web search API. Returns a list of results. Each result has a title, a URL, and a short text snippet. Use this to discover links by topic; then use web_fetch to get full page content for any URL you choose.
When to use: Use when the user wants to search the web by query, explore a topic, or find URLs about something. After you get results, pick one or more URLs from the list and call web_fetch with that URL to retrieve the full page as markdown.
Workflow: Call this tool with a query (e.g. "Ollama new engine", "Deno router tutorial"). You get back up to 10 results (title, url, snippet per result). To read a full page, call web_fetch with the url from the result. One query per call; for multiple topics, call web_search once per query.
Rules and limits:
Query is required. max_results is optional (default 5, max 10).
Requires OLLAMA_API_KEY in the environment or MCP server config (e.g. from your Ollama account).
Read-only, no side effects. Results may be cached by the search provider.
Inputs: query (required), max_results.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: web_search discovers links by query, while web_fetch retrieves the full content of a single URL. Descriptions explicitly state the intended workflow (search first, then fetch), leaving no room for misselection.
Both names follow the identical `web_<verb>` pattern (web_search, web_fetch) with lowercase snake_case and action verbs. There is no mixing of conventions.
This is the canonical minimal search+fetch pair, and each tool clearly earns its place. However, with only two tools the surface sits at the low end of the typical well-scoped range and can feel thin for a standalone server.
Search plus fetch covers the core research loop end to end, with sensible limits (max_results, one URL per call) documented. Minor gaps remain — no multi-URL/batch fetch, no pagination or content-extraction options — but agents can work around these by looping.
Maintenance
Related MCP Connectors
Web search and page fetch for AI agents. Results come from a shared cache; cached calls cost less.
Web search, fetch, extract, and research for AI agents. Markdown output + AI-synthesized answers.
LLM-ready web search + instant answers + URL-to-clean-text fetch for agents and RAG.
Search the web, fetch any URL and map a site as clean, LLM-ready Markdown.
Related MCP Servers
- AlicenseAqualityBmaintenanceWeb tools for AI agents. Search the web for full page content, fetch URLs as clean markdown including PDFs, extract structured data from a page with a prompt, and run multi-source deep research that returns a cited report.42MIT
- FlicenseNot gradedqualityDmaintenanceEnables 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 gradedqualityBmaintenanceEnables AI agents to perform live web searches with ranked results and extracted page passages, plus clean markdown extraction of any URL.MIT
- AlicenseAqualityBmaintenanceEnables agents to search the live web and fetch URLs as clean Markdown, returning ranked search results and paginated page content through two lightweight tools.25 npmMIT