Appearance
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
| Setting | Value |
|---|---|
| Server URL | https://mcp.rule.io/mcp |
| OAuth client id for Claude | 1 |
| Transport | Streamable 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
- In Claude, go to Settings → Connectors and add a custom connector.
- Enter a name, for example "Rule", and the server URL
https://mcp.rule.io/mcp. - Open Advanced settings and enter
1as the OAuth client id. - Save the connector and choose Connect.
- A Rule sign-in page opens. Sign in and approve access.
- 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:
- Add a remote server with the Streamable HTTP transport and the URL
https://mcp.rule.io/mcp. - Enter the client id you received in the client's authentication settings.
- 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
| Problem | What 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 open | Make sure your client supports OAuth for remote servers, and that pop-ups are allowed. |
| The assistant does not use Rule | Check that the connector is enabled in the chat. |
| The assistant works in the wrong account | Ask which account it is using, then set your default. |