自用MCP服务器
本地搭建mcp服务器:
安装node+npm
安装这些本地服务
npm install -g @kazuph/mcp-fetch
npm install -g @modelcontextprotocol/server-sequential-thinking
npm install -g @modelcontextprotocol/server-filesystem
npm install -g @wopal/mcp-server-hotnews
npm install -g @executeautomation/playwright-mcp-server
下面是放到cursor中的
{
"mcpServers": {
"fetch": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"@kazuph/mcp-fetch",
"--config",
"{}"
]
},
"thinking": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"@modelcontextprotocol/server-sequential-thinking",
"--config",
"{}"
]
},
"files": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"@modelcontextprotocol/server-filesystem",
"C:/Users/admin/Downloads"
]
},
"hotnews": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"@wopal/mcp-server-hotnews"
]
},
"playwright": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"@executeautomation/playwright-mcp-server"
]
}
}
}
发表评论