Skip to content

MCP Server

MCP (Model Context Protocol) is an open standard that enables AI assistants to interact with external tools and data sources.

Regle offers an MCP server that can be used to get documentation and autocomplete in your favorite AI assistant editor. This allows your AI assistant to understand Regle's API and help you write validation rules more effectively.

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