Website profiles · Technology insights · Alternatives

searchcode.com

MCP server providing structured code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository with 99% token reduction.

No paid content found
Visit website
Profile views 8 Outbound visits 1 Normal
searchcode.com Full homepage screenshot

At a glance

Category
Development
Language
English
Paid-content signal
No paid content foundObserved
Registered
1999
Hosting
Hetzner Online GmbHInferred
HTTPS certificate trusted
PassedObserved
Last updated

Website review

This review may include AI-generated content and is not individually verified. Domain, certificate and other facts come from the observed data on this page.

What is searchcode.com?

searchcode.com is a code-intelligence service for AI coding assistants. Instead of having an LLM clone a repository and grep through it, you point the service at a public Git repository and it returns a structured summary: languages, complexity, tech stack, code quality and findings. The same capability is exposed as an MCP server, so tools like Claude Code, Cursor, VS Code/Copilot and Claude Desktop can call it directly from the editor.

Its pitch is token economy. The site contrasts a typical investigation done the old way — roughly 30+ tool calls, ~50,000 tokens — with a single structured call of about 500 tokens, claiming a large cost reduction per investigation. Treat those numbers as the vendor's own illustration rather than a guarantee; actual usage depends on the repository size and the question asked.

What it offers

  • code_analyze — language breakdown, complexity metrics, tech-stack detection, code-quality signals and secret scanning (API keys, tokens, private keys with file, line and confidence). Can be scoped to a subdirectory for monorepos.
  • code_search — full-text search with boolean queries, regex and structural filters such as declarations, usages, strings and comments.
  • code_get_file — fetch a full file, a line range or a named symbol, optionally with adjacent declarations for context.
  • code_get_files — batch retrieval of up to 10 files in one call for cross-file analysis.
  • code_file_tree — directory structure with language, path and depth filters.

Who it suits

  • Developers using an AI assistant on unfamiliar code: ask "what is this repo, what's it built with, and where is authentication handled?" and get a compact answer instead of a long exploration loop.
  • Reviewers and due-diligence work: a quick dossier on a dependency before adopting it, including a credential-scanning pass.
  • Repo comparison: the site supports side-by-side comparisons of two repositories, useful when choosing between similar libraries.

The trade-off is scope: it works on public Git repositories, and the value depends on your assistant actually supporting MCP. If you mainly work in private code or a non-MCP editor, the benefit is smaller.

A practical next step: pick one public repo you already know well, run it through the dossier view, and check whether the language, complexity and tech-stack summary matches your own understanding. If it does, wire the MCP server into your editor and test it on a repo you have never seen.

How do I set up the MCP server for Claude Code or Cursor?

Add searchcode's MCP server by pointing your client at its hosted endpoint, then restart or reload the tool list. The page's own setup examples use one URL for every client: https://api.searchcode.com/v1/mcp. No signup or API key is mentioned for the beta.

Claude Code

Run the command shown on the page:

claude mcp add searchcode --transport http https://api.searchcode.com/v1/mcp

Then confirm the server appears in Claude Code's MCP list and that the six tools load.

Cursor

Create or edit .cursor/mcp.json in your project (or the equivalent user-level config):

{"mcpServers":{"searchcode":{"url":"https://api.searchcode.com/v1/mcp"}}}

Reload Cursor so it picks up the new server.

VS Code / Copilot

The page shows a separate location, .vscode/settings.json:

{"mcp":{"servers":{"searchcode":{"url":"https://api.searchcode.com/v1/mcp"}}}}

Claude Desktop

Desktop uses a local bridge rather than a direct URL:

{"mcpServers":{"searchcode":{"command":"npx","args":["-y","mcp-remote","https://api.searchcode.com/v1/mcp"]}}}

Practical check

After setup, ask your assistant to analyze a small public repo you already know well, such as fastapi/fastapi. If it returns a structured dossier — languages, complexity, tech stack, findings — the connection works. If the tools don't appear, the usual causes are a typo in the URL, a config file in the wrong directory, or not restarting the client.

For other clients (OpenCode, Crush, Codex, Gemini CLI, Amp, LM Studio), the [site:searchcode.com|searchcode.com] page links a full setup guide. If you only need a one-off look at a repo, you can skip installation entirely and paste the GitHub URL on the site for the same dossier.

Can I compare two GitHub repositories side-by-side without cloning them?

Yes. searchcode.com supports a side-by-side comparison of two public repositories without cloning either one. You paste two repos (for example redis versus memcached) and get a comparison view built from pre-computed code intelligence rather than a local checkout.

What you can compare

Based on the page evidence, the dossier and comparison output cover:

  • Language breakdown
  • Complexity metrics
  • Tech stack detection
  • Code quality signals
  • Findings, including secret scanning (security_summary reports API keys, tokens and private keys with file, line and confidence)

Ways to use it

Approach Best for Trade-off
Paste two repo URLs on the site A quick one-off comparison, no install Manual; you read the results yourself
Add the MCP server to your editor Repeated comparisons inside Claude Code, Cursor, VS Code/Copilot, or Claude Desktop Requires a one-time MCP setup

For agent-driven work, the MCP server exposes six tools, including code_analyze, code_search, code_get_file and code_get_files (batch up to 10 files), so an assistant can pull structured data about both repos in a single call instead of cloning and grepping.

Practical note: comparisons are limited to public git repositories, and the tool returns structured summaries rather than the full source, so it is well suited to "which of these two should I adopt or study?" decisions, but not to line-by-line diffing of two forks.

Next step: open the site, paste two owner/repo pairs into the comparison field, and check the language and complexity sections first — those usually settle an architecture comparison before you look at code quality. If you plan to repeat this often, add the MCP server so your editor assistant can run the same comparison on demand.

What security scanning does the code_analyze tool perform?

code_analyze includes a credential scanner. In the product's own description, this is surfaced as security_summary, which detects API keys, tokens and private keys, and reports each finding with its file, line and a confidence level.

That is the full extent of the security scanning described: secret/credential detection, not a general vulnerability audit. It does not claim dependency-CVE checks, taint analysis or injection detection. Treat it as a fast first pass that flags likely leaked secrets in a public repository, and confirm anything it reports before acting on it — confidence levels mean some hits will be false positives.

A practical next step: point code_analyze at a repo you already know contains (or deliberately excludes) secrets, such as a test fixture with a dummy key, and check whether the file, line and confidence values line up. That tells you how much to trust it on unfamiliar code.

For broader coverage, pair it with dedicated tooling: GitHub secret scanning and push protection for repositories hosted there, or Snyk if you also need dependency and vulnerability analysis.

How does searchcode reduce token usage for LLM code analysis?

Searchcode reduces token usage by replacing the "clone, cat, grep, hope" loop with a single structured call. Instead of your assistant making dozens of tool calls and pulling raw file contents into context, it queries searchcode's pre-computed code intelligence and receives a compact summary—languages, complexity, tech stack, and findings—rather than the underlying source.

The mechanism

The page frames this as two paths to the same result:

  • Without searchcode: roughly 30+ tool calls, ~50,000 tokens, ~$0.50 per investigation.
  • With searchcode: 1 call, ~500 tokens, ~$0.005 per investigation.

That is the site's own comparison, not an independent benchmark, so treat the figures as illustrative of the design goal rather than measured guarantees. The claim of "99% token reduction" is consistent with that framing.

Why the savings happen

Three design choices drive it:

  1. Pre-computed analysis. code_analyze returns language breakdowns, complexity metrics, tech-stack detection, code quality signals, and secret scanning (security_summary flags API keys, tokens and private keys with file, line and confidence). The model reads conclusions, not raw code.
  2. Targeted retrieval. code_search supports boolean queries, regex, and structural filters (declarations, usages, strings, comments), so you fetch matching regions rather than whole files. code_get_file narrows further to line ranges or named symbols, and can include adjacent declarations for context.
  3. Batching. code_get_files pulls up to 10 files in one call, and code_file_tree maps directory structure with language, path and depth filters—avoiding the exploratory calls that normally burn context.

Practical scenario

Say you are evaluating an unfamiliar repository before adopting it. Without a code-intelligence layer, your assistant typically lists the tree, opens the README, greps for entry points, opens several files, then repeats as questions arise—each step re-sending accumulating context. With searchcode, you paste a GitHub URL or owner/repo for a dossier, or point the MCP server at it so Claude Code, Cursor, VS Code/Copilot, or Claude Desktop can call the six tools directly from the editor. Scope to a subdirectory when working in large monorepos.

Trade-offs and decision criteria

