PTS security notes / MCP servers / Magic MCP (21st.dev)

Is Magic MCP (21st.dev) safe to install?

By PTS · Based on public source as of December 5, 2026

Short answer

The README says Magic MCP is now the 21st MCP, a hosted server at 21st.dev/api/mcp with an API key. The old @21st-dev/magic package is a small stdio proxy that forwards everything to it. Your prompts go to 21st.dev. Use a fresh key, store it in an environment variable and review which tools the hosted server lists.

What it is

@21st-dev/magic by 21st.dev is a UI component builder for coding agents. As of the README, it has been replaced by the unified 21st MCP, set up with the 21st CLI.

Maintainer
Official (vendor)21st-dev on GitHub (organisation account, project of the same name)
Source
21st-dev/magic-mcp6,853 GitHub stars · ISC licence
Transport
Streamable HTTP (hosted), stdio (legacy proxy)Hosted endpoint: https://21st.dev/api/mcp
Packages
@21st-dev/magic npm · latest 0.2.3 · 58,990 downloads last month
Latest release
21st MCP compatibility proxy 0.2.3 2026-09-09
Public advisories
0GitHub and OSV, as of December 5, 2026

What it can do

Read from the public tool definitions in the source, not from a live run. A capability marked "yes" means at least one tool can do it.

Prompts and project context you send go to 21st.dev's service.

ToolWhat it can doNotes
generateNetworkGenerates a UI component from a prompt.
get_inspirationReads, Network
search_logoReads, Network
Catalog, bookmark and team library toolsReads, Writes, NetworkThe README says the current server exposes much more than the old four tools, including paid code retrieval and team libraries.

README tool-name table. The full tool list lives on the hosted server, so snapshot it.

Credentials and least privilege

One API key to a hosted service.

CredentialWhat it is forLeast privilege
21st API key (x-api-key header or TWENTY_FIRST_API_KEY)Authenticates to 21st.dev.Generate a new key at 21st.dev/mcp (old Magic keys were reset), and keep it out of shared config files.

Public security advisories

No published security advisory was listed for this project on GitHub or OSV as of December 5, 2026. That only means none had been published. It does not mean the code has been audited.

What stands out

Safe-install checklist

Install command from the project's docs: npx @21st-dev/cli@latest init --client cursor.

  1. Pin the version. Use an exact version, not latest: npx -y @21st-dev/magic@0.2.3. The legacy package is a proxy. The hosted tool list can change.
  2. Scope the credential. Generate a new key at 21st.dev/mcp (old Magic keys were reset), and keep it out of shared config files.
  3. Snapshot the tool list on each connect and compare it with the PTS diff tool.
  4. Use a dedicated key and check what billing is attached to it.
  5. Deny the tools you do not need. In Claude Code, deny rules in .claude/settings.json use the form mcp__<server name>__<tool>, where the server name is whatever you called it in your config. Example, if you named it magic-mcp:
    {
      "permissions": {
        "deny": [
          "mcp__magic-mcp__Catalog, bookmark and team library tools"
        ]
      }
    }
  6. Snapshot the tool list. Save the tools/list output right after you install, then compare it before every upgrade with the free PTS MCP tool diff checker. It runs in your browser and flags new tools and changed descriptions or schemas.
  7. Watch for fixes. Watch the project's security advisories and upgrade on purpose, after the diff.

For the general version of this list, see the MCP server security checklist. Not sure about a server that is not listed here? Read Is an MCP server safe to install?

Quick follow-ups

What can Magic MCP (21st.dev) do on my machine or accounts?

Based on its public tool definitions, it can: reads local files or data; creates or changes files, records or settings; reaches the open web or a third-party service beyond the account you connect it to. Prompts and project context you send go to 21st.dev's service.

Does Magic MCP (21st.dev) need a token or API key?

Yes, depending on setup: 21st API key (x-api-key header or TWENTY_FIRST_API_KEY). One API key to a hosted service.

Has Magic MCP (21st.dev) had public security advisories?

No published advisory was listed for it on GitHub or OSV as of December 5, 2026. That is not proof it has no issues, only that none had been published.

How do I keep Magic MCP (21st.dev) from changing under me?

Pin the version, for example npx -y @21st-dev/magic@0.2.3. Then save its tool list (name, description, input schema) with the free PTS MCP tool diff checker and compare it before each upgrade.

Sources

This page is a factual summary of public information about the software. It is not a verdict on the maintainers and not an audit. Check the project's own docs for your version before you rely on it. Educational, not legal or security advice.

Get the free checklist

A 9-page worksheet plus starter files for Claude Code and Codex. It maps what your agent can reach and shrinks it. Download it on Gumroad. This site does not collect email.

Get the free checklist

Before you install anything, try the MCP tool diff checker. See all 54 servers.

More server pages