Skip to main content
CLAUDE · PRIORITY

How to connect Claude to Priority ERP

You connect Claude to Priority ERP in four steps: prepare an API user with an API license and a personal access token (PAT) in Priority, connect Priority in the MCP for Priority wizard, add a custom connector in Claude with the server address, and ask a first question. Each person signs in as themselves, and Claude answers from your Priority data.

BEFORE YOU START

What you need before you start.

  • Access to the System Management menu in Priority, or a Priority administrator to help you
  • A Claude account
  • An email address for the verification codes
  • If your Priority server is behind a firewall: Allowing LeonAI’s addresses in your firewall

How long it takes: About 30 min. Steps checked on .

THE STEPS

Step 1 · Prepare Priority.

A Priority user with an API licence

LeonAI works in Priority as one user. That user must have an API licence. 2 min

  1. Open System UsersSystem Management › System Maintenance › Users › Users
  2. Open the user's permissionsSelect the user you will connect and open the User's System Privileges tab.
  3. Make sure “API License” is checkedGo to License and make sure the API License box is checked.If the box is not checked, the user cannot be connected. Contact your Priority administrator before you continue.
The same steps with screens, in the help center: A Priority user with an API licence

The Priority API address

One address from Priority, and the three connection values inside it: the server address, the settings file and the company name. 2 min

  1. Sign in to PriorityIn a new tab, sign in to Priority's web interface with a user who has access to the System Management menu.
  2. Open System ManagementIn Priority's top menu, click System Management.
  3. Open “Send Link to Activate Software”System Maintenance › Users › Send Link to Activate Software
  4. Choose API and confirmCheck API and click OK.
  5. Check “Display link” and confirmCheck Display link and click OK.
  6. Copy the address in one pieceSelect the full address and copy it (Ctrl+C).The last two parts of the address are the settings file name and the company name — you will use them in a moment. The address breaks over two lines in the window: copy it as one piece, with no space.
The same steps with screens, in the help center: The Priority API address

Personal access token (PAT)

A token that lets LeonAI act in Priority as the user with the API licence. 3 min

  1. Open the REST tokensSystem Management › System Maintenance › Users › REST Interface Authentication Tokens
  2. Create a record and check “Create Token”Click + New, and in the new form check the Create Token box.
  3. Confirm the warningIn the message You must save the token before leaving the line, click OK.
  4. Copy the token nowRight-click the token in the Token Name field and choose Copy (or Ctrl+C). Keep it somewhere safe until you paste it into LeonAI.This is the only moment the full token is shown. Once you leave the line, it is hidden.
  5. Choose the user with the API licenceIn the User Name field, choose the user you checked. You can also add a description, for example LeonAI.
  6. Save and go back to the listMake sure the Active? box is checked and click Back to list.
The same steps with screens, in the help center: Personal access token (PAT)

Step 2 · Connect Priority in the wizard.

Connecting Priority in the LeonAI wizard

Paste the four values from Priority into the wizard, check the permissions, set the defaults and save the API key. 5 min

  1. Paste the server addressIn the LeonAI tab, in the Connect your Priority system window, paste the full address into the PRIORITY server address field.
  2. Enter the company nameIn the Company name in Priority field, enter the last part of the address — in the example: usdemo.
  3. Enter the settings fileIn the TABULA.INI file field, enter the part before the company name in the address — in the example: tabdemo1.ini.
  4. Paste the tokenPaste the token into the Personal access token (PAT) field.
  5. Connect and verifyClick Connect and verify.
  6. Check the access permissionsOn the Access permission check screen, make sure all the required forms are marked OK, and click Continue.
  7. Review the detected modulesOn the Detected modules screen, check that the modules you use are marked Ready, and click Next.
  8. Set defaults and finishOn the Quick settings screen choose a Main role (in the example: General). If relevant, pick default warehouses through Browse all, and choose a Default price list or leave None. Click Finish setup.
  9. Save the API keyOn the All set! screen click Copy next to API key and keep it somewhere safe. Copy the MCP server address too.https://priority-mcp.leonai.io/mcpThe key is shown only once and will not be shown again. You will need it, together with the email you signed up with, to connect Claude. If you lose it, you can renew it in the admin portal.
The same steps with screens, in the help center: Connecting Priority in the LeonAI wizard

Step 3 · Add the connector in Claude.

Adding the LeonAI connector to Claude

