Skip to content
LyraShield AIOpen beta

Updated

Cursor

Cursor reads MCP servers from .cursor/mcp.json in your project root. For a user-level global setup, place the file at ~/.cursor/mcp.json.

Configuration

Create or open .cursor/mcp.json in your project root and add the following entry.

{
  "mcpServers": {
    "lyrashield": {
      "command": "npx",
      "args": ["-y", "@lyrashield/mcp"],
      "env": {
        "LYRASHIELD_API_KEY": "lsk_your_key_here",
        "LYRASHIELD_API_URL": "https://app.lyrashieldai.com"
      }
    }
  }
}
Project vs. global: Place .cursor/mcp.json inside your project root to share config with the team (each developer sets their own LYRASHIELD_API_KEY via a .env file or their shell). Place it at ~/.cursor/mcp.json for a personal global setup.

Deeplink install

Cursor supports an cursor://mcp/install deeplink. You can open a deeplink directly to register the server without editing JSON manually — see the Cursor MCP documentation for the current deeplink format.

Verify the connection

Reload the window and open Settings → MCP. The lyrashield server should appear with a green status indicator. You can also ask Cursor's AI: "List the available LyraShield tools."

Requirements: Node.js 20+ and a LyraShield workspace API key. The@lyrashield/mcp package is published on npm, sonpx -y @lyrashield/mcp resolves directly.