# Connect your AI assistant

Your VPS Pro connects to your AI assistant through **MCP** (Model Context Protocol), the open protocol that Claude, ChatGPT and the leading assistants speak. Once connected, your assistant runs your servers with you: it reads them, adds your keys to them, restarts them and connects your domains to them, with your rights on the account.

|                        |                                            |
| ---------------------- | ------------------------------------------ |
| **Account MCP server** | `https://mcp.simafri.com/v1/mcp`           |
| **Transport**          | Streamable HTTP                            |
| **Connection**         | your Simafri identity, through a connector |

This is the MCP server of your Simafri account: the same one carries your [Serenity websites](https://docs.simafri.com/en/serenity/assistant-ia/) and your [Simafri Suite](https://docs.simafri.com/en/suite/assistant-ia/) addresses.

## What your assistant does with your servers

| Tool              | What the assistant does                                                                                                                                                                                            |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `vps_servers`     | lists your servers: offer, status (being prepared, running, suspended), system, processors, memory, disk, date of going into service, IPv4 and IPv6 addresses, SSH connection command, and what each server allows |
| `vps_ssh_keys`    | adds your **public** SSH keys to a server, installed within the minute                                                                                                                                             |
| `vps_power`       | restarts, stops or starts a server, within the minute                                                                                                                                                              |
| `vps_domains`     | adds a domain to serve, verifies it, or removes it                                                                                                                                                                 |
| `vps_https_proxy` | chooses how our front end passes HTTPS on to your server: as it is on port 443, or on port 8443 with the visitor's real address (PROXY protocol v2)                                                                |

### What you can ask it

* "List my servers with their status and their connection command."
* "Add my new public key to `k7m2qx`, keeping the ones already installed."
* "Restart the production server and tell me when it answers again."
* "Connect `app.my-company.com` to my VPS, and tell me which DNS records to publish."

## Connect with a connector

1. In your assistant, add a **custom connector** and give it the address `https://mcp.simafri.com/v1/mcp`.
2. The assistant opens the Simafri sign-in: sign in with your Simafri identity, and your two-factor authentication code if you have turned it on.
3. The authorisation page shows the application requesting access and what it will be able to do: confirm.
4. Your account's tools appear in your assistant.

With Claude Code:

```
claude mcp add --transport http --scope user simafri https://mcp.simafri.com/v1/mcp
```

## What your assistant reaches

Your assistant works **with your rights** on the account:

| Role on the account       | What the assistant can do                                                  |
| ------------------------- | -------------------------------------------------------------------------- |
| **Owner** and **Manager** | read the servers, and every action: keys, power, domains, passing on HTTPS |
| **Operator**              | read the servers, their addresses and their keys                           |

A **private** key is refused, just as in the client area: only the public key is added. Each key submission **replaces** the whole set of keys installed through the client area; ask your assistant to keep the ones that must stay.

## Serving your domains

For a domain to be served by your VPS, over HTTP as well as HTTPS:

1. ask your assistant to **add** the domain (`vps_domains`);
2. with your DNS host, publish an `A` record pointing to your server's IPv4 address and an `AAAA` record pointing to its IPv6 address: the `AAAA` record proves the domain is yours;
3. ask it to **verify** the domain: it switches to **Served**.

A server serves up to ten domains. A removed domain stops being served within the minute. The same action is available in your client area, server card, **Your domains** section.

## Before passing on visitors' real address

With PROXY protocol v2, HTTPS arrives on port **8443** of your server, together with the visitor's real address: your logs and your access rules see it. Prepare your web server **before** turning it on: each HTTPS `server` block in nginx then carries these lines, which your server's card shows with the exact address of our front end.

```
listen 8443 ssl proxy_protocol;

set_real_ip_from FRONT_END_ADDRESS;

real_ip_header proxy_protocol;
```

Turning it on takes effect within a minute. To go back to HTTPS as it is on port 443, ask for it to be turned off.

## See and remove access

In [my.simafri.com](https://my.simafri.com/), **My profile**, the **Authorised applications** section lists the assistants that have access to your account. **Remove access** cuts the connection immediately.

## A helping hand

Write to <support@simafri.com> and tell us which assistant you use: Full-Stack Assistance guides you through the connection.
