Skip to content

MCP Server

Regle offers an MCP server that can be used to get documentation and autocomplete in your favorite AI assistant editor.

The MCP server provides the following features:

  • Create form validation rules
  • Search documentation
  • Get precise information on any rule
  • Create custom rules
  • API information on every Regle helper

Cursor

Install MCP Server
Install MCP Server

Or add to your .cursor/mcp.json

json
{
  "mcpServers": {
    "regle": {
      "command": "npx",
      "args": ["@regle/mcp-server"]
    }
  }
}

Claude Code

For Claude Code, run the following command:

bash
claude mcp add regle --scope project '{"command":"npx","args":["-y","@regle/mcp-server"]}'

Released under the MIT License. Logo by Johannes Lacourly