Skip to content

Connect to Rule MCP ​

Rule MCP works with any AI client that supports remote MCP servers with sign-in (OAuth), such as Claude.

Connection details ​

SettingValue
Server URLhttps://mcp.rule.io/mcp
OAuth client id for Claude1
TransportStreamable HTTP

You also need a Rule login with access to at least one account.

Why a client id?

Rule's sign-in does not let AI clients register themselves, so each AI client has its own client id that you enter by hand. The id 1 is for Claude only.

Connect Claude ​

  1. In Claude, go to Settings → Connectors and add a custom connector.
  2. Enter a name, for example "Rule", and the server URL https://mcp.rule.io/mcp.
  3. Open Advanced settings and enter 1 as the OAuth client id.
  4. Save the connector and choose Connect.
  5. A Rule sign-in page opens. Sign in and approve access.
  6. In a new chat, make sure the Rule connector is enabled.

Check the connection

Ask: "Which Rule accounts do I have access to?" The assistant should list your accounts.

Connect another client ​

Other MCP clients need their own client id, because each client id works only with the AI client it was set up for. Contact Rule support to get one for your client, then:

  1. Add a remote server with the Streamable HTTP transport and the URL https://mcp.rule.io/mcp.
  2. Enter the client id you received in the client's authentication settings.
  3. Start the sign-in and approve access in Rule.

Choose your default account ​

If you have access to several Rule accounts, tell the assistant which one to use:

"Use my Acme Store account from now on."

The assistant saves it as your default with set-default-account. You can still name another account in any single request. See Accounts.

Troubleshooting ​

ProblemWhat to check
"Authorization with the MCP server failed"The URL must be exactly https://mcp.rule.io/mcp, with no extra slash at the end, and the client id must be the one for your AI client (1 for Claude).
The sign-in page does not openMake sure your client supports OAuth for remote servers, and that pop-ups are allowed.
The assistant does not use RuleCheck that the connector is enabled in the chat.
The assistant works in the wrong accountAsk which account it is using, then set your default.