1.下載并安裝node
安裝后,在cmd命令框中,輸入命令node -v可以打印版本號,證明安裝完成
2.下載MCP服務器項目
在MCP服務器找到對應項目,這里以server-sequential-thinking為例子
在本地cmd命令窗口,使用下面命令下載MCP服務器
npm install -g @modelcontextprotocol/server-sequential-thinking
3.找到MCP服務器的下載位置
Windows: 通常是C:\Users\<YourUsername>\AppData\Roaming\npm\node_modules
可以看到MCP服務器已經下載結束
4.cursor配置MCP服務器
使用command模式,按下面的格式配置,會看到該MCP服務器被成功引用,并且顯示綠點
//這里與網上說的npx命令不同,windows需要前面三步先下載,然后再引用本地預先下載的MCP服務器,不然沒辦法用,一直報client closed,無法下載
{
? "mcpServers": {
? ? ? "sequential-thinking": {
? ? ? ? ? "command": "node",
? ? ? ? ? "args": [
? ? ? ? ? ? ? "C:\\Users\\xxx(本地電腦用戶名)\\AppData\\Roaming\\npm\\node_modules\\@modelcontextprotocol\\server-sequential-thinking\\dist\\index.js"
? ? ? ? ? ]
? ? ? }
? }
}