# Remote MCP server (/developers/mcp)

> Connect Claude, ChatGPT, Cursor and other AI tools to your Luso8 workspace with the Model Context Protocol.

> **Preview:** this feature is in preview. The contract is stable enough to build against, but details may change before general availability.

The Luso8 MCP server lets AI assistants read and act on your workspace: look up contacts and deals, summarize conversations, draft campaign steps, create tickets, book meetings and run workflows. It speaks the [Model Context Protocol](https://modelcontextprotocol.io), so any MCP-compatible client can connect.

| | |
| --- | --- |
| **Endpoint** | `https://mcp.luso8.rexplore.ai/mcp` |
| **Transport** | Streamable HTTP |
| **Authentication** | OAuth 2.1 with Rexplore ID (recommended), or a workspace API key as a bearer token |
| **Scopes** | `luso8:read` (read-only) and `luso8:write` (read and write) |

## Authentication [#authentication]

### OAuth with Rexplore ID [#oauth-with-rexplore-id]

Most clients only need the URL. On first use they discover the authorization server, register themselves with **dynamic client registration**, and open a browser window where you sign in with your [Rexplore ID](/rexplore-id) and approve access. The flow uses the authorization code grant with PKCE; tokens are refreshed automatically.

- **Authorization server**: `https://auth.rexplore.ai`
- **Scopes requested**: `luso8:read` to look things up, `luso8:write` to let the assistant make changes

The assistant acts as you, in your active workspace, with your role's permissions.

### API key [#api-key]

For clients that let you set request headers, or for automations without a person to sign in, send a [workspace API key](/developers/api-keys) as a bearer token:

```http
Authorization: Bearer luso8_sk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```

The key's scopes still apply. A key with only `contacts:read` cannot create tickets through MCP.

## Connect a client [#connect-a-client]

<Tabs items={["Claude","Claude Code","ChatGPT","Cursor","VS Code","Other clients"]}>
<Tab value="Claude">
Works in Claude on the web and in Claude Desktop.

1. Open **Settings → Connectors** and choose **Add custom connector**.
2. Name it `Luso8` and paste the URL `https://mcp.luso8.rexplore.ai/mcp`.
3. Click **Connect**, sign in with your Rexplore ID and approve access.
4. In a chat, enable the Luso8 connector from the tools menu and ask, for example, "Which deals moved to Negotiation this week?"

On Team and Enterprise plans an owner may need to add the connector for the organization first.
</Tab>

<Tab value="Claude Code">
```bash
claude mcp add --transport http luso8 https://mcp.luso8.rexplore.ai/mcp
```

Then run `/mcp` inside Claude Code and choose **Authenticate** to sign in with your Rexplore ID.

To use an API key instead:

```bash
claude mcp add --transport http luso8 https://mcp.luso8.rexplore.ai/mcp \
  --header "Authorization: Bearer $LUSO8_API_KEY"
```
</Tab>

<Tab value="ChatGPT">
ChatGPT connects to remote MCP servers as custom connectors (apps). The exact menu names change between plans and releases; in general:

1. Open ChatGPT **Settings** and find **Connectors** (or **Apps**). Turn on developer mode if your plan requires it for custom connectors.
2. Create a new connector, name it `Luso8`, and enter the MCP server URL `https://mcp.luso8.rexplore.ai/mcp`.
3. Choose OAuth as the authentication method, then sign in with your Rexplore ID when prompted.
4. Enable the connector in a conversation and ask about your workspace.
</Tab>

<Tab value="Cursor">
Add the server to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (one project):

```json title="~/.cursor/mcp.json"
{
  "mcpServers": {
    "luso8": {
      "url": "https://mcp.luso8.rexplore.ai/mcp"
    }
  }
}
```

Cursor opens a browser to sign in with your Rexplore ID. To use an API key instead:

```json title="~/.cursor/mcp.json"
{
  "mcpServers": {
    "luso8": {
      "url": "https://mcp.luso8.rexplore.ai/mcp",
      "headers": {
        "Authorization": "Bearer luso8_sk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}
```
</Tab>

<Tab value="VS Code">
Add the server to `.vscode/mcp.json` in your workspace, or run **MCP: Add Server** from the command palette and choose **HTTP**:

```json title=".vscode/mcp.json"
{
  "servers": {
    "luso8": {
      "type": "http",
      "url": "https://mcp.luso8.rexplore.ai/mcp"
    }
  }
}
```

VS Code prompts you to sign in with your Rexplore ID the first time a tool runs.
</Tab>

<Tab value="Other clients">
Any client that supports Streamable HTTP MCP servers can connect. Point it at the URL and let it run the OAuth flow:

```json
{
  "luso8": {
    "type": "http",
    "url": "https://mcp.luso8.rexplore.ai/mcp"
  }
}
```

If the client cannot do OAuth, configure an `Authorization: Bearer <API key>` header. Clients that only support stdio servers can use a bridge such as `mcp-remote`:

```bash
npx -y mcp-remote https://mcp.luso8.rexplore.ai/mcp
```
</Tab>
</Tabs>

## Available tools [#available-tools]

Tools are grouped by area. Read tools need `luso8:read` (or the matching `:read` API key scope); tools that change data need `luso8:write`.

| Area | What the assistant can do |
| --- | --- |
| Contacts and companies | Search, get, create and update contacts and companies; search across your CRM with filters |
| Lists | Read lists and their members, create and update lists, add or remove contacts |
| Deals | Search deals, leads and prospects, get and update deals, create leads, summarize the pipeline, look up products |
| Campaigns | Read campaigns and analytics, create or generate a campaign, add and edit steps and conditions, enroll contacts, launch, pause or resume, send a campaign email to one contact |
| Inbox | List conversations and messages, see inbox stats, send a message, escalate a conversation to a human |
| Calls | Read call logs and call performance, list and schedule calls |
| Appointments | Search appointments, book meetings, update an appointment's status |
| Tickets | Search, get, create, update and close tickets, add comments |
| Payments | Create a payment link, check a payment's status, list supported payment channels |
| Workflows | List and run workflows, create a workflow from an example or generate one from a description |
| Knowledge and help | Search your knowledge base and help center articles |
| Reports and team | Dashboard stats, report overview, recent activity, team members and AI agents |

### Confirmation before changes [#confirmation-before-changes]

Every tool that creates, changes, sends, schedules or charges something supports a `confirm` parameter. Called without confirmation, the tool returns a preview of exactly what it will do, and the assistant shows it to you. Nothing happens until you approve and the assistant calls the tool again with `confirm: true`. Most clients also ask you before running any tool.

## Example prompts [#example-prompts]

- "Find contacts at fintech companies in Kenya that we haven't emailed, and add them to a new list called Q1 Nairobi."
- "Summarize the last five conversations in the inbox that are still open, and draft replies."
- "Create a ticket for Acme Ltd about the failed payment and assign it high priority."
- "Book a 30-minute call with Ada Lovelace next Tuesday afternoon."
- "How did the Onboarding nurture campaign perform last month?"

## Security [#security]

- **Least privilege.** Grant `luso8:read` unless you want the assistant to make changes. With API keys, choose narrow scopes.
- **Review before approving.** Read the preview for write actions, especially messages to customers and payment links.
- **Revoke access** at any time: disconnect the connector in your client, sign out the session in your [Rexplore ID account](/rexplore-id/account), or revoke the API key in **Settings → Developers → API keys**.
- **Data stays in your workspace.** The MCP server only reads and writes the workspace you are signed in to. What your AI client does with the results is governed by that client's own terms and data settings.

## Troubleshooting [#troubleshooting]

<Accordions>
<Accordion title="The client says it cannot find an authorization server">
Make sure the URL ends with `/mcp` and the client supports remote (Streamable HTTP) servers with OAuth. Older clients may need an API key header or the `mcp-remote` bridge.
</Accordion>

<Accordion title="Tools return 403 Missing scope">
The connection was approved with `luso8:read` only, or the API key lacks the scope for that area. Reconnect and approve write access, or create a key with the needed scope.
</Accordion>

<Accordion title="The assistant sees the wrong workspace">
OAuth connections use your active workspace. Switch workspaces in Luso8, then reconnect. API keys always use the workspace that created them.
</Accordion>
</Accordions>