PlugWiki
jscpd MCP logo

jscpd MCP Server: Setup for Claude, Cursor and Other Apps

OfficialLocal

Lets Claude, Cursor and other assistants find duplicated code in your project and check new code against it before they write it.

This is the jscpd copy/paste detector's own MCP server, built into the jscpd command. It scans one project folder and keeps the results, then answers questions about duplicate code from your assistant.

It runs on your computer and needs no account. You pass the project folder when you start it. The semantic comparison needs a 548 MB model downloaded first, and the server never downloads it for you.

Good for

  • Developers who want an assistant to reuse code instead of copying it
  • Teams cleaning up duplicated code before a refactor
  • Anyone porting a codebase to another language

Works in

12 should work

Tap an app to see how to set it up and any known problems.

Install jscpd MCP

Claude Code

  1. 1

    Copy this prompt.

    Add the jscpd MCP server to Claude Code. Run this command:
    
    claude mcp add jscpd -- cpd --mcp /path/to/project
    
    Then check that it loaded and tell me if I need to sign in or restart.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires jscpd installed (cpd or jscpd command).

The server speaks stdio only in v5. The jscpd and cpd commands are the same binary. Add --semantic to the arguments to look for same-job copies, after jscpd --semantic-download (548 MB).

Built from the package data we hold. Not yet tested by us. Source.

Tools

  • Checks a code snippet against your project for copies

    Takes code and its language and returns matching code in your project, with files and lines. It finds exact, renamed, near-miss and, if set up, same-job copies.

    Try: “Before you write this function, check if the project already has something like it.”

    Files · check_duplication

  • Lists the duplicated code in one file

    Returns every clone found in the file you name, biggest first.

    Try: “Which parts of src/api.ts are copied elsewhere?”

    Files · get_file_clones

  • Shows duplication totals for the project

    Returns how much of the project is duplicated, split by language and by kind of copy.

    Try: “How much of this codebase is duplicated?”

    Read · get_statistics

  • Rescans the project for duplicates

    Reads the project folders again so results reflect your latest edits, then returns the new clone list.

    Try: “Rescan the project and list the biggest duplicates.”

    Files · check_current_directory

  • Compares two folders function by function

    Pairs up the functions of two folders, for example a port and its original, and reports matches and the ones left unmatched. It needs a semantic model on your machine or an embeddings API, and asks you first.

    Try: “Compare the python and typescript folders and show what is not ported yet.”

    Files · compare_folders

Read from the source code

Permissions

low risk · 2 things to watch

Low risk

Its documented tools only scan and report on the folders you point it at. Start it on one project folder rather than your whole disk.

What it can do

  • Read your data
  • Create and change things
  • Delete things
  • Read-only mode

Watch out for

  • It reads the whole folder you give it

    It scans every source file under the path you pass. Choose a project folder, not your home directory. github.com

  • Semantic mode needs a large model

    Same-job comparison needs a 548 MB model or an embeddings API. With an API, code snippets are sent to that service. github.com

Security advisories

No published security advisories as of Nov 1, 2026.

Technical details
Sign-in and keysNo sign-in or key.

Questions

Is the jscpd MCP server official?

Yes. It is part of the jscpd project itself and starts with jscpd --mcp.

Is it free?

Yes. jscpd is MIT licensed and the server needs no account or key.

Is it local or hosted?

Local. It runs on your computer over stdio. The docs say there is no HTTP mode in v5.

Can it change my code?

The docs describe the five tools as scanning and reporting, and none is described as writing files.

Do I need Node.js?

Not at run time. Version 5 is a self-contained binary that you can install with npm, pip, Cargo, Homebrew or a script.

What is the difference from running jscpd on the command line?

The server keeps the scan in memory, so the assistant can check a snippet without a new scan. The reports for the console, Markdown and HTML stay on the command line.

Information

updated Nov 2, 2026

Publisher
Official
Package
jscpd
Registry
npm
Transport
stdio
Auth
None
License
MIT
Last commit
Oct 30, 2026
Open issues
44

WebsiteGitHubChangelogIssues

Sources

Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.

Show all 2
  1. github.com · github.com
  2. github.com · github.com

Facts from the official MCP registry, GitHub, npm, PyPI and the Docker catalog. Updated Nov 2, 2026.