Dev blog · Features · 2026-11-22
Typosquatted MCP packages: catching lookalike names before npx runs them
A local MCP server starts with a line like npx -y @modelcontextprotocol/server-filesystem. Copy that from a README with one letter wrong and npx will happily download and run whatever package has the wrong name. If an attacker registered that name first, it’s their code running with your permissions, every time your agent starts. Nothing warns you.
That’s typosquatting, and it’s one of the most common ways malicious packages reach people. Calyban 1.3 checks launch lines for it.
What do typosquats look like?
Four common shapes, using a made-up package mcp-server-postgres as the target:
| Shape | Lookalike |
|---|---|
| Swapped letters | mcp-server-postrges |
| Missing letter | mcp-server-postgre |
| Extra or changed letter | mcp-server-postgress |
| Look-alike character | mcp-server-p0stgres (zero for o) |
In a terminal they’re easy to miss. In a long JSON config, more so.
How does Calyban catch them?
Before installing an MCP server, Calyban takes the package the launch line runs (for npx, bunx and pnpx that’s an npm package; for uvx and pipx a PyPI one) and compares it with the popular packages in its catalog:
- Edit distance 1. One letter added, removed or changed, or two neighbouring letters swapped (Damerau-Levenshtein distance), from a popular package.
- Confusable characters folded first, so
0ando,1andlcount as the same letter. - Exact matches are fine, of course; so is the popular package itself.
A lookalike is a high-risk finding that names the package it resembles. The install stops until you choose Install anyway, because sometimes two real packages genuinely have similar names.
And packages that are already known to be malicious?
Those are checked separately, against about 234,000 npm and PyPI packages from OpenSSF Malicious Packages, many of them typosquats that someone already reported. The lookalike check covers the ones nobody has reported yet. Details: How Calyban checks MCP launch packages against known malware.
How do I protect myself without Calyban?
- Copy launch lines from the project’s own README or the official MCP Registry, never from a forum post.
- Check the package page on npm or PyPI before the first run: publisher, downloads, repository link.
- Pin a version (
package@1.2.3) so a later bad release can’t arrive on its own.
How the layers fit together
The lookalike check compares names against the popular packages in the catalog, which are the ones attackers imitate. It flags any name one edit away from a popular package, which is exactly where typosquats live. The known-malware list and the pattern checks are the other two layers. All three are described on the Safety check page; questions go to Discord.