Cursor配置Magic MCP(Windows)

官方api示意:

npx -y @smithery/cli@latest run @21st-dev/magic-mcp --config "{\"TWENTY_FIRST_API_KEY\":\"your-api-key\"}"

mcp.json配置如下

{
  "mcpServers": {
    "magic-mcp": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "@smithery/cli@latest",
        "run",
        "@21st-dev/magic-mcp",
        "--config",
        "{\"TWENTY_FIRST_API_KEY\":\"你的API\"}"
      ]
    }
  }
}
如果同时使用MCPserver服务,那么将Magic可以写成
{
  "mcpServers": {
    "sequential-thinking": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "@modelcontextprotocol/server-sequential-thinking"
      ]
    },
    "magic-mcp": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "@smithery/cli@latest",
        "run",
        "@21st-dev/magic-mcp",
        "--config",
        "{\"TWENTY_FIRST_API_KEY\":\"你的API"}"
      ]
    }
  }
}
posted @ 2025-03-19 21:28  404史蒂芬  阅读(619)  评论(0)    收藏  举报