SkillsMay 14, 2026·3 min read

jscpd — Copy/Paste Detector + MCP Server

A copy/paste (duplicate code) detector supporting 223 formats, with CLI and server modes; verified 5631★, pushed 2026-05-14.

Agent ready

This asset can be read and installed directly by agents

TokRepo exposes a universal CLI command, install contract, metadata JSON, adapter-aware plan, and raw content links so agents can judge fit, risk, and next actions.

Native · 98/100Policy: allow
Agent surface
Any MCP/CLI agent
Kind
Skill
Install
Npm
Trust
Trust: Established
Entrypoint
jscpd
Universal CLI install command
npx tokrepo install 05e96397-da0a-5479-8c67-c801d6fb97f5
Intro

A copy/paste (duplicate code) detector supporting 223 formats, with CLI and server modes; verified 5631★, pushed 2026-05-14.

Best for: Teams adding duplicate-code detection to CI, monorepos, or agent refactor workflows

Works with: Node.js; runs as CLI or server per README install examples

Setup time: 5-10 minutes

Key facts (verified)

  • GitHub: 5631 stars · 233 forks · pushed 2026-05-14.
  • License: MIT · owner avatar + repo URL verified via GitHub API.
  • README-backed entrypoint: jscpd.

Main

  • Use jscpd as a regression guard: run it in CI to keep copy/paste from silently spreading during fast iterations.

  • Tune it for agent refactors: set a token threshold so you catch true duplication without flagging common boilerplate.

  • Prefer the server mode when you need repeated queries across multiple repos or a UI/report pipeline.

  • Treat supported formats as a scope knob: start narrow (your main language), then expand once the baseline is clean.

README (excerpt)

jscpd

stand with Ukraine

npm jscpd license npm

jscpd CI codecov FOSSA Status Backers on Open Collective Sponsors on Open Collective

NPM

Copy/paste detector for programming source code, supports 223 formats. AI-ready with MCP server and token-efficient reporter.

Copy/paste is a common technical debt on a lot of projects. The jscpd gives the ability to find duplicated blocks implemented on more than 223 programming languages and digital formats of documents. The jscpd tool implements Rabin-Karp algorithm for searching duplications.

Packages of jscpd

name version description
jscpd npm main package for jscpd (cli and API for detections included)
jscpd-server npm jscpd server application

Source-backed notes

  • README states it supports 223 formats and provides both CLI and server installs (npm install -g jscpd / jscpd-server).
  • Repo is MIT licensed and actively maintained (verified via GitHub API).
  • README includes a pnpm install path for contributors (repo build instructions).

FAQ

  • Is it only for JavaScript?: No—README says it supports 223 formats; run it against your repo language set.
  • How do I install the CLI?: Use npm install -g jscpd (README install section).
  • Can I run it as a service?: Yes—README mentions server mode (jscpd-server).
🙏

Source & Thanks

Created by kucherenko. Licensed under MIT.

kucherenko/jscpd — ⭐ 5631

Thanks to the upstream maintainers and contributors for publishing this work under an open license.

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets