Back to Home
suvaidkhan icon

code-search-mcp

Verified Safe

by suvaidkhan

Overview

A high-performance semantic code search server that enables intelligent code discovery through natural language queries within a specified codebase.

Installation

Run Command
./code-search-mcp --path /path/to/your/project

Environment Variables

  • OPENAI_API_KEY
  • CODE_SEARCH_WORKSPACE_ROOT

Security Notes

The server is designed to index a user-specified local codebase (`--path` flag or `CODE_SEARCH_WORKSPACE_ROOT` environment variable). Running it in an untrusted environment or pointing it to sensitive directories could lead to unintended data exposure if the server's API (localhost:8080 by default) is externally accessible without proper access controls. The `internal/fs` package executes the `git check-ignore` command, which involves external process execution, though the paths are controlled by the configured workspace. The OpenAI API key (OPENAI_API_KEY) is required and must be kept secure via environment variables.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassHigh
Avg Tokens30
Stars0
Forks0
Last Update2025-12-15

Tags

Semantic SearchCode IndexingAI/MLDeveloper ToolGo