原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Cursor MCP

作者:qmediat版本 1.2.0i★ –i在你的电脑上运行
注册名称io.github.qmediat/cursor-mcp

安装

概览

作者提供的说明(英文原文)

Cursor's agent (cursor-agent CLI) through MCP: any model your plan offers, resumable sessions.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: CURSOR_MAX_CONCURRENCY, CURSOR_ALLOW_YOLO, CURSOR_SANDBOX, CURSOR_KILL_GRACE_MS

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "cursor": {
      "command": "npx",
      "args": [
        "-y",
        "@qmediat.io/cursor-mcp"
      ],
      "env": {
        "CURSOR_MAX_CONCURRENCY": "your-value",
        "CURSOR_ALLOW_YOLO": "your-value",
        "CURSOR_SANDBOX": "your-value",
        "CURSOR_KILL_GRACE_MS": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add cursor --env CURSOR_MAX_CONCURRENCY=your-value --env CURSOR_ALLOW_YOLO=your-value --env CURSOR_SANDBOX=your-value --env CURSOR_KILL_GRACE_MS=your-value -- npx -y @qmediat.io/cursor-mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "cursor": {
      "command": "npx",
      "args": [
        "-y",
        "@qmediat.io/cursor-mcp"
      ],
      "env": {
        "CURSOR_MAX_CONCURRENCY": "your-value",
        "CURSOR_ALLOW_YOLO": "your-value",
        "CURSOR_SANDBOX": "your-value",
        "CURSOR_KILL_GRACE_MS": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "cursor": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@qmediat.io/cursor-mcp"
      ],
      "env": {
        "CURSOR_MAX_CONCURRENCY": "your-value",
        "CURSOR_ALLOW_YOLO": "your-value",
        "CURSOR_SANDBOX": "your-value",
        "CURSOR_KILL_GRACE_MS": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • CURSOR_MAX_CONCURRENCY env
    Maximum concurrent cursor-agent processes: a positive integer; anything else is the default 3.
  • CURSOR_ALLOW_YOLO env
    Set to `true` to run cursor-agent with --force (auto-approve every tool call) in cursor_agent and cursor_reply. DANGEROUS — trusted environments only. Never exposed as a tool parameter.
  • CURSOR_SANDBOX env
    `enabled` or `disabled`, passed to cursor-agent as --sandbox : confines what an auto-approved agent may run. Unset leaves the CLI's default; any other value ends the server at startup.
  • CURSOR_KILL_GRACE_MS env
    After SIGTERM (timeout or cancellation), a child still alive this long is sent SIGKILL. A positive integer of milliseconds; default 5000.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 qmediat 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32686 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32686 个服务器的 56% 更新
  • 基础检查结果等于或优于此分类中其他 32686 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Cursor MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.2.0)于32天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, Microsoft Exchange Online MCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

Exchange Online admin for MSPs: forwarding audits, EWS posture and offboarding, no PowerShell

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

@qmediat.io/cursor-mcp

MCP server for the Cursor CLI (cursor-agent): run Cursor's agent with any model id your plan offers — the Composer, Claude, GPT, Gemini and Grok families — through the Model Context Protocol.

Why this server?

  • Any Cursor model — the model id is passed to cursor-agent --model as given; cursor_models lists what your CLI offers (Composer, Claude, GPT, Gemini, Grok families on your plan)
  • 5 tools — agent execution, session continuation, model listing, session listing, health check
  • Parallel execution — run multiple models simultaneously with built-in concurrency control (semaphore)
  • Guarded execution — spawn without a shell, auto-approve only through the operator's environment (never a tool parameter), the client's cancellation and the timeout kill the child and its process group (SIGTERM, SIGKILL 5 s later; on Windows cursor-agent itself only)
  • Minimal dependencies — only @modelcontextprotocol/sdk + zod
  • Session management — resume conversations across calls

Quick Start

Prerequisites
  1. Node.js >= 22.0.0 (developing it — npm run lint's Babel 8 — needs 22.18 or 24.11)
  2. Cursor CLI installed and authenticated:
# Install the Cursor CLI (installs `agent`; `cursor-agent` stays as a legacy alias — the one this server resolves)

curl https://cursor.com/install -fsS | bash

Authenticate (a Cursor account whose plan includes agent usage — see cursor.com/docs/models-and-pricing)

agent login

Requires Node.js 22 or newer.

Install
claude mcp add --scope user cursor-cli -- npx -y @qmediat.io/cursor-mcp

or by hand (below). npm install -g @qmediat.io/cursor-mcp installs the cursor-mcp command, which can replace the npx line in any config.

Configuration

Claude Code (~/.claude.json)
{

"mcpServers": { "cursor-cli": { "type": "stdio", "command": "npx", "args": ["-y", "@qmediat.io/cursor-mcp"] } } }

Claude Desktop (claude_desktop_config.json)
{

"mcpServers": { "cursor-cli": { "command": "npx", "args": ["-y", "@qmediat.io/cursor-mcp"] } } }

Local development
{

"mcpServers": { "cursor-cli": { "type": "stdio", "command": "node", "args": ["/path/to/cursor-mcp/dist/index.js"] } } }

Environment Variables

VariableRequiredDefaultDescription
CURSOR_MAX_CONCURRENCYNo3Maximum concurrent cursor-agent processes — an integer from 1 to 64; anything else is the default
CURSOR_ALLOW_YOLONofalsetrue runs cursor_agent and cursor_reply with --force (auto-approve every tool call). Without it cursor-agent in headless mode only proposes file changes and applies none (Cursor's headless docs). DANGEROUS — only for trusted environments, best with CURSOR_SANDBOX=enabled
CURSOR_SANDBOXNothe CLI's defaultenabled or disabled, passed as --sandbox : the sandbox confines what an auto-approved agent may run; any other value ends the server at startup
CURSOR_KILL_GRACE_MSNo5000After SIGTERM (timeout or cancellation), a child still alive this long is sent SIGKILL — an integer of milliseconds from 1 to 2147483647 (what a timer can wait); anything else is the default

Available Tools

ToolDescriptionKey Parameters
cursor_agentExecute a prompt using Cursor's AI agentprompt (≤ 100 000 chars), model, mode, workspace, timeout_seconds (10–3600, default 600)
cursor_replyContinue an existing agent sessionprompt, session_id, model, timeout_seconds
cursor_modelsList the model ids the installed CLI offers—
cursor_sessionsList agent sessions (this server instance)—
cursor_healthCheck installation, auth, and config—

Both agent tools run cursor-agent with --output-format stream-json: the answer, its session_id, request_id, the model cursor-agent reported, the duration, the number of tool calls and the files changed (write/edit targets, each once) come back as text and as structuredContent (outputSchema published). A client that sends a progress token on the request gets one notifications/progress per event (model, tool call, assistant message), so a ten-minute run never looks dead.

Models

model is passed to cursor-agent --model as given, so every id the installed CLI accepts works — the current list and prices are on cursor.com/docs/models-and-pricing, and cursor_models returns what your CLI reports (cursor-agent models). auto (the default) lets Cursor choose. This README names no ids on purpose: Cursor adds and retires models faster than this package releases, and a list here was what made 1.0.x reject every current model.

Modes
ModeDescription
agentTools, terminal, search (default). In headless mode file changes are proposed in the answer, not applied, unless the operator set CURSOR_ALLOW_YOLO=true (--force)
planRead-only planning — analyses and proposes a plan, makes no edits (in headless mode a clarifying question cannot be answered)
askRead-only exploration — no file modifications

Parallel Execution

Run multiple models simultaneously by making parallel tool calls:

# In Claude Code, spawn 3 Agent subprocesses:

Agent 1: cursor_agent with model= → "Review this code" Agent 2: cursor_agent with model= → "Review this code" Agent 3: cursor_agent with model= → "Review this code"

The built-in semaphore (default: 3) queues excess requests to prevent rate limit errors.

Security

  • No shell execution — child_process.spawn with argument arrays; the prompt follows a -- separator and the session id must be one word, so neither can read as a cursor-agent option (a prompt or session id of -f cannot turn into --force)
  • No credentials stored — cursor-agent handles its own OAuth
  • No HTTP requests — pure CLI wrapper, no network access beyond cursor-agent
  • Process cleanup — the client's cancellation (the MCP request signal) and the timeout kill the child and the helpers in its process group (POSIX; on Windows there is no group and only cursor-agent itself is signalled): SIGTERM, then SIGKILL after CURSOR_KILL_GRACE_MS (5 s); the call and its concurrency slot are released only once the child itself has exited; the server's own shutdown ends every running group the same way, so no agent outlives it
  • Auto-approve gated — --force requires explicit CURSOR_ALLOW_YOLO=true env var, never controllable by LLMs; without it the agent only proposes changes; CURSOR_SANDBOX=enabled confines an auto-approved agent; it applies to cursor_agent and cursor_reply alike
  • Trusted workspace — every call runs cursor-agent --trust on the given workspace (the server's cwd by default), so the agent is not prompted about the directory: point workspace only at directories you intend it to operate in
  • Concurrency limited — semaphore prevents resource exhaustion

See SECURITY.md for full details.

Supervised Coding Skill

Optional Claude Code skill that lets Claude Code act as a supervisor while any Cursor model does the coding.

How it works: Claude Code analyzes the task, sends precise instructions to Cursor via cursor_agent, reviews the output by reading actual files from disk, and iterates with cursor_reply until satisfied (max 3 rounds).

Prerequisite: The cursor-cli MCP server (this package) must be installed and configured in Claude Code first.

Usage
/cursor-code <task>                              # default: auto (Cursor chooses)

/cursor-code --model # any id cursor_models lists

Run cursor_models to list the ids your CLI offers.

Install the skill
mkdir -p ~/.claude/skills/cursor-code

Create ~/.claude/skills/cursor-code/SKILL.md with the following content:

SKILL.md (click to expand)

---

name: cursor-code description: Delegate coding to any Cursor model while Claude Code supervises. Use when user says "cursor-code", "delegate to cursor", "cursor code this", or "/cursor-code". Works with any model id cursor_models lists (the Composer, Claude, GPT, Gemini and Grok families on your Cursor plan). metadata: version: 1.1.0


Supervised Coding: Claude Code (Supervisor) -> Cursor (Coder)

You are the supervisor (Claude Code). A Cursor model is the coder. You give precise instructions, the coder writes code, you review and iterate.

Parsing

Extract from user input:

  • --model -> model to use (default: auto, Cursor chooses)
  • Everything else -> the task description

If user says a model name naturally (e.g. "use composer", "with gemini", "z grok"), extract it and map to an id from cursor_models.

Workflow

Step 1: Analyze
  • Read the relevant files to understand current state
  • Break the user's task into a single, focused coding instruction
  • Identify: target files, constraints, acceptance criteria
Step 2: Instruct

Call cursor_agent with:

  • model: extracted model or auto
  • workspace: current working directory
  • prompt: precise instruction with file paths, function names, constraints
  • Keep prompt focused -- one task per call, not an entire feature
  • Extract and store the session_id from the response for use in Step 4

Output before calling: [cursor-cli -> ]

Step 3: Verify

After the coder returns:

  • Run git diff --name-only to discover ALL files the coder modified
  • Read EVERY modified file from disk (use Read tool) -- not just the ones from your prompt
  • Diff against expectations
  • Check: correctness, edge cases, security, type safety
Step 4: Iterate (max 3 rounds)

If issues found:

  • Call cursor_reply with the same session_id
  • Give specific fix instructions (file:line, what's wrong, what to do)
  • Re-verify after each round
  • If the coder is fundamentally off-track (wrong approach, not just small bugs), abandon the session early and start fresh with a more explicit prompt
Step 5: Report

Summarize to the user:

  • Model used (confirm from response, not just request)
  • What was done
  • Files changed
  • Rounds needed (1 = clean, 2-3 = corrections applied)
  • Any manual fixes Claude Code applied directly

Rules

  • ONE task per cursor_agent call -- don't batch entire features
  • ALWAYS read files from disk after coder finishes
  • NEVER trust cached file contents -- Cursor writes directly to disk
  • Set timeout_seconds appropriately (30-120s for typical tasks)
  • If the task is trivial (< 5 lines

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx