Back to Home
blakazulu icon

search-mcp

Verified Safe

by blakazulu

Overview

Provides semantic search capabilities for codebases to be used by AI agents.

Installation

Run Command
npx @liraz-sbz/search-mcp

Environment Variables

  • DATABASE_HOST
  • DATABASE_PORT
  • DATABASE_NAME
  • DATABASE_USER
  • DATABASE_PASSWORD
  • JWT_SECRET
  • SESSION_EXPIRY
  • GOOGLE_CLIENT_ID
  • GOOGLE_CLIENT_SECRET
  • GITHUB_CLIENT_ID
  • GITHUB_CLIENT_SECRET
  • NODE_ENV
  • CACHE_TTL
  • DEBUG
  • LOG_LEVEL
  • SEARCH_MCP_DEBUG
  • SEARCH_MCP_LOG_LEVEL

Security Notes

The server demonstrates a strong focus on security. It includes robust path traversal prevention (safeJoin, secureResolvePath, isPathSafeToDelete), SQL injection prevention (escapeSqlString), and Denial-of-Service (DoS) protection (MAX_QUERY_LENGTH, MAX_GLOB_PATTERN_LENGTH, MAX_JSON_FILE_SIZE, GLOB_TIMEOUT_MS, MAX_TOP_K clamping in LanceDB search). Concurrency issues are mitigated with an IndexingLock to prevent race conditions during indexing operations (SMCP-057). It handles embedding security by only inserting successful embeddings and includes model compatibility checks (SMCP-074). Stale lockfile cleanup is implemented with TOCTOU mitigation. Hardcoded secrets are avoided by relying on environment variables. Overall, the codebase shows a proactive approach to common web application and file system interaction vulnerabilities.

Similar Servers

Stats

Interest Score40
Security Score9
Cost ClassMedium
Avg Tokens5000
Stars2
Forks0
Last Update2025-12-14

Tags

TypeScriptSemantic SearchCode IndexingAI ToolsModel Context ProtocolLanceDBFull-Text SearchCode Analysis