Ollama Web Search
This server provides tools to search the web and fetch web page content via Ollama's APIs.
web_search: Search the web with a query string. Accepts an optional
max_resultsparameter (default 5, max 10). Returns a list of results, each containing a title, URL, and content.web_fetch: Fetch the readable content of a given URL (must include http:// or https://). Returns the page title, main content, and a list of links found on the page.
Provides tools to search the web and fetch web pages using Ollama's hosted web search and web fetch APIs.
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., "@Ollama Web Search search the web for MCP server examples"
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.
Ollama Web Search MCP Server
A stdio MCP server that exposes Ollama's hosted web search and web fetch APIs as tools any MCP client can call. Based on the Ollama web search docs.
Tools:
Tool | Args | Returns |
|
|
|
|
|
|
Prerequisites
uv(providesuvxanduv tool install)An Ollama API key — create one at https://ollama.com/settings/keys (free account).
Related MCP server: ollama-websearch-mcp
Install
For use as an MCP server in editors, install once so the binary is available
immediately on startup (avoids timeout issues caused by uvx resolving
packages on every invocation):
uv tool install ollama-web-search
# or from a local checkout:
# uv tool install .For a quick smoke test without installing, you can use uvx (slower on first
run because it resolves packages each time):
export OLLAMA_API_KEY=your_api_key_here
uvx ollama-web-searchIt will sit waiting for MCP messages on stdio. Wire it into a client instead of running it by hand.
Client configuration
Set your key in the env block below. Use the installed binary (ollama-web-search)
rather than uvx to avoid startup timeouts.
Claude Desktop / Claude Code (mcpServers block):
{
"mcpServers": {
"Ollama Web Search": {
"command": "ollama-web-search",
"args": [],
"env": { "OLLAMA_API_KEY": "your_api_key_here" }
}
}
}For Claude Code you can also add it from the CLI:
claude mcp add ollama-web-search \
--env OLLAMA_API_KEY=your_api_key_here \
-- ollama-web-searchZed (~/.config/zed/settings.json, under context_servers):
{
"context_servers": {
"Ollama Web Search": {
"command": "ollama-web-search",
"args": [],
"env": { "OLLAMA_API_KEY": "your_api_key_here" }
}
}
}Cline:
{
"mcpServers": {
"Ollama Web Search": {
"type": "stdio",
"command": "ollama-web-search",
"args": [],
"env": { "OLLAMA_API_KEY": "your_api_key_here" }
}
}
}Codex (~/.codex/config.toml):
[mcp_servers.ollama_web_search]
command = "ollama-web-search"
args = []
env = { OLLAMA_API_KEY = "your_api_key_here" }Available Tools
2 toolsweb_fetchA
Fetch the readable content of a web page via Ollama's hosted fetch API.
Args: url: The absolute URL to fetch (must include http:// or https://).
Returns: A dict with the page title, content, and a list of links.
Inputs: url (required). Returns: object
web_searchA
Search the web via Ollama's hosted search API.
Args: query: The search query. max_results: Maximum results to return (default 5, max 10).
Returns: A dict with a "results" list, each item having title, url and content.
Inputs: query (required), max_results. Returns: object
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 completely distinct purposes: web_search performs search queries, while web_fetch retrieves content from a specific URL. No overlap.
Both tools follow a consistent verb_noun pattern (web_fetch, web_search), using snake_case and the same prefix.
With only 2 tools, the set is minimal but appropriate for a simple web search and fetch utility. Could be expanded, but not overly sparse.
The tool surface covers the core operations: searching the web and fetching a page. No obvious gaps for the stated purpose.
Maintenance
Related MCP Connectors
Scrape, crawl and search the web for AI agents via MCP.
Provides AI assistants with access to Seltz's powerful Web Search capabilities.
Web MCP: scrape/crawl sites, web search, brand assets, app stores, YouTube, Reddit, Hacker News.
Web data for agents. Extract web pages, crawl websites, discover URLs, and search the web.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceProvides web search and page fetching capabilities using Ollama's API.MIT
- AlicenseAqualityBmaintenanceEnables performing web searches and fetching web page content via Ollama's hosted APIs, providing search results and raw page data.21MIT
- AlicenseAqualityCmaintenanceEnables web search and page content extraction through Ollama Cloud's APIs, including a combined search-and-fetch tool, with retries, timeouts, and safe error handling for MCP clients.3MIT
- AlicenseCqualityBmaintenanceEnables MCP clients to run web searches and optionally fetch webpages through Moonshot's open platform API, using a configured API key.2217 npmMIT