Cursor 配置 MCP Tool
文章目录
- 1、MCP Tool 的集合
 - 2、一个 demo :Sequential Thinking
 - 2.1、搜索一个 MCP Tool 获取 command 命令
 - 2.2、在 Cursor 配置
 - 2.3、配置状态检查与修正(解决网络问题)
 - 检查
 - 解决办法
 
- 2.4、使用
 
1、MCP Tool 的集合
https://smithery.ai/
2、一个 demo :Sequential Thinking
我们以 Sequential Thinking 这个 MCP Server 作为 demo 配置一下
2.1、搜索一个 MCP Tool 获取 command 命令

 https://smithery.ai/server/@smithery-ai/server-sequential-thinking
 
 得到:
npx -y @smithery/cli@latest install @smithery-ai/server-sequential-thinking --client cursor --key d17b0085-f937-4a71-b723-cc2671612b9a
 
2.2、在 Cursor 配置
Name 是自定义的
 Type 选择 command
 Command 直接填写上面得到的
npx -y @smithery/cli@latest install @smithery-ai/server-sequential-thinking --client cursor --key d17b0085-f937-4a71-b723-cc2671612b9a
 

2.3、配置状态检查与修正(解决网络问题)
检查
配置完毕后,如果前面的点是绿色的,表示正常,否则表示配置没有生效。
 
解决办法
把
npx -y @smithery/cli@latest install @smithery-ai/server-sequential-thinking --client cursor --key d17b0085-f937-4a71-b723-cc2671612b9a
 
中 @xxx 部分 替换为 github 开源项目中提供的原始命令
 
 比如下面 https://github.com/smithery-ai/reference-servers/tree/main/src/sequentialthinking
 你可以获取的命令就是
npx -y @modelcontextprotocol/server-sequential-thinking
 

npx -y @smithery/cli@latest install @smithery-ai/server-sequential-thinking --client cursor --key d17b0085-f937-4a71-b723-cc2671612b9a
 
=>
npx -y @modelcontextprotocol/server-sequential-thinking --client cursor --key d17b0085-f937-4a71-b723-cc2671612b9a
 
然后就正常了
 
2.4、使用
- 比如我再配置一个热点新闻
 
npx -y @wopal/mcp-server-hotnews --client cursor --key d17b0085-f937-4a71-b723-cc2671612b9a
 

- 然后使用
 - 可以发现,我的指令,直接调用了查询新闻的 MCP tool

 
