Skip to content
Cursor

pmd for Cursor

io.github.roeiba/pmd

MCP server for PMD static code analyzer - run code analysis and detect duplicates

client:Cursor transport:stdio runtime:npm

Install pmd in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

{
  "mcpServers": {
    "pmd": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@springsoftware/pmd-mcp"
      ]
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

pmd in other clients