searchcode.com — Code intelligence for LLMs
Read any GitHub repo.
Without reading any GitHub repo.
Paste a URL for an instant code intelligence dossier—languages, complexity, tech stack, code quality. Or add the MCP server so Claude Code, Cursor, Codex, and Copilot can do the same from inside your editor.
Free during beta. No signup. No API key.
Browse any public repo
Paste a GitHub URL or owner/repo—get a full dossier in seconds. No install.
Or compare two repos side-by-side: redis vs memcached →
Or give it to your AI
Add the MCP server. Your assistant gets the same six tools—code_analyze, code_search, code_get_file, and three more—over any public repo.
Claude Code
claude mcp add searchcode --transport http https://api.searchcode.com/v1/mcp
Copy
Cursor .cursor/mcp.json
{"mcpServers":{"searchcode":{"url":"https://api.searchcode.com/v1/mcp"}}}
Copy
VS Code / Copilot .vscode/settings.json
{"mcp":{"servers":{"searchcode":{"url":"https://api.searchcode.com/v1/mcp"}}}}
Copy
Claude Desktop
{"mcpServers":{"searchcode":{"command":"npx","args":["-y","mcp-remote","https://api.searchcode.com/v1/mcp"]}}}
Copy
Using OpenCode, Crush, Codex, Gemini CLI, Amp, or LM Studio? Full setup guide →
What happens when your AI assistant has to understand a new repo:
Without searchcode
- ~30+ tool calls
- ~50,000 tokens
- ~$0.50 per investigation
- Clone, cat, grep, hope
With searchcode
- 1 call
- ~500 tokens
- ~$0.005 per investigation
- Structured response: languages, complexity, tech stack, findings
Same answer. 100× cheaper. No setup.
Trusted by world-class LLMs.
Claude GPT Gemini Grok Kimi DeepSeek Mistral Qwen Llama
repository: https://github.com/expressjs/express
repository: https://github.com/expressjs/express
Built for LLMs. Works for humans too.
🔍
Understand a new codebase in one call
Skip cloning, skip setup. Get languages, complexity hotspots, tech stack, and quality issues for any repository instantly. The full picture in seconds, not hours of poking around.
🛡
Scan for secrets and security issues
Find hardcoded credentials, quality issues by severity, and security findings across any public repo. Check before you ship it or depend on it—no tooling setup required.
🧩
Evaluate a library before you integrate it
Full evaluation without cloning—zero disk footprint, zero setup. Analyze tech stack, API surface, code quality, and dependency overlap in seconds. Structured results save bandwidth and tokens compared to cloning and parsing raw files.
⚖
Compare projects with real data
Stack two libraries side by side with hard numbers: complexity, code quality, tech stack, and size. Make adoption decisions based on data, not GitHub stars.
📦
Evaluate dependencies beyond the README
READMEs lie. See if the code is actually well-maintained, what deprecated patterns exist, and where the complexity hides. Know what you're importing before it's in your dependency tree.
📋
Due diligence on inherited code
Acquisition, contractor handoff, or new team—get an honest picture of what you're walking into. Complexity distribution, quality findings, and tech stack, laid out in structured data.
🔧
Debug a dependency without cloning it
Search for a symbol, pull the exact function, see surrounding context. Fix the problem without git clone, IDE setup, or reading through a repo you'll never touch again.
🤖
Give AI agents structured code context
Purpose-built MCP tools that feed LLMs code intelligence in structured format. One call replaces dozens of file reads, saving thousands of tokens and giving agents what they actually need to reason.
🔬
Research how other projects solved the same problem
Survey how multiple open-source projects implement the same feature before building yours. Search across repos for patterns, compare approaches, and read specific implementations—all without cloning a single repo.
📈
Screen candidates through their public repos
Build a portfolio-level picture from a candidate's public repositories. Compare language proficiency, complexity handling, code quality, and engineering patterns across repos—real evidence of what they build, not what they claim.
Built on a decade of code intelligence.
searchcode.com previously indexed over 75 billion lines of code across millions of repositories, serving millions of API requests daily. That hard-won experience in scaling code analysis is the foundation this MCP server is built on.
Under the hood: scc for code counting & complexity analysis, and cs for code search with smart ranking—two battle-tested open-source tools by the same author. Point it at any public git repo and get structured, pre-computed results that cut LLM token usage by 99%.
“The tools saved 15–20 tool calls and several thousand tokens of HTML parsing overhead. The biggest win was direct access to source code in a structured format, which let me identify three specific bugs that would have been nearly impossible to find through web search or paper reading alone.”
“The searchcode tool suite was fundamental to my analysis. It enabled a workflow that is impossible with conventional methods, allowing me to move from a high-level architectural overview of a repository to the specific, impactful lines of code in just a few queries. The tools’ speed and precision were critical in uncovering the ‘why’ behind a project’s design—from identifying critical performance optimizations to understanding core architectural patterns. This rapid, evidence-based discovery goes far beyond simple keyword searching and allows for a true, deep understanding of a codebase.”
“searchcode’s combination of intelligent search, targeted symbol retrieval, and now adjacent context makes remote code analysis feel like a local IDE. I can dive from project overview to specific optimizations in seconds, not hours.”
Claude Code
Run in your terminal (current project)
claude mcp add searchcode \ --transport http \ https://api.searchcode.com/v1/mcp
Or globally (all projects)
claude mcp add searchcode \ --scope user \ --transport http \ https://api.searchcode.com/v1/mcp
Claude Desktop
Add to claude_desktop_config.json
{
"mcpServers": {
"searchcode": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.searchcode.com/v1/mcp"
]
}
}
}
Cursor
Add to .cursor/mcp.json
{
"mcpServers": {
"searchcode": {
"url": "https://api.searchcode.com/v1/mcp"
}
}
}
VS Code / Copilot
Add to .vscode/settings.json
{
"mcp": {
"servers": {
"searchcode": {
"url": "https://api.searchcode.com/v1/mcp"
}
}
}
}
Gemini CLI
Add to ~/.gemini/settings.json
{
"mcpServers": {
"searchcode": {
"httpUrl": "https://api.searchcode.com/v1/mcp"
}
}
}
Amp
Add to ~/.config/amp/settings.json or .amp/settings.json
{
"amp.mcpServers": {
"searchcode": {
"url": "https://api.searchcode.com/v1/mcp"
}
}
}
OpenCode
Add to opencode.json
{
"mcp": {
"searchcode": {
"type": "remote",
"url": "https://api.searchcode.com/v1/mcp"
}
}
}
Crush
Add to .crush.json or crush.json
{
"mcp": {
"searchcode": {
"type": "http",
"url": "https://api.searchcode.com/v1/mcp"
}
}
}
Codex
Add to ~/.codex/config.toml
[mcp_servers.searchcode] url = "https://api.searchcode.com/v1/mcp"
LM Studio
Add to LM Studio MCP config
{
"mcpServers": {
"searchcode": {
"url": "https://api.searchcode.com/v1/mcp"
}
}
}
Works with any MCP client that supports remote servers via streamable HTTP. No dependencies to install—searchcode runs server-side.
REST API
No MCP client? Use plain HTTP
curl -X POST \
"https://api.searchcode.com/api/v1/code_analyze?client=my-app" \
-H "Content-Type: application/json" \
-d '{"repository":"https://github.com/expressjs/express"}'
All 6 tools available as POST /api/v1/{tool_name}. See the OpenAPI spec for full docs.
300+
scc
Fast, accurate code counter with complexity calculations. Supports 300+ languages.
REST
REST API
Same 6 tools as plain JSON over HTTP. No MCP client needed—just POST and go.
Smart Ranking
cs
Code-aware smart ranking, regex, and structural filters. Built for speed.