Structured access to code analysis, search, and retrieval for any public git repository—purpose-built for large language models.
Get Early Access| 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.
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%.
searchcode is currently in beta testing. To request access, reach out:
Paid tiers are planned long-term, but a free tier will likely always be available.
Add to your MCP client config
{
"mcpServers": {
"searchcode": {
"url": "https://searchcode.com/v1/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}