MCP · Cursor

Deslint for Cursor

Cursor's Composer and Agent modes are prolific. Within a week they can quietly rewrite a third of your UI, and half of it will have slipped past your design tokens. Deslint is the verification layer Cursor invokes in-loop — a Model Context Protocol server, called pre-generation, deterministically, with zero network calls.

Install

The one-line installer writes the MCP config into ~/.cursor/mcp.json. Reload Cursor and the deslint server appears under Settings → MCP.

$ npx @deslint/mcp install

Prefer manual config? Paste this into ~/.cursor/mcp.json:

~/.cursor/mcp.json

{
  "mcpServers": {
    "deslint": {
      "command": "npx",
      "args": ["-y", "@deslint/mcp"]
    }
  }
}

How Cursor uses deslint

Example tool call

// Cursor → deslint MCP
tools/call deslint.analyze_and_fix
paths: ["src/PricingCard.tsx"]
// deslint → Cursor
4 findings, 3 auto-fixed

Privacy notes

Deslint never calls the network. The MCP server is a Node process Cursor spawns over stdio. It reads local files, runs ESLint with the deslint rule set, and returns JSON. It does not share code with deslint.com, Anthropic, OpenAI, or any third party — even if Cursor itself is configured to.

See all MCP toolsClaude Code setupOpenAI Codex setupWindsurf setup

Further reading: How to fix design drift in AI-generated code →