Add a custom connector in Claude with the MCP server address, and sign in with your email and API key. 4 min

  1. Choose Add custom connectorIn Claude, in the chat window, click +, point to Add connector and click Add custom connector.
  2. Name the connectorClick the Name field and type a name, for example MY PRIORITY MCP.
  3. Paste the MCP server addressClick the MCP server URL field and paste the address you saved on the “All set!” screen.https://priority-mcp.leonai.io/mcp
  4. Continue and add the connectorClick Continue. In the next window keep the detected options — Sign in now and Use Claude's published identity, both marked Detected — and click Add.
  5. Enter your emailOn the LeonAI authorization page, enter the email you signed up with in the Your Email field.The top of the page shows which app you are giving access to (Claude) and where you will return (claude.ai). If you do not recognize these details, close the page and do not enter the key.
  6. Paste the API key and authorizeClick the API Key field, paste the key you saved and click Authorize.
  7. Copy the sign-in code from the emailIn your inbox, open the email Your LeonAI Priority MCP verification code, then select and copy the 6-digit code.
  8. Verify the sign-in codeOn the authorization page, click the Verification Code field, paste the code and click Verify Code.
The same steps with screens, in the help center: Adding the LeonAI connector to Claude

Step 4 · The recommended settings, and a first question.

Recommended settings in Claude

Two privacy settings, network access with the LeonAI domain, and AI-powered artifacts. 2 min

  1. Turn off two switches in PrivacyIn Claude's settings (Settings) click Privacy, and turn off the Location metadata and Help improve our AI models switches.
  2. Turn on Allow network egressClick Capabilities and turn on the Allow network egress switch.
  3. Add priority-mcp.leonai.io to the allowed domainsBelow the switch, in Additional allowed domains, type priority-mcp.leonai.io and click Add.Without this domain, Claude cannot reach the LeonAI server from its code environment.
  4. Turn on AI-powered artifactsIn Capabilities turn on the AI-powered artifacts switch.
The same steps with screens, in the help center: Recommended settings in Claude

First question and tool permissions

Ask Claude about your Priority data, approve the tool, and decide in advance what it may do without asking. 3 min

  1. Ask a first questionStart a new chat and ask about your data, for example:How many orders were opened today, and who were the 10 most profitable customers last week?
  2. Approve the toolWhen a permission request for a LeonAI tool appears, choose Always allow or Allow once.
  3. Pre-approve the read toolsIn Settings › Connectors, on the LeonAI connector, click the selector next to Read-only tools and choose Always allow.
  4. Check the write tools' permissionOn the same screen, the Write/delete tools group is set to Needs approval. Some of its tools are marked with a lock.
The same steps with screens, in the help center: First question and tool permissions

Prefer to watch? The full journey in the help center, with the video.

IF IT FAILS

If something does not work.

What you seeWhy it happensWhat to do
On the access-permission check screen, a form is not marked OKThe token’s user has no permission for that formGive the user permission for the form in Priority. Go back to the wizard and click Check again.
I did not save the API keyThe key is shown only onceYou can renew it in the admin portal.
The sign-in code did not arriveThe email is on its way, or went to spamCheck your spam folder, or click Resend code when the countdown ends. The Use a different email link takes you back to enter a different email.

Every known problem, in the help center

FAQ

Common questions

What prevents an agent from writing something you didn't intend?

Writing is off by default. When you turn it on, in a conversation every operation is shown for approval first and only then sent, with a server-signed, single-use token that expires after 90 seconds. An automation that runs with no person in front of it, such as n8n, skips the approval step only with an API key that was given write access and explicit permission to skip it, and that is off by default.

What data does the server see?

Only what your organization's API user may see in Priority, and within that only what each user's own permissions allow: read, write and modules. Credentials are stored encrypted, identifying details are masked in logs, and every tool call is recorded in an audit log.

Does it work with on-premises Priority, or only the cloud?

Both. The server connects to Priority's REST API in the cloud or on a local server reachable over HTTPS, and nothing is installed inside Priority. You need an API user with an API license and a personal access token (PAT). An on-premises server behind a firewall allows the service's fixed egress addresses.

What does our Priority admin need to do?

A little, and it arrives ready: after you sign up, they get an email with a live setup page and a printable guide, with the forms, menu paths and firewall addresses. Each step they finish is checked and turns green on your screen: server, token, company and API license.

Does it also work in Claude Code, and for a whole organization?

Yes. In Claude Code you add the server with one command in a terminal: claude mcp add --transport http leonai-priority https://priority-mcp.leonai.io/mcp. On Claude Team or Enterprise only the Owner adds a connector, and then each member clicks Connect and signs in as themselves.

Smart moves — it’s in our nature

Want to connect it together?

Tell us where you stopped, and we will go through the connection with you.

MCP for PriorityChat with us on WhatsApp (opens in a new window)