Skip to main content
Glama

Cursor MCP Installer

Cursor MCP 安装程序

**📢 现已在 NPM 上线!**只需使用npm install -g cursor-mcp-installer-free命令即可安装,或者直接使用npx cursor-mcp-installer-freeuvx cursor-mcp-installer-free

**🔄 最新更新 (v0.1.3):**改进了所有 MCP 服务器安装的路径处理,增强了 OpenAPI 模式检测能力,并提升了本地目录中服务器发现的稳定性。感谢@ItzAmirreza提交初始安装路径处理问题。详情请参阅CHANGELOG.md

快速入门指南

步骤 1:添加到游标配置

选择以下方法之一将 MCP 安装程序添加到您的 Cursor 配置中:

使用 npx(最简单 - 无需安装)

将其添加到您的~/.cursor/mcp.json文件中(如果不存在则创建):

{ "mcpServers": { "MCP Installer": { "command": "npx", "type": "stdio", "args": [ "cursor-mcp-installer-free@0.1.3", "index.mjs" ] } } }
使用 npm(全局安装)
npm install -g cursor-mcp-installer-free@0.1.3

然后添加到你的~/.cursor/mcp.json

{ "mcpServers": { "MCP Installer": { "command": "cursor-mcp-installer-free", "type": "stdio", "args": [ "index.mjs" ] } } }

第 2 步:重新启动 Cursor

关闭并重新打开 Cursor 以应用配置更改。

步骤3:使用Claude安装服务器

要求 Claude 为您安装任何 MCP 服务器:

Install the web search MCP server

或者

Install the MCP server for OpenAPI schema exploration with my-schema.yaml

步骤 4:安装后您将看到的内容

正确安装并重新启动 Cursor 后,使用 Claude 时您将在侧栏中看到 MCP 安装程序:

MCP 安装程序提供三个主要工具:

  • install_repo_mcp_server :从 npm 包或存储库安装 MCP 服务器
  • install_local_mcp_server :从本地目录安装 MCP 服务器
  • add_to_cursor_config :添加自定义 MCP 服务器配置

特征

  • 从 npm 包安装 MCP 服务器
  • 从本地目录安装 MCP 服务器
  • 为 Cursor 配置 MCP 服务器
  • 添加自定义 MCP 服务器配置

先决条件

在使用此工具之前,您需要安装:

安装

有几种方法可以安装和使用 Cursor MCP 安装程序:

1. 使用 npm(推荐)

npm install -g cursor-mcp-installer-free@0.1.3

安装后,将其添加到您的 Cursor MCP 配置文件中:

{ "mcpServers": { "MCP Installer": { "command": "cursor-mcp-installer-free", "type": "stdio", "args": [ "index.mjs" ] } } }

2.使用 npx(无需安装)

您可以使用 npx 运行该包,而无需全局安装它:

{ "mcpServers": { "MCP Installer": { "command": "npx", "type": "stdio", "args": [ "cursor-mcp-installer-free@0.1.3", "index.mjs" ] } } }

3. 直接从 GitHub 获取

克隆存储库并在本地构建:

# Clone the repository git clone https://github.com/matthewdcage/cursor-mcp-installer.git cd cursor-mcp-installer # Install dependencies and build npm install npm run build

然后配置 Cursor 以使用您的本地安装:

{ "mcpServers": { "MCP Installer": { "command": "node", "type": "stdio", "args": [ "/path/to/cursor-mcp-installer/lib/index.mjs" ] } } }

/path/to/cursor-mcp-installer替换为您克隆存储库的实际路径。

Cursor MCP 配置文件在哪里?

Cursor MCP 配置文件位于:

  • macOS/Linux~/.cursor/mcp.json
  • Windows%USERPROFILE%\.cursor\mcp.json

如果该文件不存在,您可以使用上述任何安装方法的内容来创建它。

v0.1.3 中的路径处理改进

版本 0.1.3 对 MCP 服务器安装的路径处理进行了重大改进:

增强路径解析

  • 正确规范相对路径和绝对路径
  • 处理带有空格和特殊字符的路径
  • 确保不同操作系统的路径格式一致

更好的模式检测

  • 现在扫描模式文件的所有参数,而不仅仅是第一个
  • 支持更多模式文件扩展名(.yaml、.yml、.json、.openapi)
  • 在传递到服务器之前正确地规范化模式文件路径

改进的服务器发现

  • 增加了对本地目录中常见服务器入口点的检测
  • 增强对基于 Python 的 MCP 服务器的支持
  • 更好地报告与路径相关的问题的错误

这些改进使 MCP 安装程序对于所有类型的服务器安装更加强大,特别是在处理自定义文件路径、OpenAPI 模式和本地目录安装时。

用法

安装完成后,您可以使用 Claude 或 Cursor 与 MCP 安装程序进行交互。以下是一些示例提示:

安装 npm 包作为 MCP 服务器

Install the MCP server named mcp-server-fetch

使用参数安装

Install the @modelcontextprotocol/server-filesystem package as an MCP server. Use ['/home/user/documents'] for the arguments

安装本地 MCP 服务器

Install the MCP server at /home/user/projects/my-mcp-server

使用环境变量安装

Related MCP Servers

  • A
    security
    A
    license
    A
    quality
    A template for creating custom tools for Cursor IDE using Model Context Protocol that allows users to deploy their own MCP server to Heroku and connect it to Cursor IDE.
    Last updated -
    2
    1
    Python
    MIT License
    • Linux
    • Apple
  • A
    security
    A
    license
    A
    quality
    A template for creating custom tools for Cursor IDE using Model Context Protocol (MCP), allowing developers to extend Cursor's functionality with their own server-based tools.
    Last updated -
    11
    2
    Python
    MIT License
    • Apple
    • Linux
  • -
    security
    F
    license
    -
    quality
    A server implementing the Model Context Protocol (MCP) for Cursor that allows using a PostgreSQL database as storage for model contexts, enabling secure database exploration and querying.
    Last updated -
    JavaScript
    • Linux
    • Apple
  • -
    security
    F
    license
    -
    quality
    An MCP server that provides detailed information about your development environment to the Cursor code editor, enabling more context-aware assistance.
    Last updated -
    1
    Python
    • Linux
    • Apple

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/matthewdcage/cursor-mcp-installer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server