Structured summaries trade depth for economy. If you need to reason about exact implementation details—control flow, subtle logic, unusual patterns—you will still retrieve files, and token savings shrink. The approach suits triage, onboarding, comparison (the site supports side-by-side repo comparison), and security scanning. It is less suited to deep line-by-line refactoring where full source in context matters.

Two practical cautions: the tool set covers public git repositories, so private or internal code is out of scope based on the page; and the "free during beta, no signup, no API key" terms are a current-state signal that can change.

Next step

Pick one repository you already know well, run both approaches—your normal assistant workflow and a single searchcode call—and compare the token counts and answer quality yourself. That gives you a real baseline for deciding when structured intelligence beats full-context reading on your own codebase.

For setup details across the supported editors, see searchcode.com.

Is searchcode free to use, and are there any limitations during beta?

Yes—searchcode.com is free to use during its beta, with no signup and no API key required. You can either paste a public GitHub URL or an owner/repo pair into the website for a code intelligence dossier, or add the MCP server to an editor so the assistant can call the same tools.

What's free in beta

  • Web dossiers for any public repo: languages, complexity, tech stack, code quality, and secret scanning.
  • Side-by-side repo comparison, such as comparing two projects directly.
  • MCP access for Claude Code, Cursor, VS Code/Copilot, Claude Desktop, and other compatible clients.
  • Six specialized tools, including code_analyze, code_search, code_get_file, code_get_files, and code_file_tree.

Limitations to expect The page does not list hard usage caps, rate limits, or a beta end date. The main practical limits are scope and access: it works on public git repositories, not private ones, and the free tier is explicitly a beta offer, so terms can change. Some tools also have built-in bounds—code_get_files batches up to 10 files per call, and code_analyze can be scoped to a subdirectory for large monorepos.

A concrete way to decide If you are evaluating an unfamiliar open-source project, start with the web dossier rather than cloning it. If you already work inside an editor and repeatedly ask an assistant about a repo, add the MCP server instead—the page claims a single structured call replaces roughly 30 tool calls and about 50,000 tokens, which matters if you pay per token. For private repositories or guaranteed long-term free access, treat this as a beta tool to test rather than a permanent dependency.

Related questions

More questions →
What Does a Postal Code API Return? Fields, Formats, and Common Use Cases

A postal code API returns structured location data for a given ZIP Code or Canadian postal code. A typical response includes the code itself, city, state or province, county, latitude/longitude, and — where available — ZIP+4 detail. More complete services add time zone, area codes, boundary geometry, and demographic fields. You send a code (or an address), and the API sends back a machine-readable record you can store, validate, or display.

This article explains what those responses contain, how requests are usually shaped, and where postal code data fits into real applications.

First, clear up the word "code"

The keyword "code" is overloaded, and that causes real confusion for developers:

  • Postal code — the ZIP Code (U.S.) or postal code (Canada) that identifies a delivery area.
  • API key — the credential you use to authenticate your requests. It is not postal data.
  • Source code — the program you write to call the API.

When someone searches for "postal code API code," they usually want example request/response code for a postal code service. The rest of this article treats it that way.

What a postal code API actually returns

Response fields vary by provider and endpoint, but the core set is fairly consistent. A single-code lookup commonly returns:

Field Example Notes
Postal code 90210 The code you queried
City Beverly Hills May be one of several acceptable place names
State / Province CA Two-letter abbreviation
County Los Angeles Useful for tax, territory, and reporting logic
Latitude / Longitude 34.0901, -118.4065 Usually the centroid of the area
ZIP+4 90210-1234 Present only when a specific delivery segment is known
Time zone America/Los_Angeles Helps with scheduling and display
Area codes 310, 424 Regional phone context

Richer datasets add 90+ fields: boundaries, population, income, elevation, and more. You rarely need all of them — request only what your application uses.

A representative JSON response

{
  "postal_code": "90210",
  "city": "Beverly Hills",
  "state": "CA",
  "county": "Los Angeles",
  "latitude": 34.0901,
  "longitude": -118.4065,
  "timezone": "America/Los_Angeles",
  "area_codes": ["310", "424"]
}

XML responses carry the same information in tag form. Choose based on what your stack parses most easily; JSON is the common default.

Common request patterns

Most postal code APIs support four patterns. Knowing which one you need prevents wasted calls.

1. Lookup by code

You have a code and want its details. This is the simplest and fastest call.

GET /lookup?code=90210

2. Reverse lookup by address

You have a street address and want to confirm or complete the code. This is the pattern behind checkout address validation.

GET /validate?street=...&city=...&state=...

3. Radius search

You have a center point and want all codes within a distance. Useful for store locators and delivery zones.

GET /radius?code=90210&miles=10

4. Batch validation

You have a file of addresses and want them cleaned in bulk. Batch endpoints trade latency for throughput and usually have their own limits.

Handling missing and ambiguous matches

Real data is messy. Plan for these cases:

  • No match — the code doesn't exist or the address is malformed. Return a clear error rather than a silent empty object.
  • Multiple matches — a city name may map to several codes, or a code may span several acceptable city names. Decide whether to pick the primary or return a list.
  • Partial match — the street is valid but the ZIP+4 isn't. Fall back to the 5-digit code.
  • Stale data — codes are added, retired, and reassigned. Refresh your dataset on a regular schedule.

A practical rule: validate at the point of entry, store the normalized result, and never re-derive it later from raw user input.

Practical use cases

  • Checkout address validation — catch typos before shipping, reduce failed deliveries.
  • Shipping zone lookup — map a code to a zone, carrier route, or rate table.
  • Data enrichment — append county, coordinates, or demographics to existing records.
  • Store and service locators — radius search to find nearby branches or coverage areas.
  • Territory and tax logic — county and boundary data drive jurisdiction rules.

Licensing and data-source considerations

Postal code data originates with national authorities — USPS in the United States and Canada Post in Canada. Providers license and repackage it, which is why accuracy, update frequency, and field coverage differ between services. Before committing:

  • Confirm the data source and how often it refreshes.
  • Check whether ZIP+4 and boundary data are included or sold separately.
  • Review usage limits and whether batch processing is allowed.
  • Read the license terms for redistribution and storage.

Pricing and plan details change, so check the provider's current documentation rather than relying on secondhand figures.

Getting started

  1. Decide which request pattern you need (lookup, reverse, radius, or batch).
  2. Pick the fields you'll actually store.
  3. Write a small test call and inspect the raw response.
  4. Add error handling for no-match and ambiguous cases.
  5. Cache results where the same codes repeat.

A postal code API is ultimately a translation layer: you give it a code or an address, and it gives back structured location facts. Understand the fields, match them to your use case, and handle the messy edges — that's most of the work.

How searchcode Cuts Token Usage vs. Letting an AI Read a Repo Directly

searchcode replaces the "clone, cat, grep, hope" loop with a single structured call. Per the site's own comparison, understanding a new repo costs roughly 30+ tool calls, ~50,000 tokens, and ~$0.50 when your assistant reads the repo directly — versus 1 call, ~500 tokens, and ~$0.005 through searchcode. That's the same answer at roughly 100× lower cost, with no local clone and no setup. The trade-off is scope: this applies to public git repositories, and the numbers are searchcode's published estimates, not a guarantee for your specific repo or model.

Why the gap is so large

The savings don't come from a smarter model. They come from where the parsing happens.

When an AI reads a repo directly, it has to discover the structure itself: list directories, open files, grep for symbols, follow imports, re-read files it already saw. Every one of those steps pushes raw file content into the context window, and most of those tokens are noise — boilerplate, unrelated modules, formatting.

searchcode flips this. Its six tools return structured, pre-computed data — language breakdowns, complexity metrics, tech stack, findings — so the model spends tokens on reasoning instead of parsing. The site's framing is blunt: "Same answer. 100× cheaper."

The two paths side by side

Dimension AI reads repo directly With searchcode
Tool calls ~30+ 1
Tokens ~50,000 ~500
Cost per investigation ~$0.50 ~$0.005
Output Raw files the model must parse Structured: languages, complexity, tech stack, findings
Setup Clone + local tooling None (paste URL, or add MCP server)

The cost figures are searchcode's published comparison, so treat them as directional. The mechanism — fewer calls, less raw text — is what actually drives the reduction.

What the structured output contains

The value isn't just fewer tokens; it's that the tokens carry signal. code_analyze returns language breakdowns, complexity metrics, tech stack detection, code quality, and secret scanning (security_summary flags API keys, tokens, and private keys with file, line, and confidence). You can scope it to a subdirectory for large monorepos.

The other tools cover the follow-up questions an assistant would otherwise answer by reading files:

  • code_search — full-text search with boolean queries, regex, and structural filters (declarations, usages, strings, comments)
  • code_get_file — full files, line ranges, or specific symbols by name, with adjacent declarations for context in one call
  • code_get_files — batch retrieve up to 10 files in a single call, for cross-file analysis
  • code_file_tree — directory structure with language, path, and depth filters

Because each returns pre-computed structure, the model doesn't re-derive it from raw text.

When this is worth it

The reduction matters most when:

  • You're investigating unfamiliar repos repeatedly. A one-off look at a small repo may not justify any tooling; a steady stream of "what is this codebase?" questions does.
  • You're on a metered or token-budgeted plan. Cutting ~50,000 tokens to ~500 per investigation changes what fits in a budget.
  • You want the assistant to stay inside the editor. Adding the MCP server lets Claude Code, Cursor, Codex, and Copilot use the same six tools without leaving the IDE.

It matters less when you already have the repo cloned and only need one file, or when the repo is private — the site describes the tools as working over public git repositories.

How to try it

Two entry points, both requiring no signup or API key during the beta:

  1. Browse without installing. Paste a GitHub URL or owner/repo and get a dossier in seconds. The site shows examples like boyter/scc, fastapi/fastapi, and redis/redis, plus side-by-side comparison (e.g., redis vs memcached).
  2. Give it to your AI via MCP. Add the server so your assistant gets the same six tools. For Claude Code:
claude mcp add searchcode --transport http https://api.searchcode.com/v1/mcp

For Cursor, add to .cursor/mcp.json:

{"mcpServers":{"searchcode":{"url":"https://api.searchcode.com/v1/mcp"}}}

For VS Code / Copilot, add to .vscode/settings.json:

{"mcp":{"servers":{"searchcode":{"url":"https://api.searchcode.com/v1/mcp"}}}}

For Claude Desktop:

{"mcpServers":{"searchcode":{"command":"npx","args":["-y","mcp-remote","https://api.searchcode.com/v1/mcp"]}}}

The site also links a full setup guide for OpenCode, Crush, Codex, Gemini CLI, Amp, and LM Studio.

Expected result: after adding the server, your assistant can call code_analyze, code_search, code_get_file, and the other tools against any public repo — returning structured data instead of raw files.

Common sticking points

  • The cost figures are estimates. ~$0.50 vs ~$0.005 depends on your model's pricing and how the assistant would otherwise explore. Use them to judge the order of magnitude, not as a bill.
  • Public repos only. The tools are described as working over public git repositories; don't assume private-repo access.
  • Beta terms can change. The site states it's free during beta with no signup or API key — that's the current state, not a permanent pricing commitment.
  • MCP config differs per client. The snippets above match the site's examples; other clients use the linked setup guide rather than the same JSON shape.
What is searchcode.com and what does it do?

searchcode.com is a code intelligence service for working with public Git repositories. It has two entry points: a browser tool where you paste a GitHub URL or owner/repo and get a structured "dossier" in seconds, and an MCP server that plugs the same capabilities into AI coding assistants like Claude Code, Cursor, VS Code/Copilot, and Claude Desktop. Its stated purpose is to let an LLM understand a repository without cloning it or reading files one by one — the site claims roughly 99% token reduction versus manual exploration. It is free during beta, with no signup and no API key required.

What you get from a repository URL

Paste a public repo (for example fastapi/fastapi or redis/redis) and searchcode returns pre-computed, structured data rather than raw source. According to the site, the dossier covers:

  • Languages — breakdown of what the repo is written in
  • Complexity metrics
  • Tech stack detection
  • Code quality signals
  • Secret scanning — API keys, tokens, and private keys with file, line, and confidence

