Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-kefyusuf-search-memory-mcp": {
"command": "npx",
"args": [
"-y",
"search-memory-mcp"
],
"env": {
"SEARCH_PROVIDERS": "duckduckgo,bing",
"CACHE_DB_PATH": "websearch_cache.db",
"INGEST_ALLOWED_DIRS": "<VALUE>",
"SEARXNG_BASE_URL": "<VALUE>",
"BRAVE_SEARCH_API_KEY": "<YOUR_VALUE>",
"TAVILY_API_KEY": "<YOUR_VALUE>",
"EXA_API_KEY": "<YOUR_VALUE>",
"READER_FALLBACK_URL": "<VALUE>",
"TRACE_SEARCHES": "false",
"ENABLE_RERANKER": "false",
"FETCH_WAIT_UNTIL": "networkidle",
"FORCE_PLAYWRIGHT": "<VALUE>",
"MEMORY_MAX_NOTES": "500",
"ENABLE_CROSSLINGUAL": "false",
"RATE_LIMIT_FETCH_PER_MIN": "20",
"RATE_LIMIT_SEARCH_PER_MIN": "10",
"CACHE_CLEANUP_INTERVAL_HOURS": "24"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-kefyusuf-search-memory-mcp": {
"command": "npx",
"args": [
"-y",
"search-memory-mcp"
],
"env": {
"SEARCH_PROVIDERS": "duckduckgo,bing",
"CACHE_DB_PATH": "websearch_cache.db",
"INGEST_ALLOWED_DIRS": "<VALUE>",
"SEARXNG_BASE_URL": "<VALUE>",
"BRAVE_SEARCH_API_KEY": "<YOUR_VALUE>",
"TAVILY_API_KEY": "<YOUR_VALUE>",
"EXA_API_KEY": "<YOUR_VALUE>",
"READER_FALLBACK_URL": "<VALUE>",
"TRACE_SEARCHES": "false",
"ENABLE_RERANKER": "false",
"FETCH_WAIT_UNTIL": "networkidle",
"FORCE_PLAYWRIGHT": "<VALUE>",
"MEMORY_MAX_NOTES": "500",
"ENABLE_CROSSLINGUAL": "false",
"RATE_LIMIT_FETCH_PER_MIN": "20",
"RATE_LIMIT_SEARCH_PER_MIN": "10",
"CACHE_CLEANUP_INTERVAL_HOURS": "24"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-kefyusuf-search-memory-mcp": {
"command": "npx",
"args": [
"-y",
"search-memory-mcp"
],
"env": {
"SEARCH_PROVIDERS": "duckduckgo,bing",
"CACHE_DB_PATH": "websearch_cache.db",
"INGEST_ALLOWED_DIRS": "<VALUE>",
"SEARXNG_BASE_URL": "<VALUE>",
"BRAVE_SEARCH_API_KEY": "<YOUR_VALUE>",
"TAVILY_API_KEY": "<YOUR_VALUE>",
"EXA_API_KEY": "<YOUR_VALUE>",
"READER_FALLBACK_URL": "<VALUE>",
"TRACE_SEARCHES": "false",
"ENABLE_RERANKER": "false",
"FETCH_WAIT_UNTIL": "networkidle",
"FORCE_PLAYWRIGHT": "<VALUE>",
"MEMORY_MAX_NOTES": "500",
"ENABLE_CROSSLINGUAL": "false",
"RATE_LIMIT_FETCH_PER_MIN": "20",
"RATE_LIMIT_SEARCH_PER_MIN": "10",
"CACHE_CLEANUP_INTERVAL_HOURS": "24"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-kefyusuf-search-memory-mcp": {
"command": "npx",
"args": [
"-y",
"search-memory-mcp"
],
"env": {
"SEARCH_PROVIDERS": "duckduckgo,bing",
"CACHE_DB_PATH": "websearch_cache.db",
"INGEST_ALLOWED_DIRS": "<VALUE>",
"SEARXNG_BASE_URL": "<VALUE>",
"BRAVE_SEARCH_API_KEY": "<YOUR_VALUE>",
"TAVILY_API_KEY": "<YOUR_VALUE>",
"EXA_API_KEY": "<YOUR_VALUE>",
"READER_FALLBACK_URL": "<VALUE>",
"TRACE_SEARCHES": "false",
"ENABLE_RERANKER": "false",
"FETCH_WAIT_UNTIL": "networkidle",
"FORCE_PLAYWRIGHT": "<VALUE>",
"MEMORY_MAX_NOTES": "500",
"ENABLE_CROSSLINGUAL": "false",
"RATE_LIMIT_FETCH_PER_MIN": "20",
"RATE_LIMIT_SEARCH_PER_MIN": "10",
"CACHE_CLEANUP_INTERVAL_HOURS": "24"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-kefyusuf-search-memory-mcp": {
"command": "npx",
"args": [
"-y",
"search-memory-mcp"
],
"env": {
"SEARCH_PROVIDERS": "duckduckgo,bing",
"CACHE_DB_PATH": "websearch_cache.db",
"INGEST_ALLOWED_DIRS": "<VALUE>",
"SEARXNG_BASE_URL": "<VALUE>",
"BRAVE_SEARCH_API_KEY": "<YOUR_VALUE>",
"TAVILY_API_KEY": "<YOUR_VALUE>",
"EXA_API_KEY": "<YOUR_VALUE>",
"READER_FALLBACK_URL": "<VALUE>",
"TRACE_SEARCHES": "false",
"ENABLE_RERANKER": "false",
"FETCH_WAIT_UNTIL": "networkidle",
"FORCE_PLAYWRIGHT": "<VALUE>",
"MEMORY_MAX_NOTES": "500",
"ENABLE_CROSSLINGUAL": "false",
"RATE_LIMIT_FETCH_PER_MIN": "20",
"RATE_LIMIT_SEARCH_PER_MIN": "10",
"CACHE_CLEANUP_INTERVAL_HOURS": "24"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-kefyusuf-search-memory-mcp": {
"command": "npx",
"args": [
"-y",
"search-memory-mcp"
],
"env": {
"SEARCH_PROVIDERS": "duckduckgo,bing",
"CACHE_DB_PATH": "websearch_cache.db",
"INGEST_ALLOWED_DIRS": "<VALUE>",
"SEARXNG_BASE_URL": "<VALUE>",
"BRAVE_SEARCH_API_KEY": "<YOUR_VALUE>",
"TAVILY_API_KEY": "<YOUR_VALUE>",
"EXA_API_KEY": "<YOUR_VALUE>",
"READER_FALLBACK_URL": "<VALUE>",
"TRACE_SEARCHES": "false",
"ENABLE_RERANKER": "false",
"FETCH_WAIT_UNTIL": "networkidle",
"FORCE_PLAYWRIGHT": "<VALUE>",
"MEMORY_MAX_NOTES": "500",
"ENABLE_CROSSLINGUAL": "false",
"RATE_LIMIT_FETCH_PER_MIN": "20",
"RATE_LIMIT_SEARCH_PER_MIN": "10",
"CACHE_CLEANUP_INTERVAL_HOURS": "24"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| SEARCH_PROVIDERS | No | Comma-separated provider allowlist/order. Supported values: duckduckgo, bing, brave, google, searxng. Default: duckduckgo,bing |
| CACHE_DB_PATH | No | SQLite database path used by the semantic cache, content cache, knowledge index, session memory, and entity graph. Default: websearch_cache.db |
| INGEST_ALLOWED_DIRS | No | Comma-separated directories whose files ingest_document may read; local file reading is off when unset |
| SEARXNG_BASE_URL | No | Base URL of a SearXNG instance with the JSON format enabled (for example https://searx.example.com). Required for the searxng provider; no API key is used. |
| BRAVE_SEARCH_API_KEY secret | No | Optional Brave Search API key; the brave provider then uses the official API instead of scraping |
| TAVILY_API_KEY secret | No | Optional Tavily API key; adds the tavily provider with news-topic search and publish dates |
| EXA_API_KEY secret | No | Optional Exa API key; adds the exa provider with neural (semantic) web search |
| READER_FALLBACK_URL | No | Optional reader service (for example https://markdown.new/) used when a page cannot be fetched directly; sends the page URL to that service |
| TRACE_SEARCHES | No | Logs a compact per-search execution trace (stages, timings, cache) to stderr. Recent searches are always exposed via server_status. Default: false |
| ENABLE_RERANKER | No | Enables optional cross-encoder reranking of web_search results using a local Transformers.js model. First use downloads the model. Default: false |
| FETCH_WAIT_UNTIL | No | Playwright wait strategy. Use domcontentloaded for faster rendered-page fallback. Default: networkidle |
| FORCE_PLAYWRIGHT | No | Set to true to skip HTTP-first fetch and always use Playwright. |
| MEMORY_MAX_NOTES | No | Maximum session-memory notes kept; oldest notes are evicted first. Default: 500 |
| ENABLE_CROSSLINGUAL | No | Enables language detection and cross-lingual search support. This can trigger first-run local model downloads. When disabled, query heuristics still infer supported locales such as Turkish. Default: false |
| RATE_LIMIT_FETCH_PER_MIN | No | Maximum fetch_content requests per minute. Invalid or non-positive values disable the limiter. Default: 20 |
| RATE_LIMIT_SEARCH_PER_MIN | No | Maximum web_search requests per minute. Invalid or non-positive values disable the limiter. Default: 10 |
| CACHE_CLEANUP_INTERVAL_HOURS | No | Interval for expired content cache cleanup. Default: 24 |