MCP stdio server exposing Ollama's hosted web search and web fetch APIs as tools for any MCP client.
Project description
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(providesuvx, handles Python + dependencies)- An Ollama API key — create one at https://ollama.com/settings/keys (free account).
The published package runs with uvx ollama-web-search, which downloads and
runs it in an isolated environment; no clone or pip install step is needed.
Run it directly (smoke test)
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.
To run from a local checkout instead: uv run ollama-web-search.
Client configuration
Set your key in the env block below.
Claude Desktop / Claude Code (mcpServers block):
{
"mcpServers": {
"Ollama Web Search": {
"command": "uvx",
"args": ["ollama-web-search"],
"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 \
-- uvx ollama-web-search
Zed (~/.config/zed/settings.json, under context_servers):
{
"context_servers": {
"Ollama Web Search": {
"command": "uvx",
"args": ["ollama-web-search"],
"env": { "OLLAMA_API_KEY": "your_api_key_here" }
}
}
}
Cline:
{
"mcpServers": {
"Ollama Web Search": {
"type": "stdio",
"command": "uvx",
"args": ["ollama-web-search"],
"env": { "OLLAMA_API_KEY": "your_api_key_here" }
}
}
}
Codex (~/.codex/config.toml):
[mcp_servers.ollama_web_search]
command = "uvx"
args = ["ollama-web-search"]
env = { "OLLAMA_API_KEY" = "your_api_key_here" }
Project details
Release history Release notifications | RSS feed
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.0.tar.gz.
File metadata
- Download URL: ollama_web_search-0.1.0.tar.gz
- Upload date:
- Size: 45.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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 |
74d8f40fb3bf5a819f1455b0910ed94850dfbe14c3856c499e602cc7873cddc4
|
|
| MD5 |
496fce268c44eb822ad24c082e3652a1
|
|
| BLAKE2b-256 |
3b22cbbc2adde64c367e31bcd0f0a17417cc3deb861b5c6421b8ec6c8dd77b20
|
File details
Details for the file ollama_web_search-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ollama_web_search-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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 |
343749e5e83f8b01de76cb45cffad8109ea195159015308654fd5ef3ae2d00a0
|
|
| MD5 |
a517a6e2dc6a22102676d21731304457
|
|
| BLAKE2b-256 |
a941fc92840d5e7532969b2e097a2ee7daedbf89cef54781828317daf4450766
|