> For the complete documentation index, see [llms.txt](https://docs.limio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.limio.com/product/mcp-server/setup.md). Agents can also search and read this documentation through its [MCP server](https://docs.limio.com/~gitbook/mcp).

# Setup

Connect your AI assistant to your Limio environment in a few steps. You'll sign in with your existing Limio credentials. There are no API keys or tokens to manage.

{% hint style="info" %}
The Limio MCP Server is available from Release 115. The role-based permissions that limit the MCP server are available from Release 118. For more information, see [Permissions and governance](https://docs.limio.com/product/mcp-server/mcp-server.md#permissions-and-governance).
{% endhint %}

## What you'll need

* **Claude Desktop, Claude Code or Codex** (other MCP-compatible clients should also work)
* Your MCP server URL: your Limio environment URL with `/mcp` appended, for example `https://your-tenant.your-domain.com/mcp`
* Your Limio login: the same credentials you use to sign in to Limio

## Connect via Claude Desktop

Claude Desktop supports remote MCP servers as [custom connectors](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp).

1. Open Claude Desktop and go to **Settings > Connectors**
2. Click **Add custom connector**
3. Enter your Limio MCP server URL (e.g., `https://your-tenant.your-domain.com/mcp`)
4. Click **Add**
5. Claude will open a browser window for you to sign in with your Limio credentials.
6. Once connected, enable the Limio connector in any conversation via the **+** button in the chat input, then **Connectors**.
7. Try asking: **"Show me my Limio offers"**

{% hint style="info" %}
**Team and Enterprise plans:** An admin must first add the connector in **Organization settings > Connectors**. Team members can then connect from their own **Settings > Connectors** page.
{% endhint %}

{% hint style="info" %}
**Multiple environments:** Add a separate connector for each environment (sandbox, pre-production, production). This keeps your environments isolated and lets you test workflows in sandbox before running them against production. You can name each connector to make it clear which environment it points to (e.g., "Limio Sandbox", "Limio Prod").
{% endhint %}

## Connect to Claude Code

Run the following command in your terminal:

```zsh
claude mcp add --transport http limio https://your-tenant.your-domain.com/mcp
```

Replace the example URL with your environment URL. Claude Code will prompt you to authenticate through your browser on first use. You can use your existing credentials to authenticate. See the [Claude Code MCP docs](https://code.claude.com/docs/en/mcp) for more on managing MCP servers.

If you want to add multiple MCP servers (for example, one for each environment, you can name each one differently to make it clear which environment they refer to).

```zsh
claude mcp add --transport http limio-dev https://your-tenant-dev.your-domain.com/mcp
claude mcp add --transport http limio-stg https://your-tenant-stg.your-domain.com/mcp
```

**Tip:** To make your Limio MCP server available across all projects, install it with the `--scope user` flag:

```zsh
claude mcp add --scope user --transport http limio https://your-tenant-dev.your-domain.com/mcp
```

By default, Claude Code uses local scope, so the server is only available in the current project. Applying the user scope means you don't have to reinstall the server for each of your projects.

Once you have Claude Code open, you can run `/mcp` to see your available MCP servers. Select the one you just added and select Authenticate. This should open up a browser with a login screen. Use your regular Limio App credentials to sign in. It should display a success message. You can then close this window and start to use the Limio MCP inside of Claude Code.

## Connect to Codex

Run the following command in your terminal:

```zsh
codex mcp add limio --url https://your-tenant.your-domain.com/mcp
```

Replace the example URL with your environment URL. You can then run:

```zsh
codex mcp limio login
```

to initiate the authentication flow.

## Connect to Microsoft 365 Copilot

{% hint style="info" %}
This connection is only available via Federated MCP connector and required one of the following Microsoft addons:

* Researcher agent
* Deep research mode in Copilot Chat
* Copilot in Excel

This is typically found in the **Microsoft 365 Copilot Business** plan.
{% endhint %}

{% hint style="info" %}
You will require some configuration details from Limio for the below setup so it is recommend to raise a ticket with Support requesting details for Microsoft 365 Copilot setup for the environment you're targeting.
{% endhint %}

### Register the OAuth connection

1. Navigate to [https://dev.teams.microsoft.com](https://dev.teams.microsoft.com/) -> **Tools** -> **OAuth Client Registration**
2. Click **+ Register client** and enter:

| Field                                 | Value                                                                   |
| ------------------------------------- | ----------------------------------------------------------------------- |
| Registration name                     | Limio MCP \<ENVIRONMENT>                                                |
| Base URL                              | https\://\<LIMIO\_APP\_URL>/mcp                                         |
| Restrict usage by organization        | My organization only                                                    |
| Restrict usage by Teams app           | *Select your relevant option*                                           |
| Client ID                             | Use **client\_id** provided in support request                          |
| Client Secret                         | Use **client\_secret** provided in support request                      |
| Authorization endpoint                | Use **authorization\_endpoint** provided in support request             |
| Token endpoint                        | Use **token\_endpint** provided in support request                      |
| Refresh endpoint                      | Use **refresh\_endpoint** provided in support request                   |
| Scope                                 | Copy and paste the value in **scopes** provided in the support request. |
| Enable Proof Key for Code Exchange    | Enabled                                                                 |
| Client password authentication method | HTTP Basic authentication                                               |

3. Click **Save**
4. Copy and note down the **OAuth client registration ID**

### Configure MCP in M365 admin console

1. Navigate to the **Connectors** ([Admin home page](https://admin.cloud.microsoft/?#/homepage) -> Copilot -> Connectors) section.
2. Click **+ Add Connection** and select **Created by your org** from the Categories sections in the lef&#x74;**.**
3. Click **Add** within the Create a new connector box.
4. Click **Add** within the Connect to MCP server box.

| Field               | Value                                             |
| ------------------- | ------------------------------------------------- |
| Display Name        | Limio MCP \<ENVIRONMENT>                          |
| MCP endpoint URL    | https\://\<LIMIO\_APP\_URL>/mcp                   |
| Authentication type | OAuth 2.0                                         |
| Reference ID        | Use **OAuth client registration ID** from earlier |

5. Click **Authorize**.
6. You will be present with login screen, use your Limio credentials to log in.
7. Tick the Notice box and fianlly click **Create.**

## Connect to Salesforce Agentforce

An Agentforce agent in Salesforce can use the Limio MCP Server. Salesforce signs in to the server with a Salesforce external credential. You can use one of these external credentials:

| External credential                                 | Limio user of each call                                                                                        | Use it when                                                                           |
| --------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| `i42as__Limio_External`, from Limio for Salesforce  | The Limio user who authenticated the **assisted sales auth** principal. All agent users share this Limio user. | Limio for Salesforce is installed and connected to Limio.                             |
| A new external credential with a per-user principal | The Limio user of each Salesforce user                                                                         | Each agent user must act with their own Limio role.                                   |
| A new external credential with a named principal    | The Limio user who authenticated the principal. All agent users share this Limio user.                         | Limio for Salesforce is not installed, and all agent users can act as one Limio user. |

{% hint style="warning" %}
With `i42as__Limio_External` or a named principal, every agent user acts as the shared Limio user. Limio checks each call against the role of this user. If the role has **Can Write** or **Can Delete**, the agent can change data. To limit what the agent can do, use a per-user principal. See [Permissions and governance](https://docs.limio.com/product/mcp-server/mcp-server.md#permissions-and-governance).
{% endhint %}

{% hint style="danger" %}
For a new external credential, use the authentication provider of the Limio Salesforce app. Do not use an OAuth client that the MCP server registers through dynamic client registration. These clients expire in less than one hour and get no refresh token. Then the actions of the agent stop.
{% endhint %}

### What you need for Agentforce

* A Salesforce org with Agentforce. We tested these steps on Salesforce Winter '27.
* An employee agent (agent type **Agentforce Employee Agent**). Salesforce supports external credentials for MCP servers only for employee agents.
* An authentication provider for the Limio Salesforce app. To create it, follow [Connect Limio and Salesforce](https://docs.limio.com/integrations/salesforce-data-integration/connect-limio-salesforce).
* MCP access turned on for each Limio user that Salesforce signs in as. See [Permissions and governance](https://docs.limio.com/product/mcp-server/mcp-server.md#permissions-and-governance).
* For `i42as__Limio_External`: Limio for Salesforce v13.00 or later, with the Limio named credentials set up and authenticated. See [Named Credentials](https://docs.limio.com/salesforce/setting-up/detailed-salesforce-setup/named-credentials-package).

### Create an external credential

If you use `i42as__Limio_External`, skip this section. In that case, the permission set that Salesforce creates for the server gives access to the principal of `i42as__Limio_External`. Registration assigns this permission set to you. Step 10 of the registration assigns it to the agent users.

1. In Setup, go to **Named Credentials**. Then open the **External Credentials** tab.
2. Click **New**.
3. Set **Authentication Protocol** to **OAuth 2.0**.
4. Set **Authentication Flow Type** to **Browser Flow**.
5. Set **Authentication Provider** to the authentication provider of the Limio Salesforce app.
6. Click **Save**.
7. In the **Principals** section, add a principal. Set **Identity Type** to one of these values:
   * **Per User Principal**: each agent user signs in with their own Limio login.
   * **Named Principal**: all agent users share one Limio login.
8. Give a permission set access to the principal. To do this, open the permission set. Then open **External Credential Principal Access** and add the principal.
9. Assign the permission set to each agent user. Also assign it to the administrator who registers the MCP server.
10. Before you register the MCP server, authenticate the principal. Registration needs the **Configured** status.
    * For a per-user principal, authenticate with your own user. Click your profile icon. Then click **Settings**. Open **External Credentials**. Click **Allow Access**. Then sign in with your Limio login.
    * For a named principal, open the external credential. In the **Principals** section, open the menu of the principal and click **Authenticate**. Then sign in with the shared Limio login.

With a per-user principal, each agent user signs in to Limio one time. Salesforce asks for the Limio login when the user first uses a Limio tool. A user can also click **Allow Access** in their own settings, as in step 10 of this section. With a named principal, agent users do not sign in to Limio.

### Register the MCP server in Salesforce

1. In Setup, in the Quick Find box, enter `Agentforce`.
2. Under **Agentforce Registry**, select **Registered MCP Servers**.
3. Click **New**. Then click **Register MCP Server**.
4. Enter the **MCP Server Name** and a **Description**.
5. Enter the **Server URL** of your MCP server, for example `https://your-tenant.your-domain.com/mcp`.
6. Set **Authentication Method** to **Use External Credential**.
7. In the list, select the external credential. Make sure that its **Status** is **Configured**.
   * For `i42as__Limio_External`, select **Limio**. The status is **Configured** when the Limio named credentials are authenticated.
   * For a new external credential, select the credential that you created in [Create an external credential](#create-an-external-credential). Step 10 of that section gives the **Configured** status.
8. Click **Create and Continue**. Salesforce creates a named credential and a permission set for the server.
9. On the **MCP Server Allowlist** page, click **Select All**. Then click **Allow and Continue**.
10. On the **Grant Access to Users** page, click **Manage User Assignments**. Assign the permission set of the server to each agent user.
11. Click **Next**.
12. On the policies page, click **Save**.

If you close the window before step 9, the server has no tools. To add them, open the server in **Registered MCP Servers**. Open the **Tools** tab and click **Manage Tools**. Click **Add Tool** for each tool. Then click **Save**.

For more information, see [Register a Third-Party MCP Server in Agentforce Registry](https://help.salesforce.com/s/articleView?id=ai.agent_mcp_connect_register.htm\&type=5) in Salesforce Help.

### Add the tools to an agent

When you allow the tools, Salesforce creates one agent action for each tool. To see the actions, enter `Agentforce` in the Quick Find box in Setup. Then select **Agentforce Assets**. Open the **Actions** tab. The list shows each action with the tool name and the server name, for example `limio_call_api - LimioProd`. Add the two actions to your agent in Agentforce Builder.

If you write the agent in Agent Script, each action must use the values in this table. If a value is different, the agent ignores the action and gives no error.

| Field       | Value                                                                                                                                                                                               |
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Action name | The API name of the agent action that Salesforce created for the tool                                                                                                                               |
| `source`    | The same API name, with the namespace prefix of the action if it has one                                                                                                                            |
| `target`    | `mcpTool://<named credential of the server>/mcptoolx5fx5f<tool name>`. Write each `_` in the tool name as `x5f`. For example, `mcptoolx5fx5flimiox5fcallx5fapi` is the target for `limio_call_api`. |
| `label`     | The tool name, for example `limio_call_api`                                                                                                                                                         |

## Other MCP clients

Any client that supports remote MCP servers can connect. Point it at your MCP server URL. The server handles authentication automatically through your browser.

## Troubleshooting

| Problem                                                                                              | Solution                                                                                                                                                                                                                                                                |
| ---------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| No hammer icon in Claude Desktop                                                                     | Check that the config file is valid JSON and restart Claude Desktop                                                                                                                                                                                                     |
| Login page doesn't appear                                                                            | Verify the MCP server URL with your Limio admin                                                                                                                                                                                                                         |
| "MCP access is not enabled for this user" after login                                                | MCP access is off for your Limio user. Ask your Limio administrator to turn it on                                                                                                                                                                                       |
| An API call fails with 403                                                                           | Your role does not allow this action. Ask your Limio administrator to change your role                                                                                                                                                                                  |
| An Agentforce action stops after about 15 seconds, or the Limio login page shows `Unknown client_id` | The external credential uses an OAuth client that the MCP server registered, and this client expired. Set the external credential to the authentication provider of the Limio Salesforce app. See [Connect to Salesforce Agentforce](#connect-to-salesforce-agentforce) |
| An Agentforce agent does not call a Limio tool and shows no error                                    | In Agent Script, the action name, `source`, `target` or `label` does not agree with the agent action that Salesforce created. See [Add the tools to an agent](#add-the-tools-to-an-agent)                                                                               |

If you're stuck, reach out to [Limio Support](https://docs.limio.com/support).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.limio.com/product/mcp-server/setup.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
