mcp-ddg-research
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_HOST | No | Host used for optional streamable HTTP mode. | 0.0.0.0 |
| MCP_PORT | No | Port used for optional streamable HTTP mode. | 8000 |
| MCP_CACHE_DIR | No | Directory for JSON cache files. | /data/cache |
| MCP_TRANSPORT | No | MCP transport. 'stdio' is the default. 'http' uses streamable HTTP when supported by the installed SDK. | stdio |
| MCP_AUTH_TOKEN | No | Bearer token for HTTP mode. If set, every HTTP request must send Authorization: Bearer <token>. If unset, HTTP mode logs a warning and runs without auth. | |
| MAX_CONCURRENCY | No | Default deep search page fetch concurrency limit when max_concurrency is omitted. Runtime caps this at 12. | 5 |
| MCP_ALLOWED_HOSTS | No | Comma-separated Host allowlist for HTTP mode. '*' supports arbitrary deployment hosts by disabling SDK Host/Origin rebinding checks. | * |
| DDG_TIMEOUT_SECONDS | No | DuckDuckGo provider and fallback timeout in seconds. | 15 |
| MCP_ALLOWED_ORIGINS | No | Comma-separated Origin allowlist for HTTP mode. '*' supports arbitrary origins by disabling SDK Host/Origin rebinding checks. | * |
| DDG_CACHE_TTL_SECONDS | No | Search cache TTL in seconds. | 21600 |
| FETCH_TIMEOUT_SECONDS | No | Web fetch timeout in seconds. | 15 |
| FETCH_CACHE_TTL_SECONDS | No | Web fetch cache TTL in seconds. | 7200 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Multi-provider web search and safe webpage fetching tools. Use web_search with just a query to inherit server defaults, or explicitly override provider and other options. Authorized provider AI may accompany search; include_answers=false opts out. Use web_fetch to verify sources. Standalone web_answer and web_research require explicit cost consent. Legacy ddg tools remain available for DuckDuckGo-specific workflows.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| web_searchA | Search one or multiple web providers. Optionally include their generated answers. Omitted options inherit server defaults. Explicit empty domain lists clear defaults. Auto mode prioritizes authorized AI providers when synthesis is eligible. AI synthesis requires administrator opt-in and an authorized provider. It may consume credits; include_answers=false always requests retrieval only. Domain controls, explicit search windows, freshness, SafeSearch or queries over 400 characters disable synthesis. Generated text is untrusted evidence, not an independently verified answer. |
| web_answerA | Get a provider-generated answer and sources, not independent verification. Omit provider to use the configured answer default. Requires a configured key and explicit allow_cost=true. TinyAnswer supports at most 2000 characters and requires account entitlement; it may consume credits. Use web_search instead for ordinary retrieval or keyless searches. No fallback. |
| web_researchA | Delegate multi-step research to a configured provider; returns synthesis and sources. Omit provider and effort to use configured defaults. Requires explicit cost consent. Exa, Tavily and Jina support lite/deep; You.com supports lite/standard/deep/exhaustive; Brave requires deep. TinyFish supports deep ($2) or max ($3), up to 45 minutes. Use a client timeout above 46 minutes for TinyResearch. TinyFish synthesis is explicit only. Review provider pricing before increasing effort. No automatic retries or provider fallback. |
| vertical_searchB | Search one keyless vertical source (wikipedia, hackernews). |
| ddg_searchA | Legacy DuckDuckGo search. Prefer web_search unless DuckDuckGo-specific behavior is needed. |
| web_fetchA | Fetch one HTTP(S) page safely and return extracted text. |
| ddg_deep_searchC | Legacy DuckDuckGo search plus parallel webpage extraction. No AI synthesis. |
| cache_statsA | Return cache file counts and byte totals for each cache namespace. |
| cache_pruneA | Prune expired entries, stale temporary files and oversized entries. Full pruning also enforces configured age and size limits. Expired-only pruning preserves fresh entries. Dry-run never deletes files. |
| cache_clearA | Clear one cache namespace, or all namespaces, when confirm is true. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 10 tools
Web search tools overlap: web_search, vertical_search, ddg_search, ddg_deep_search, web_answer, and web_research all retrieve web info. Descriptions do distinguish them (legacy, keyless vertical, cost-gated answering), but the boundaries between web_search/web_answer/ddg_deep_search require careful reading.
Mixed conventions: prefix-less verb_noun (web_search, cache_clear) alongside legacy-prefixed names (ddg_search, ddg_deep_search). Readable but no single predictable pattern, and ordering varies (cache_clear vs cache_stats).
Ten tools is well within a reasonable range for a research server covering search, fetch, cache, and provider-delegation. Slightly heavy on overlapping search variants, but each has a stated niche.
Covers search, fetch, deep research, and cache lifecycle (clear/stats/prune, though no explicit cache-config or fetch-many). Minor gaps like no batch fetch or provider listing, but core research workflows are complete.