jscpd 🔌 MCP server Open source
Fast duplicate-code detector with an MCP server so agents can check for copy-paste before committing
- GitHub stars
- 6.3k
- Stars this week
- +51
- Forks
- 265
- Licence
- MIT
- Last push
- 2026-10-02
- Maintainer
- kucherenko
npm install -g jscpdThird-party MCP servers run with your permissions. Read the source before installing, and prefer pinned versions.
Works with
Built on the open MCP standard, so it works in every app that supports MCP.
About jscpd
What it does
jscpd is a mature, Rust-based duplicate-code detector that tokenizes source files across 224+ languages/formats and uses a Rabin-Karp rolling hash to find copy-pasted (Type-2/Type-3) code blocks. It also flags dead code, ranks files by complexity, tracks duplication trends through git history, and rolls results into a composite codebase health score.
Tools it gives your agent
- An MCP server (stdio) so an AI assistant can check a snippet against the rest of the codebase before adding it
- An installable agent skill aimed at DRY refactoring and codebase-health passes
- A compact "AI reporter" output claimed to use ~79% fewer tokens than console output, for LLM pipelines
- 15 report formats (console, JSON, HTML, SARIF, markdown, badge, xcode, etc.) and a GitHub Action with SARIF upload to Code Scanning
Works with
Bundled by default in GitHub Super Linter and MegaLinter; powers Codacy's duplication engine; works in pre-commit hooks and general CI pipelines. Used as a dependency by roughly 5,000 repositories, including ones from Google, Microsoft, and Salesforce.
How to install or connect
curl -fsSL https://jscpd.dev/install.sh | bash
npx jscpd .
npm install -g jscpd
Also distributable via PyPI, Cargo, Homebrew, Docker, and Nix.
Maintenance and safety
Very actively maintained (2,000+ commits, 6.2k stars, 265 forks, 10M+ monthly npm downloads), with a published SECURITY.md and an OpenSSF Best Practices badge. MIT licensed.
Who should use it
Teams that want an established, widely-adopted duplication/complexity scanner in CI, who also want their coding agent to query it (via MCP or the agent skill) before introducing more copy-pasted code. It's best evaluated as a code-quality tool with AI hooks rather than an agent-native product.
Pros
- Mature, battle-tested tool (MIT, 6.2k stars, 10M+ monthly npm downloads) already depended on by ~5,000 repos including projects from Google, Microsoft and Sales
- Genuine MCP server (stdio) plus an installable agent skill let a coding agent check a snippet against the codebase before adding more duplication
- Fast Rust engine (224+ languages/formats), SARIF/GitHub Code Scanning support, and a compact AI-oriented report format
Cons
- Primarily a long-standing traditional linter/duplication scanner — the AI-native surface (MCP server, agent skill) is a secondary feature layered on afterward,
- Default install path is a curl-pipe-to-shell script (from the project's own domain, jscpd.dev), which some teams may want to avoid in favor of the npm/Homebrew
Similar MCP servers
All developer tool MCP servers →GitHub MCP Server 🔌 MCP serverFree
GitHub's official MCP server: issues, pull requests, code, Actions and security alerts
XcodeBuildMCP 🔌 MCP serverOpen source
Build, run, test and debug iOS and macOS apps from AI agents, maintained by Sentry
Sentry MCP 🔌 MCP serverFreemium
Sentry's MCP server: pull errors, stack traces and issues into your agent
🔥 Sentry for Startups: up to $5,000 in credits (12-month expiry) for companies founded in the last 2 years with under $5M raisedMCP Reference Servers 🔌 MCP serverFree
The official reference MCP servers: fetch, filesystem, git, memory and more
Unity MCP 🔌 MCP serverOpen source
Lets AI agents drive the Unity Editor: scenes, C# scripts, assets, tests and builds
n8n-MCP 🔌 MCP serverFreemium
n8n node docs, templates and validation so agents build workflows that actually run
🔥 Startup Plan: 50% off the self-hosted Business plan (fewer than 20 employees, under €5M raised)