You can also compare two repositories side by side (the site's example is redis vs memcached). No install is needed for this browser path.

The six MCP tools

When you connect the MCP server, your assistant gets six specialized tools. Each returns structured, pre-computed data so the model spends tokens on reasoning instead of parsing. The named tools include:

Tool What it does
code_analyze Language breakdowns, complexity, tech stack, code quality, secret scanning (security_summary is the credential scanner). Can be scoped to a subdirectory for large monorepos.
code_search Full-text search with boolean queries, regex, and structural filters — declarations, usages, strings, comments.
code_get_file Retrieve full files, line ranges, or specific symbols by name, with adjacent declarations for context in one call.
code_get_files Batch retrieve up to 10 files in a single call, for cross-file analysis.
code_file_tree Directory structure with language, path, and depth filters.

The site lists three more beyond the four named above, describing the set as "six specialized tools."

Why the token math matters

The site frames the value as a comparison between two ways of investigating an unfamiliar repo:

  • Without searchcode: ~30+ tool calls, ~50,000 tokens, ~$0.50 per investigation — described as "clone, cat, grep, hope."
  • With searchcode: 1 call, ~500 tokens, ~$0.005 per investigation, returning a structured response with languages, complexity, tech stack, and findings.

Same answer, roughly 100× cheaper by the site's own estimate. Treat those figures as vendor claims rather than measured benchmarks, but the underlying mechanism is real: pre-computing analysis server-side means the model never has to pull whole files into context just to learn what a repo contains.

How to connect it

Setup differs by client. The site provides copy-paste configs:

Claude Code (command line):

claude mcp add searchcode --transport http 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"}}}}

Claude Desktop:

{"mcpServers":{"searchcode":{"command":"npx","args":["-y","mcp-remote","https://api.searchcode.com/v1/mcp"]}}}

The site also points to a full setup guide for OpenCode, Crush, Codex, Gemini CLI, Amp, and LM Studio.

Who it's for, and when to skip it

It fits developers using an AI coding assistant who need to orient in an unfamiliar public repository — onboarding to a dependency, evaluating a library before adopting it, or answering "what is this codebase and is it healthy?" without a clone. The secret-scanning angle is useful for a quick credential-hygiene check on a repo you're considering.

It is less useful if you already have the repo cloned and indexed locally, if you need private-repository support (the site describes public repos), or if you want to edit code rather than understand it. Since it is free during beta with no signup, the cost of trying the browser dossier on one repo is essentially zero — that's the fastest way to judge whether the output matches how you actually work.

How to Add the searchcode MCP Server to Claude Code, Cursor, or Copilot

Add the searchcode MCP server by pointing your client at the HTTP endpoint https://api.searchcode.com/v1/mcp. Claude Code takes a one-line CLI command; Cursor and VS Code/Copilot take a small JSON block in a config file; Claude Desktop needs an npx bridge. The server is free during beta with no signup and no API key, so the only thing you supply is the URL. Once connected, your assistant gets six tools (code_analyze, code_search, code_get_file, and three more) that work over any public git repository.

What you need before starting

  • A client that supports MCP servers: Claude Code, Cursor, VS Code/Copilot, Claude Desktop, or another listed client.
  • The endpoint URL: https://api.searchcode.com/v1/mcp.
  • No account, API key, or payment step — the beta is open and keyless.
  • A public repo you want to inspect, in owner/repo form (e.g. fastapi/fastapi).

Claude Code

Run this from your terminal:

claude mcp add searchcode --transport http https://api.searchcode.com/v1/mcp

The --transport http flag tells Claude Code this is a remote HTTP server rather than a local process, and the trailing URL is the endpoint. After it registers, ask Claude Code something like "analyze fastapi/fastapi" and it should call code_analyze instead of cloning and grepping.

Cursor

Create or edit .cursor/mcp.json in your project:

{"mcpServers":{"searchcode":{"url":"https://api.searchcode.com/v1/mcp"}}}

The key name (searchcode) is just a label — it's how the server shows up in your client. The url field is what actually connects it. Restart or reload Cursor so it picks up the new server.

VS Code / Copilot

Edit .vscode/settings.json:

{"mcp":{"servers":{"searchcode":{"url":"https://api.searchcode.com/v1/mcp"}}}}

Note the nesting differs from Cursor: VS Code wraps servers under an mcp object with a servers key, while Cursor uses mcpServers at the top level. Copying one config into the other client won't work.

Claude Desktop

Claude Desktop can't hit the HTTP endpoint directly, so it runs a local bridge through npx:

{"mcpServers":{"searchcode":{"command":"npx","args":["-y","mcp-remote","https://api.searchcode.com/v1/mcp"]}}}

Here command and args describe a local process that mcp-remote uses to reach the remote server. The -y flag auto-confirms the package install so it doesn't stall on a prompt.

Other clients

For OpenCode, Crush, Codex, Gemini CLI, Amp, or LM Studio, the site points to a full setup guide rather than inline snippets. The pattern is the same across all of them — register a server named searchcode with the URL https://api.searchcode.com/v1/mcp — but the config file location and key names vary by client, so check that client's own MCP documentation for where the block goes.

Verifying it works

Ask your assistant to analyze a known public repo, for example redis/redis. A working setup returns a structured dossier: language breakdown, complexity metrics, detected tech stack, code quality signals, and findings. If the assistant instead starts cloning, running cat, or grepping, the server isn't connected — recheck the URL and that you reloaded the client.

Common snags

  • Wrong config shape. Cursor uses mcpServers; VS Code uses mcp.servers. Mixing them silently fails.
  • No reload. Most clients only read MCP config at startup, so restart after editing.
  • Expecting a local install. This is a remote HTTP server — there's nothing to clone or run yourself except the npx bridge for Claude Desktop.
  • Private repos. The tools operate on public repositories; don't expect access to private ones.

Why the setup is worth it

Without the server, understanding a new repo can take roughly 30+ tool calls and ~50,000 tokens (about $0.50 per investigation) as the model clones, cats, and greps. With it, the same question resolves in about 1 call and ~500 tokens (about $0.005) because the server returns pre-computed, structured data. Same answer, far fewer tokens — which is the whole point of wiring it in.

What tools does searchcode provide for code analysis?

searchcode exposes six specialized tools through an MCP server, and each returns structured, pre-computed data rather than raw file contents. The point is that an LLM spends tokens on reasoning instead of parsing: the site claims roughly 1 call and ~500 tokens per investigation versus ~30+ tool calls and ~50,000 tokens when an assistant clones, greps, and reads a repo itself. You can use the tools either by pasting a public GitHub URL into the web dossier, or by adding the MCP server to an editor so Claude Code, Cursor, Codex, or Copilot calls them directly. The service is described as free during beta, with no signup and no API key required.

The six tools and what each returns

Tool What it does Typical use
code_analyze Language breakdowns, complexity metrics, tech stack detection, code quality, and secret scanning Get an orientation dossier on an unfamiliar repo
code_search Full-text code search with boolean queries, regex, and structural filters Find where something is declared or used
code_get_file Retrieve full files, line ranges, or specific symbols by name Pull exactly the code you need
code_get_files Batch retrieve up to 10 files in one call Cross-file analysis
code_file_tree Directory structure with language, path, and depth filters Map a repo before diving in
(one further tool) Listed as part of the six —

The page names code_analyze, code_search, code_get_file, and "three more," and explicitly lists code_file_tree and code_get_files in the capabilities section, which accounts for five of the six.

code_analyze

This is the entry point for understanding a repository you have never seen. It returns language breakdowns, complexity metrics, tech stack detection, and code quality signals in one structured response.

It also includes security_summary, which the page describes as the credential scanner: it reports API keys, tokens, and private keys with file, line, and confidence. For large monorepos you can scope the analysis to a subdirectory rather than the whole tree.

code_search

Full-text search across the code, with three layers of query control:

  • Boolean queries for combining terms
  • Regex for pattern matching
  • Structural filters for declarations, usages, strings, and comments

That last layer is what separates it from plain grep: you can ask for a symbol's declaration sites specifically, or only its usages, or restrict matches to strings or comments.

code_get_file and code_get_files

code_get_file retrieves a full file, a line range, or a specific symbol by name. It can also include adjacent declarations so you get surrounding context in a single call instead of a follow-up round trip.

code_get_files does the same in batch, up to 10 files per call. This is the tool for cross-file analysis — for example, tracing how a type defined in one module is consumed across several others.

code_file_tree

Returns the directory structure with filters for language, path, and depth. Useful as a first call on a large repo to decide which subdirectories are worth analyzing or searching.

Connecting the tools to your editor

The MCP endpoint is https://api.searchcode.com/v1/mcp. Setup differs by client:

Claude Code — one command:

claude mcp add searchcode --transport http 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"}}}}

Claude Desktop — uses a local bridge:

{"mcpServers":{"searchcode":{"command":"npx","args":["-y","mcp-remote","https://api.searchcode.com/v1/mcp"]}}}

For OpenCode, Crush, Codex, Gemini CLI, Amp, or LM Studio, the site points to a full setup guide. Once connected, your assistant gets the same six tools over any public repo.

Choosing between the web dossier and the MCP server

If you just want to look at a repo yourself, paste a GitHub URL or owner/repo into searchcode.com and you get a dossier in seconds with no install. The page also supports side-by-side comparison of two repos (its example is redis vs memcached).

If you want your AI assistant to do the investigation inside your editor — and to avoid the token cost of it cloning and grepping — add the MCP server. The two paths use the same underlying tools; the difference is who is reading the output.

Website Overview

Limited stack disclosure and few obvious backend markers suggest a more restrained public footprint. That reduces easy fingerprinting clues but is not proof of overall security. An established domain and managed infrastructure suggest continuity of operations and may support dependable delivery, although neither guarantees service quality.

Domain and Registration

Registered in 1999, this domain has about 27 years of history. That suggests continuity, although ownership and purpose may have changed. Transfer-protection status is present, helping reduce the risk of unauthorized domain transfers. The domain uses the common .com extension, which is not an independent safety signal.

DNS and Email

Nameservers are provided by Amazon Route 53, indicating managed DNS hosting. No CNAME was found; the observed records resolve directly to addresses. No MX record was found. A conventional explicit inbound-mail route is not configured. DNSSEC signatures were not detected, so this additional DNS authenticity protection is not confirmed. The lowest observed DNS TTL is 300 seconds.

TLS and Certificates

The public key uses EC with 256 bits. The server supplied a complete certificate chain. No organization name is present in the certificate; the available fields are consistent with domain validation. The certificate was issued by Let's Encrypt, commonly associated with automated certificate services. The certificate's total validity is about 89 days, consistent with a short renewal cycle.

HTTP and Browser Security

The checked browser-security headers were not detected, leaving fewer explicit browser-side safeguards. No X-Powered-By header was found, reducing one common source of backend fingerprinting information. The via response header indicates a CDN or caching proxy in the delivery path. No obvious internal addresses or debug information were found in the headers. No CORS permission header was found, so browsers normally restrict cross-origin script access.

Technology Stack Analysis

No obvious technology stack is exposed. This may reflect restrained information disclosure, although the underlying technologies remain unknown.

Search and Social Sharing

No homepage canonical URL was detected. If duplicate URLs exist, consolidation may be less explicit. Twitter Card metadata is configured. The title has 43 characters, within a common display range. A meta description is present, with 151 characters. The observed directives allow indexing and link following.

Hosting and Email

DNSAmazon Route 53
HostingHetzner Online GmbH
EmailUnknown
Approximate IP geolocation (inferred; a CDN or proxy may differ from the origin server) Finland flagHelsinki, Uusimaa, Finland Inferred 95.216.68.154

Registration details

RDAP / WHOIS

RegistrarAmazon Registrar, Inc.
Registered1999-08-09
Expires2027-08-09
Domain statusclient transfer prohibited
Nameserversns-1493.awsdns-58.org、ns-1701.awsdns-20.co.uk、ns-333.awsdns-41.com、ns-938.awsdns-53.net
DNSSECunsigned

DNS records

DNS

TypeNameValueTTLPriority
Asearchcode.com95.216.68.154300—
NSsearchcode.comns-1493.awsdns-58.org172800—
NSsearchcode.comns-1701.awsdns-20.co.uk172800—
NSsearchcode.comns-333.awsdns-41.com172800—
NSsearchcode.comns-938.awsdns-53.net172800—
TXTsearchcode.combrave-ledger-verification=efa6541b33fddc79f3534648fe74cd51368e681848c28e4c3d29b93fbe97e444300—

TLS and certificates

TLS / SSL

AssessmentNormal configuration
Supported protocolsTLSv1.2、TLSv1.3
Negotiated protocolTLSv1.3
Certificate subjectsearchcode.com
IssuerLet's Encrypt
Valid until2026-12-01T22:50 · Remaining when checked: 59 days
Verification detailsCertificate trust: Passed · Hostname match: Passed

HTTP response headers

HTTP

HeaderValue
content-typetext/html; charset=utf-8

Identified technologies

Technology stack: Unknown

Pages, Search and Sharing

Meta descriptionMCP server providing structured code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository with 99% token reduction.
Canonical URLNot detected
LanguageEnglish (default)
Twitter Cardsummary_large_image
All bots 1 allowed · 2 disallowed
  • Allow/
  • Disallow/repo/*/search
  • Disallow/*?q=

User reviews (0)

  • No reviews yet.