
Cursor MCP 服务推荐
根据缺少的能力选择 Cursor MCP 服务:文件访问、仓库历史、网页读取或持久上下文。本清单比较目录已收录的四个参考服务。下方安装标签复用各条目附来源的配置片段,默认选中 Cursor。
先确定任务,再选择服务
Filesystem 访问指定目录,Git 提供结构化仓库操作,Fetch 读取网页内容,Memory 在会话间保存知识图谱。这些选择按任务划分,不表示某一个服务适用于所有 Cursor 项目。
Cursor MCP 配置放在哪里?
单个项目使用 .cursor/mcp.json,个人全局配置使用 ~/.cursor/mcp.json。把所选服务合并到已有 mcpServers 对象中,保留其他连接。本地 stdio 服务需要片段指定的运行环境:Node.js 与 npx,或 Python 与 uvx。
第一次调用前检查权限
把 /path/to/allowed/dir 或 /path/to/repo 替换为明确的测试目录。Filesystem 和 Git 包含可写工具,默认并非只读。保留工具审批,把外部文本视为不可信输入,避免在 Memory 中保存秘密。AgentSkillsDir 未在你的 Cursor 环境中对这些服务做集成实测。
继续查看配置与其他 MCP 工作流程
使用片段前,打开目录条目检查固定版本及来源条款。
- MCP directory: 按任务及已有文档支持浏览其他 MCP 服务。
- Claude Code MCP guide: 比较同一协议在不同宿主中的使用方式;配置文件不同。
按工作流程比较 Cursor MCP 服务
| 服务 | 适合任务 | 先检查 |
|---|---|---|
| Filesystem | 明确的文件与目录访问 | 需要 Node.js;限制目录并检查写入工具 |
| Git | 仓库历史与结构化 Git 操作 | 需要 Python / uvx;选择测试仓库 |
| Fetch | 读取网页用于资料查找 | 需要 Python / uvx;检查外发请求与网页内容 |
| Memory | 持久化知识图谱上下文 | 需要 Node.js;明确允许保存的内容 |
关联来源的候选
Fetch
通过 MCP 获取网页内容,并将 HTML 转换为 Markdown。
Claude Code
claude mcp add fetch -- uvx mcp-server-fetchCodex
[mcp_servers.fetch]
command = "uvx"
args = ["mcp-server-fetch"]Cursor
{
"mcpServers": {
"fetch": {
"command": "uvx",
"args": [
"mcp-server-fetch"
]
}
}
}Claude Desktop
{
"mcpServers": {
"fetch": {
"command": "uvx",
"args": [
"mcp-server-fetch"
]
}
}
}Git
git clone 'https://github.com/modelcontextprotocol/servers.git'
cd servers && git checkout bbb701e7ac1e57f3edd1c2836b94c5457eaf7b9c任意智能体
Read the source at https://github.com/modelcontextprotocol/servers/blob/bbb701e7ac1e57f3edd1c2836b94c5457eaf7b9c/src/fetch/README.md (pinned revision bbb701e7ac1e). Explain what it does and which tools, credentials and network access it needs. Do not install or run anything until I confirm.全部客户端说明(无需 JavaScript)
Claude Code
在终端运行
claude mcp add fetch -- uvx mcp-server-fetchCodex
~/.codex/config.toml
[mcp_servers.fetch]
command = "uvx"
args = ["mcp-server-fetch"]Cursor
项目内 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"fetch": {
"command": "uvx",
"args": [
"mcp-server-fetch"
]
}
}
}Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"fetch": {
"command": "uvx",
"args": [
"mcp-server-fetch"
]
}
}
}Git
检出固定版本
git clone 'https://github.com/modelcontextprotocol/servers.git'
cd servers && git checkout bbb701e7ac1e57f3edd1c2836b94c5457eaf7b9c任意智能体
粘贴到智能体对话中
Read the source at https://github.com/modelcontextprotocol/servers/blob/bbb701e7ac1e57f3edd1c2836b94c5457eaf7b9c/src/fetch/README.md (pinned revision bbb701e7ac1e). Explain what it does and which tools, credentials and network access it needs. Do not install or run anything until I confirm.收录 ≠ 审计。代码片段依据固定版本的来源文档;运行前请检查来源和脚本。本页面不会安装任何内容。
Filesystem
通过使用 Node.js 构建的 MCP 服务提供文件系统操作。
Claude Code
claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/dirCodex
[mcp_servers.filesystem]
command = "npx"
args = ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/dir"]Cursor
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/allowed/dir"
]
}
}
}Claude Desktop
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/allowed/dir"
]
}
}
}Git
git clone 'https://github.com/modelcontextprotocol/servers.git'
cd servers && git checkout bbb701e7ac1e57f3edd1c2836b94c5457eaf7b9c任意智能体
Read the source at https://github.com/modelcontextprotocol/servers/blob/bbb701e7ac1e57f3edd1c2836b94c5457eaf7b9c/src/filesystem/README.md (pinned revision bbb701e7ac1e). Explain what it does and which tools, credentials and network access it needs. Do not install or run anything until I confirm.全部客户端说明(无需 JavaScript)
Claude Code
在终端运行
claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/dirCodex
~/.codex/config.toml
[mcp_servers.filesystem]
command = "npx"
args = ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/dir"]Cursor
项目内 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/allowed/dir"
]
}
}
}Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/allowed/dir"
]
}
}
}Git
检出固定版本
git clone 'https://github.com/modelcontextprotocol/servers.git'
cd servers && git checkout bbb701e7ac1e57f3edd1c2836b94c5457eaf7b9c任意智能体
粘贴到智能体对话中
Read the source at https://github.com/modelcontextprotocol/servers/blob/bbb701e7ac1e57f3edd1c2836b94c5457eaf7b9c/src/filesystem/README.md (pinned revision bbb701e7ac1e). Explain what it does and which tools, credentials and network access it needs. Do not install or run anything until I confirm.收录 ≠ 审计。代码片段依据固定版本的来源文档;运行前请检查来源和脚本。本页面不会安装任何内容。
Git
提供通过 MCP 读取、搜索和修改 Git 仓库的工具。
Claude Code
claude mcp add git -- uvx mcp-server-git --repository /path/to/repoCodex
[mcp_servers.git]
command = "uvx"
args = ["mcp-server-git", "--repository", "/path/to/repo"]Cursor
{
"mcpServers": {
"git": {
"command": "uvx",
"args": [
"mcp-server-git",
"--repository",
"/path/to/repo"
]
}
}
}Claude Desktop
{
"mcpServers": {
"git": {
"command": "uvx",
"args": [
"mcp-server-git",
"--repository",
"/path/to/repo"
]
}
}
}Git
git clone 'https://github.com/modelcontextprotocol/servers.git'
cd servers && git checkout bbb701e7ac1e57f3edd1c2836b94c5457eaf7b9c任意智能体
Read the source at https://github.com/modelcontextprotocol/servers/blob/bbb701e7ac1e57f3edd1c2836b94c5457eaf7b9c/src/git/README.md (pinned revision bbb701e7ac1e). Explain what it does and which tools, credentials and network access it needs. Do not install or run anything until I confirm.全部客户端说明(无需 JavaScript)
Claude Code
在终端运行
claude mcp add git -- uvx mcp-server-git --repository /path/to/repoCodex
~/.codex/config.toml
[mcp_servers.git]
command = "uvx"
args = ["mcp-server-git", "--repository", "/path/to/repo"]Cursor
项目内 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"git": {
"command": "uvx",
"args": [
"mcp-server-git",
"--repository",
"/path/to/repo"
]
}
}
}Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"git": {
"command": "uvx",
"args": [
"mcp-server-git",
"--repository",
"/path/to/repo"
]
}
}
}Git
检出固定版本
git clone 'https://github.com/modelcontextprotocol/servers.git'
cd servers && git checkout bbb701e7ac1e57f3edd1c2836b94c5457eaf7b9c任意智能体
粘贴到智能体对话中
Read the source at https://github.com/modelcontextprotocol/servers/blob/bbb701e7ac1e57f3edd1c2836b94c5457eaf7b9c/src/git/README.md (pinned revision bbb701e7ac1e). Explain what it does and which tools, credentials and network access it needs. Do not install or run anything until I confirm.收录 ≠ 审计。代码片段依据固定版本的来源文档;运行前请检查来源和脚本。本页面不会安装任何内容。
Memory
使用本地知识图谱存储持久的对话背景。
Claude Code
claude mcp add memory -- npx -y @modelcontextprotocol/server-memoryCodex
[mcp_servers.memory]
command = "npx"
args = ["-y", "@modelcontextprotocol/server-memory"]Cursor
{
"mcpServers": {
"memory": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory"
]
}
}
}Claude Desktop
{
"mcpServers": {
"memory": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory"
]
}
}
}Git
git clone 'https://github.com/modelcontextprotocol/servers.git'
cd servers && git checkout bbb701e7ac1e57f3edd1c2836b94c5457eaf7b9c任意智能体
Read the source at https://github.com/modelcontextprotocol/servers/blob/bbb701e7ac1e57f3edd1c2836b94c5457eaf7b9c/src/memory/README.md (pinned revision bbb701e7ac1e). Explain what it does and which tools, credentials and network access it needs. Do not install or run anything until I confirm.全部客户端说明(无需 JavaScript)
Claude Code
在终端运行
claude mcp add memory -- npx -y @modelcontextprotocol/server-memoryCodex
~/.codex/config.toml
[mcp_servers.memory]
command = "npx"
args = ["-y", "@modelcontextprotocol/server-memory"]Cursor
项目内 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"memory": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory"
]
}
}
}Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"memory": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory"
]
}
}
}Git
检出固定版本
git clone 'https://github.com/modelcontextprotocol/servers.git'
cd servers && git checkout bbb701e7ac1e57f3edd1c2836b94c5457eaf7b9c任意智能体
粘贴到智能体对话中
Read the source at https://github.com/modelcontextprotocol/servers/blob/bbb701e7ac1e57f3edd1c2836b94c5457eaf7b9c/src/memory/README.md (pinned revision bbb701e7ac1e). Explain what it does and which tools, credentials and network access it needs. Do not install or run anything until I confirm.收录 ≠ 审计。代码片段依据固定版本的来源文档;运行前请检查来源和脚本。本页面不会安装任何内容。
常见问题
如何给 Cursor 添加 MCP 服务?
在服务安装标签中选择 Cursor,检查依赖,再把 JSON 合并到项目的 .cursor/mcp.json 或全局 ~/.cursor/mcp.json。替换示例路径,确认服务启动,允许写入前先做无害的读取测试。
Cursor 应先装哪个 MCP 服务?
先补足任务缺少的能力:Filesystem 对应明确的目录访问,Git 对应仓库操作,Fetch 对应网页,Memory 对应持久上下文。添加前先检查 Cursor 已有工具,避免权限重叠。
点击安装标签会安装服务吗?
不会。标签只展示已有配置片段及复制按钮,本页面不会执行或安装任何内容。自行运行命令前,请检查固定版本来源、运行环境及访问范围。
参考文档:https://cursor.com/docs/mcp
以上选择按任务划分,没有使用虚构评分、搜索量或兼容性测试结果。