Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| API_KEYS | No | LLM API keys for SDK mode (format: ENV_VAR:key,...) | |
| CACHE_DIR | No | Data directory for cache DB, docs DB, downloads (optional) | ~/.wet-mcp |
| LOG_LEVEL | No | Logging level | INFO |
| WET_CACHE | No | Enable/disable web cache (optional) | true |
| LLM_MODELS | No | LiteLLM model for media analysis (optional) | gemini/gemini-3-flash-preview |
| LLM_API_KEY | No | Custom LLM endpoint key (optional) | |
| SEARXNG_URL | No | External SearXNG URL (optional, when auto disabled) | http://localhost:41592 |
| SYNC_FOLDER | No | Remote folder name | wet-mcp |
| SYNC_REMOTE | No | rclone remote name | gdrive |
| DOCS_DB_PATH | No | Docs database location (optional) | ~/.wet-mcp/docs.db |
| DOWNLOAD_DIR | No | Media download directory (optional) | ~/.wet-mcp/downloads |
| GITHUB_TOKEN | No | GitHub personal access token for library discovery (optional, increases rate limit from 60 to 5000 req/hr). Auto-detected from `gh auth token` if GitHub CLI is installed. | |
| LLM_API_BASE | No | Custom LLM endpoint URL (optional, for SDK mode) | |
| RERANK_MODEL | No | LiteLLM rerank model (auto: cohere/rerank-multilingual-v3.0 if Cohere key in API_KEYS) | |
| RERANK_TOP_N | No | Return top N results after reranking | 10 |
| SYNC_ENABLED | No | Enable rclone sync | false |
| TOOL_TIMEOUT | No | Tool execution timeout in seconds, 0=no timeout (optional) | 120 |
| SYNC_INTERVAL | No | Auto-sync interval in seconds (0=manual) | 300 |
| SYNC_PROVIDER | No | rclone provider type (drive, dropbox, s3, etc.) | drive |
| EMBEDDING_DIMS | No | Embedding dimensions (optional, default auto=768) | 0 |
| RERANK_API_KEY | No | Custom rerank endpoint key (optional) | |
| RERANK_BACKEND | No | litellm or local. Auto: Cohere key in API_KEYS -> litellm, else local | |
| RERANK_ENABLED | No | Enable reranking after search | true |
| EMBEDDING_MODEL | No | LiteLLM embedding model (optional) | |
| RERANK_API_BASE | No | Custom rerank endpoint URL (optional, for SDK mode) | |
| SEARXNG_TIMEOUT | No | SearXNG request timeout in seconds (optional) | 30 |
| WET_AUTO_SEARXNG | No | Auto-start embedded SearXNG subprocess | true |
| WET_SEARXNG_PORT | No | SearXNG port (optional) | 41592 |
| EMBEDDING_API_KEY | No | Custom embedding endpoint key (optional) | |
| EMBEDDING_BACKEND | No | litellm (cloud API) or local (Qwen3). Auto: API_KEYS -> litellm, else local | |
| LITELLM_PROXY_KEY | No | LiteLLM Proxy virtual key (e.g. sk-...) | |
| LITELLM_PROXY_URL | No | LiteLLM Proxy URL (e.g. http://10.0.0.20:4000). Enables proxy mode | |
| EMBEDDING_API_BASE | No | Custom embedding endpoint URL (optional, for SDK mode) |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search | Search the web, academic papers, or library documentation.
|
| extract | Extract content from web pages, crawl sites, or map site structure.
|
| media | Media discovery and download.
Note: Downloading is intended for downstream analysis (e.g., passing to an LLM or vision model). The MCP server provides the raw files; the MCP client orchestrates the analysis. Use |
| help | Get full documentation for a tool. Use when compressed descriptions are insufficient. Valid tool names: search, extract, media, config, help. |
| config | Server config and management. Actions: status|set|cache_clear|docs_reindex. Use help tool with tool_name='config' for full docs. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| research_topic | Generate a prompt to research a topic using academic search. |
| library_docs | Generate a prompt to find library documentation. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |