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 |
|---|---|---|
web_search |
query (string), max_results (int, default 5, max 10) |
{ results: [{ title, url, content }] } |
web_fetch |
url (string) |
{ title, content, links: [...] } |
Prerequisites
uv(providesuvxanduv tool install)- An Ollama API key — create one at https://ollama.com/settings/keys (free account).
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-search
It 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-search
Zed (~/.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" }
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ollama_web_search-0.1.1.tar.gz.
File metadata
- Download URL: ollama_web_search-0.1.1.tar.gz
- Upload date:
- Size: 45.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7acf4cd256e6357893ecd04155d82f7a7f8ad802f460189b4a041cf6f76222b
|
|
| MD5 |
92854686274aca451b617e1130d7435b
|
|
| BLAKE2b-256 |
ed3b580f39b0d4b630960ccb681257e4992941dc805a98077674327ed6c76a74
|
File details
Details for the file ollama_web_search-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ollama_web_search-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29d0d4804b275e43ecd5beafe44a5215ff3b1207384a79cbaaf6566a78a76bd4
|
|
| MD5 |
79294d1a1b40286ec98f73a48e3d32e6
|
|
| BLAKE2b-256 |
7cf32bab0562186746bced64990c1a303d6a06f8f88400ae276b95b4f7c91a67
|