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"}"
]
}
}
}

浙公网安备 33010602011771号