MCP Server Installer for Cursor IDE
Install and configure MCP server instances in Cursor IDE easily, supporting npm packages, local directories, and Git repositories.
npx -y @matthewdcage/cursor-mcp-installerOverview
The MCP Server Installer for Cursor IDE is a small Model Context Protocol (MCP) helper that automates adding and configuring MCP server instances inside Cursor. It simplifies installing servers published as npm packages, from local directories, or directly from Git repositories and then registering them in Cursor’s MCP configuration so immediate use with language models (like Claude) is possible.
This tool is intended for developers who run or test MCP-compatible servers and want a consistent way to add them to Cursor without hand-editing JSON or dealing with path quirks. It discovers OpenAPI schemas where available, normalizes installation paths, and provides helper actions to add server definitions to your ~/.cursor/mcp.json.
Repository: https://github.com/matthewdcage/cursor-mcp-installer
Features
- Install MCP servers from:
- npm packages
- local directories on disk
- Git repositories (GitHub, Git URLs)
- Detect and prefer OpenAPI/Schema files when available
- Add configured MCP server entries to Cursor’s
mcp.json - Commands exposed as MCP tools for programmatic use inside Cursor
- Works via global npm install, npx, or from a local clone
Installation / Configuration
Prerequisites:
- Node.js (for installing/running npm packages)
- Cursor IDE (https://cursor.sh)
Cursor expects MCP servers to be defined in a JSON file at:
- macOS/Linux:
~/.cursor/mcp.json - Windows:
%USERPROFILE%\.cursor\mcp.json
Choose one installation method:
Using npx (no global install)
Global npm install
Then add to ~/.cursor/mcp.json:
Run from a local clone
Add to Cursor using the local node entrypoint:
After updating mcp.json restart Cursor to pick up changes.
Quick comparison
| Method | Pros | Cons |
|---|---|---|
| npx | No global install; easy to try | Requires network on each run |
| npm global | Fast local execution | Requires install step and updates |
| Local clone | Editable source; offline | More setup, requires build step |
Available Tools / Resources
The installer exposes the following MCP actions (available inside Cursor when the installer is configured):
- install_repo_mcp_server
- Install from npm package or Git repository; resolves package entry points and OpenAPI schemas.
- install_local_mcp_server
- Install a server from a local directory; handles path normalization and schema discovery.
- add_to_cursor_config
- Add or update an MCP server entry inside
~/.cursor/mcp.json.
- Add or update an MCP server entry inside
Resources:
- GitHub: https://github.com/matthewdcage/cursor-mcp-installer
- npx / npm package: cursor-mcp-installer-free
Use Cases
Install an npm-hosted MCP server
- Example: use the installer to fetch
@example/mcp-serverand register it with Cursor so your model can query it for tool calls.
- Example: use the installer to fetch
Add a local development server
- Use
install_local_mcp_serverto point to~/dev/my-mcp-server; the installer will detect OpenAPI files and write a Cursor MCP entry pointing to the local start script.
- Use
Install from a Git repository
- Provide a Git URL (e.g.,
https://github.com/org/repo.git#branch) to install a specific branch or tag; useful for testing feature branches.
- Provide a Git URL (e.g.,
Rapidly try OpenAPI-backed tools
- When you have an OpenAPI schema (e.g.,
my-schema.yaml), ask the installer to create an MCP server configured for schema-driven exploration inside Cursor.
- When you have an OpenAPI schema (e.g.,
Example prompt to a model in Cursor:
Install the web search MCP server from npm
or
Install the MCP server for OpenAPI schema located at ~/projects/schema/my-schema.yaml
Tips & Troubleshooting
- If Cursor does not show the installer in the sidebar, ensure
~/.cursor/mcp.jsonis valid JSON and Cursor was restarted. - For local paths, prefer absolute paths to avoid resolution issues.
- If an installation fails to detect OpenAPI, verify that schema files are named
.yaml,.yml, or.jsonand placed at the repository root or in standard locations. - Check logs/output from the installer process (Console/Terminal where Cursor was launched) for errors about permissions or missing Node.js runtime.
This installer aims to speed up bringing MCP servers into Cursor for development, testing, and iterative discovery workflows.