1、MCP:模型上下文协议—要安装nodejs

参考网站:https://www.modelscope.cn/mcp

https://github.com/modelcontextprotocol/servers

https://github.com/github/github-mcp-server

windows电脑下配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
"mcpServers": {
"github": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"@modelcontextprotocol/server-github"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "xxxxxxxxxx"
}
},
"puppeteer": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"@modelcontextprotocol/server-puppeteer"
]
},
"filesystem": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"@modelcontextprotocol/server-filesystem",
"D:\\",
"E:\\",
"F:\\"
]
},
"fetch": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"@tokenizin/mcp-npx-fetch"
]
}
}
}

image-20250508183940231


2、安装成功图

image-20250508184616068


3、可直接搜索下载,下载后修改配置文件

image-20250508184638120


4、选择智能体模式

image-20250508184807827