首页>软件资讯>常见问题

常见问题

Cursor BrowserMCP入门

发布时间:2025-06-05 13:01:48人气:16

Cursor是一款目前非常热门的基于外部大语言模型的 AI 代码编辑器,最近支持了MCP功能。


Model Context Protocol (MCP) 是一个开放协议,它标准化了应用程序如何向大语言模型(LLM)提供上下文和工具。通过标准化接口将 AI Agent连接到各种数据源和工具,从而扩展其功能。


今天简单体验一下,通过Cursor操作Chrome浏览器。


安装



从github搜索https://github.com/BrowserMCP/mcp, 根据文档安装即可https://docs.browsermcp.io/welcome


安装Nodejs


# Download and install nvm:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash


# in lieu of restarting the shell

\. "$HOME/.nvm/nvm.sh"


# Download and install Node.js:

nvm install 22


# Verify the Node.js version:

node -v # Should print "v22.16.0".

nvm current # Should print "v22.16.0".


# Verify npm version:

npm -v # Should print "10.9.2".



如果无法下载,可以更新下NVM镜像源


# 设置NVM镜像源

export NVM_SOURCE="https://gitee.com/mirrors/nvm.git"


# 安装NVM

curl -o- https://gitee.com/mirrors/nvm/raw/v0.40.3/install.sh | bash


Cursor 配置MCP server

Cursor 配置MCP server.png

{  "mcpServers": {    "browsermcp": {      "command": "npx",      "args": ["@browsermcp/mcp@latest"]    }  }}


  

Chrome安装插件


Install the Browser MCP extension.


安装完成后,在Cursor发送对应的指令就可以了.


上一条:如何通过Docker复现PHP反序列化漏洞

下一条:Cursor日常配置指南