Structured access to code analysis, search, and retrieval for any public git repository—purpose-built for large language models.
Get Started| Approach | Tool calls | Tokens |
|---|---|---|
| Raw file reads (clone + cat) | ~30+ | ~50,000 |
| searchcode_analyze | 1 | ~500 |
Analyzing a typical repository
Each tool returns structured, pre-computed data—so LLMs spend tokens on reasoning, not parsing.
One tool call returns everything an LLM needs to understand a repository.
// searchcode_analyze({ "repository": "https://github.com/expressjs/express" }) { "repository": "https://github.com/expressjs/express", "overview": { "total_files": 186, "total_lines": 18547, "total_code_lines": 12832, "total_complexity": 1426 }, "languages": [ { "name": "JavaScript", "files": 148, "code_lines": 11204, "percentage": 87.3 }, { "name": "Markdown", "files": 12, "code_lines": 892, "percentage": 7.0 } ], "tech_stack": [ { "technology": "Node.js", "files_using": 148 }, { "technology": "npm", "files_using": 1 } ], "code_quality_summary": { "total_findings": 23, "by_severity": { "warning": 18, "info": 5 } } }
One call. Languages, complexity, tech stack, quality findings—structured and ready for reasoning.
The stuff that eats your afternoon—searchcode handles in seconds.
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 BM25 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%.
No install, no API key. Just add the server URL to your MCP client.
claude mcp add searchcode \ --transport http \ https://searchcode.com/v1/mcp
{
"mcpServers": {
"searchcode": {
"url": "https://searchcode.com/v1/mcp"
}
}
}
{
"mcpServers": {
"searchcode": {
"url": "https://searchcode.com/v1/mcp"
}
}
}
{
"mcp": {
"servers": {
"searchcode": {
"url": "https://searchcode.com/v1/mcp"
}
}
}
}
Works with any MCP client that supports remote servers via streamable HTTP. No dependencies to install—searchcode runs server-side.
searchcode is powered by battle-tested open-source projects.
Paid tiers are planned long-term, but a free tier will likely always be available.
Need help? ben@boyter.org — @boyter on X