3.6 KiB
DuckDuckGo MCP in Unraid OpenCode
Active as of 2026-10-14. Replaces the earlier Exa configuration: no API key, external paid search account, extra container or listening network port. DuckDuckGo can still throttle or block automated searches; availability is not guaranteed and there is no claim of unlimited queries.
Installation and restore
The existing OpenCode container is Alpine 3.24.2, running as root, with
/root persisted at /mnt/nvme-storage/appdata/OpenCode. Installed Alpine
python3 and py3-pip (Python 3.14.8) and created the dedicated environment
/root/.local/share/opencode/duckduckgo-venv.
Install duckduckgo-mcp-server[browser]==0.7.0; the browser extra includes
curl_cffi for the upstream automatic TLS-fingerprint fallback. The exact tested
dependency set is recorded in duckduckgo-requirements.txt (including MCP 2.3.0
and curl_cffi 0.16.3). No Chromium browser installation is required.
Copy duckduckgo-launch.sh to
/root/.config/opencode/mcp/duckduckgo/launch.sh (mode 0755) and the pinned
requirements to requirements.txt beside it (mode 0644). Merge
duckduckgo-mcp.json into the existing private global opencode.jsonc, preserving
providers and unrelated MCPs. Remove only mcp.exa. The launcher uses stdio and
does not listen on a port. Its 120-second MCP timeout permits dependency recovery
on image recreation; this is not a query or model-token limit.
A container restart preserves OS packages. A container recreation may remove Python; the persisted launcher reinstalls Python/pip using apk when root on Alpine and rebuilds its dedicated venv when needed. On native Debian, install python3/python3-venv/python3-pip explicitly and use the same launcher under the OpenCode user's home with the command path adjusted. This is external client configuration, not a new Athena Deck runtime or a complete native Deck installer. Automatic recovery after image recreation has not been tested end-to-end.
Global /root/.config/opencode/AGENTS.md research instructions now name
DuckDuckGo instead of Exa. The tracked exa-research-rules.md filename is retained
from the earlier setup but its current content is the active DuckDuckGo rule,
including Apple Markdown/DocC guidance. Merge into existing global rules on restore;
do not overwrite unrelated instructions. Mac OpenCode was not modified.
Verified behavior
- A direct stdio MCP client initialized the installed server and discovered
search,fetch_content,expand_link. - A real search for Apple AVAudioEngine documentation returned three relevant results, including the official AVAudioEngine and Audio Engine pages. This verifies results, not merely a successful protocol response.
- Rechecked every known project (one worktree) using OpenCode's live session status API: no active tasks. User authorized one OpenCode restart.
- Restarted only
OpenCode; Athena Deck, model runtimes and other containers were untouched. - After restart, OpenCode's live
/mcpendpoint returnedduckduckgo: connected, and no Exa entry. Its experimental built-in tool-list endpoint lists webfetch but does not enumerate these MCP tools; do not confuse that endpoint with a complete model-request tool inventory. - No real coding chat or LLM generation was started for testing. End-to-end model choice to invoke search remains for the next user request.
Upstream search/fetch pacing defaults (30/20 requests per minute) are retained. These are local protective settings, not a purchased daily allowance.
Sources: