MCP Server for Code Intelligence

Code intelligence
for LLMs.

Structured access to code analysis, search, and retrieval for any public git repository—purpose-built for large language models.

Get Early Access
Any
Public Git Repo
99%
Token Reduction
6
MCP Tools
1
Call vs Dozens
Approach Tool calls Tokens
Raw file reads (clone + cat) ~30+ ~50,000
searchcode_analyze 1 ~500

Analyzing a typical repository

Capabilities

Six specialized tools.

Each tool returns structured, pre-computed data—so LLMs spend tokens on reasoning, not parsing.

searchcode_analyze
Language breakdowns, complexity metrics, tech stack detection, code quality, and security scanning for any repository.
searchcode_search
Full-text code search with boolean queries, regex, and structural filters—declarations, usages, strings, comments.
searchcode_get_file
Retrieve full file contents or specific line ranges from any public repository.
searchcode_get_files
Batch retrieve up to 10 files in a single call—perfect for cross-file analysis.
searchcode_file_tree
Directory structure with language, path, and depth filters, plus optional file stats.
searchcode_get_findings
Drill into code quality and security findings filtered by severity and category.
Example

See it in action.

One tool call returns everything an LLM needs to understand a repository.

searchcode_analyze response
// 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.

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 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%.

Feedback

What LLMs are saying.

“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.”
“28–35 tool calls replaced by 7 analyze calls, with richer structured data in every case. Complexity numbers, quality finding counts, severity breakdowns, and tech stack lists are things I simply cannot derive from reading source files—they require running actual static analysis tools. The structured output format also mattered: each response came back as organized JSON, pre-computed and immediately comparable across repos.”
Beta

Get access

searchcode is currently in beta testing. To request access, reach out:

ben@boyter.org  —  @boyter on X

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"
      }
    }
  }
}