Magic MCP vs Code Runner

A side-by-side look at the Magic MCP and Code Runner MCP servers: transport, auth, tools, quality signals, and the config to install either one in Claude, Cursor, Windsurf or VS Code.

Magic MCP logoMagic MCPArchitecture & Design · Local subprocess (stdio)Create crafted UI components inspired by the best 21st.dev design engineers.53GoodAuth: api key requiredCode Runner logoCode RunnerCode Execution · Local subprocess (stdio)Code Runner MCP Server which can run code in various programming languages.43FairAuth: not declared

Verdict: choose Magic MCP for architecture & design work as a local process; choose Code Runner for code execution as a local process. You can also run both side by side in one mcpServers block.

Which MCP server should you choose?

Magic MCP logoChoose Magic MCP when

  • You need dedicated capabilities in the Architecture & Design domain.
  • You prefer a local stdio subprocess transport.
  • Its auth model fits you: API key required.
  • You have the keys it needs: TWENTY_FIRST_API_KEY, API_KEY_21ST.
Explore Magic MCP

Code Runner logoChoose Code Runner when

  • You need dedicated capabilities in the Code Execution domain.
  • You prefer a local stdio subprocess transport.
Explore Code Runner

Feature & specification comparison

Rows where the two servers differ are marked.

SpecMagic MCP logoMagic MCPCode Runner logoCode Runner
CategoryArchitecture & DesignCode Execution
Quality signal53/100 · Good43/100 · Fair
Install commandConfirmedConfirmed
TransportLocal subprocess (stdio)Local subprocess (stdio)
AuthAPI key requiredNot declared
PricingPaid serviceNot declared
Required env varsTWENTY_FIRST_API_KEYAPI_KEY_21STNone listed
Verified ownerCommunity listingCommunity listing
GitHub stars6,242242
Directory activity 17 views 1 installs 0 upvotes 2 views 0 installs 0 upvotes
ToolsNot listedNot listed

Tools & capabilities

Magic MCP tools

No tool names declared yet. Check the project README from the listing page.

Code Runner tools

No tool names declared yet. Check the project README from the listing page.

Ready-to-paste client configs

Paste either block (or both) into your client config, e.g. claude_desktop_config.json or ~/.cursor/mcp.json. We only show a config when the install command is confirmed.

Magic MCP

mcpServers (Claude Desktop / Cursor)
{
  "mcpServers": {
    "21st-dev-magic-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@21st-dev/cli@latest"
      ],
      "env": {
        "TWENTY_FIRST_API_KEY": "YOUR_TWENTY_FIRST_API_KEY_HERE",
        "API_KEY_21ST": "YOUR_API_KEY_21ST_HERE"
      }
    }
  }
}

Code Runner

mcpServers (Claude Desktop / Cursor)
{
  "mcpServers": {
    "code-runner": {
      "command": "npx",
      "args": [
        "-y",
        "issue"
      ]
    }
  }
}

Frequently asked questions

Magic MCP is categorized under Architecture & Design and uses a local stdio subprocess. Code Runner belongs to Code Execution and uses a local stdio subprocess. Pick Magic MCP for architecture & design work and Code Runner for code execution.

Copy the mcpServers block from the config section on this page into your client's config (for example claude_desktop_config.json or ~/.cursor/mcp.json), then fully restart the client.

Magic MCP is listed as a paid service. Auth: api key required. Code Runner has no declared pricing — check the project's own site. If a server needs environment variables such as API keys, define them under the env key in your client's MCP config.

Yes. MCP clients support multiple servers: add 21st-dev-magic-mcp and code-runner as separate keys in the same mcpServers object, and your assistant will call tools from either one.

On AllMCPs, Magic MCP has a quality signal of 53/100 (Good) with 17 views, 1 installs and 6,242 GitHub stars. Code Runner has 43/100 (Fair) with 2 views, 0 installs and 242 GitHub stars.