Skip to content
MCP server

PreClone

Check what a repository would run on your machine before you clone or open it

Runs locallyStatus and history
Install
Pricing
Freemium
Platforms
CLI, Chrome extension, API
Runs
Locally
Version
1.4.0
Listing updated
1 day ago

About PreClone

PreClone is a freemium MCP server for security. It runs locally on your machine and is started by your AI client.

Hostile take-home projects and pull requests often hide things that execute on checkout, and this tool reads repository files without ever running them. It looks at install scripts, folder-open tasks and agent start hooks, scores the result as Malware signs, Read first, Worth a look or Nothing flagged, and never calls anything safe. Findings give the rule, when it fires, severity, evidence with path and line, and whether it runs without a typed command.

Two read-only MCP tools exist: check_repo for a link, owner/repo or a whole git clone line, and check_path for a folder or archive on disk. The same engine powers a CLI, a GitHub Action example, a browser extension and an HTTP API. Reports quote repo text inside random-tagged markers and warn that a hostile repository could still try prompt injection.

The CLI uploads no code, only package names and versions to npm and OSV. Anonymous use allows 12 checks an hour; a free account gets 40 a day, Pro 1,000.

Install

Run in a terminal

claude mcp add preclone -- npx -y preclone

Add to claude_desktop_config.json

{
  "mcpServers": {
    "preclone": {
      "command": "npx",
      "args": [
        "-y",
        "preclone"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "preclone": {
      "command": "npx",
      "args": [
        "-y",
        "preclone"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "preclone": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "preclone"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "preclone": {
      "command": "npx",
      "args": [
        "-y",
        "preclone"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "preclone": {
      "command": "npx",
      "args": [
        "-y",
        "preclone"
      ]
    }
  }
}

Tools this server provides (2)

Taken from the project documentation; the running server may differ.

check_repo
Check a repository link, owner/repo or clone line
check_path
Check a folder or archive on disk

What it does

Entry-point scanning
Finds install scripts, folder-open tasks and agent hooks.
Verdict levels
Four levels, never labelled safe.
CI gate
Fail a job on a severity threshold.
Private repos
Pro supports private repositories.
Browser button
Check before cloning on GitHub.
Defanged evidence
URLs and credentials are neutralised.

Good for

  • Vet a take-home before opening it in an editor
  • Gate unknown pull requests in CI
  • Let an agent check a repo before following setup steps
  • Review a downloaded zip

Pricing

Freemium

Free tier with daily limits; Pro raises limits and adds private repos

Prices change. Check preclone.dev before you buy.

PreClone FAQ

Does it run the code?

No, it only reads files.

Does it upload my code?

The CLI does not; it sends only package names and versions to npm and OSV.

What are the limits?

12 checks an hour anonymously, 40 a day on a free account, 1,000 on Pro.

Is any result called safe?

No, the best verdict is Nothing flagged.

Is PreClone free?

PreClone has a free plan, with paid plans for more usage or features.

How do I add PreClone to Claude Code?

Run this command in your terminal: claude mcp add preclone -- npx -y preclone

What are the best alternatives to PreClone?

The closest alternatives to PreClone are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

Alternatives to PreClone

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools