SCS-MCP - Smart Code Search for Claude Desktop
An MCP (Model Context Protocol) server that provides intelligent semantic code search capabilities to Claude Desktop.
Features
- 🔍 Semantic Search - Find code by meaning, not just text matching
- 🧵 Thread-Safe - Handles concurrent requests without SQLite threading errors
- 🚀 Fast Performance - <100ms search response time with caching
- 📊 Multi-Language Support - Python, JavaScript, TypeScript, and more
- 🔄 Hybrid Search - Combines semantic and text matching for best results
Installation
Prerequisites
- Python 3.8+
- Claude Desktop
- WSL (for Windows users)
Quick Install
- Clone the repository:
- Run the installer:
- Configure Claude Desktop by adding to
%APPDATA%\Claude\claude_desktop_config.json
:
- Restart Claude Desktop
Available Tools
1. search
Search code by meaning using AI embeddings
2. index
Index a project for semantic search
3. analyze_symbol
Deep analysis of a specific symbol
4. find_similar
Find code similar to a given snippet
5. get_context
Get relevant context for current work
Architecture
Key Improvements
- ✅ Fixed SQLite threading issues with thread-local connections
- ✅ Clean MCP protocol communication (no stdout pollution)
- ✅ Compatible with existing database schemas
- ✅ Handles both dictionary and tuple result formats
- ✅ Semantic search with proven accuracy
Performance
- First search: <100ms (model pre-loaded)
- Cached searches: <20ms
- Memory usage: ~500MB baseline
- Supports 100+ searches/minute
Development
To test the server locally:
License
MIT
Author
Steven J. Jobson
Acknowledgments
Built for use with Claude Desktop using the Model Context Protocol (MCP).
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Enables semantic code search across projects using AI embeddings to find code by meaning rather than just text matching. Provides fast intelligent search, symbol analysis, and code similarity detection with multi-language support.
Related MCP Servers
- -securityFlicense-qualityA local server that provides powerful code analysis and search capabilities for software projects, helping AI assistants and development tools understand codebases for tasks like code generation and refactoring.Last updated -2Python
- -securityFlicense-qualityHTTP-based server that provides semantic code search capabilities to IDEs through the Model Context Protocol, allowing efficient codebase exploration without repeated indexing.Last updated -764TypeScript
- -securityAlicense-qualityEnables semantic code search across codebases using Qdrant vector database and OpenAI embeddings, allowing users to find code by meaning rather than just keywords through natural language queries.Last updated -PythonMIT License
- -securityAlicense-qualityAn intelligent server that provides semantic code search, domain-driven analysis, and advanced code understanding for large codebases using LLMs and vector embeddings.Last updated -3PythonMIT License