Sarmate.net Sarmate.net
Home Features Pricing Documentation Contact
Log in Sign up

Connect your AI to Sarmate — step-by-step guide

Allow an artificial intelligence to read, write, compile and correct your LaTeX files directly in your Sarmate drive. This guide details every step to connect your AI to your Sarmate workspace.

Available on all plans (free included), within your plan's compilation quota.

Operating principle

A so-called "agentic" artificial intelligence is a program installed on your computer, able to carry out tasks autonomously rather than merely responding. It is most often operated from a terminal — the command-input window — though some can be used from a browser or a dedicated application. MCP (Model Context Protocol) is a standard that tells artificial intelligences how to connect to an external service and interact with it. Your AI thus connects to Sarmate's MCP server, which authorises it to read, edit and compile the files in your drive, based on your natural-language instructions. Four notions summarise how it operates.

The AI runs on your computer

Installed on your machine, the AI opens, edits and compiles your files autonomously, from requests you formulate in natural language.

Your requests: in the terminal on your computer

The terminal is a window on your computer in which you type your requests: this is where you converse with the AI. (Some AIs also accept the browser.)

The result on your sarmate.net drive

When you ask the AI to perform an action from your computer, it carries it out on your sarmate.net drive. And if the file concerned is open in the sarmate.net editor, you see the changes live.

Under your control

Every change keeps a restorable backup for 30 days, file deletion is disabled, and you can revoke your AI's access to sarmate.net at any time, from the website.

On your computer in a terminal
> Fix the LaTeX errors in chapter 2 and recompile.
On the Sarmate site (browser)
chapter2.tex edited · PDF recompiled · visible in real time

In 3 main steps

The principle is always the same, whatever your AI:

1

Create a token

on sarmate.net

From sarmate.net, generate a personal key that lets your AI access your drive.

2

Install your AI

on your computer

Install the AI of your choice on your computer: Antigravity (free), Claude Code… (Le Chat, however, works in the browser, with no installation.)

3

Connect and use

on your computer, in a terminal

On your computer, paste the configuration (with your token) into a terminal prompt, then ask the AI, in natural language, to act on your sarmate.net files. (Le Chat, however, is configured in the browser.)

1

Create your MCP token

  1. Open the Sarmate file manager and click the MCP icon (top right).
  2. Click "New token", give it a name (e.g. "My Gemini").
  3. Copy the token (it starts with smt_). ⚠️ It is shown only once — keep it for step 3.
2

Paste this prompt into your AI

The shortest path: your AI configures itself. Paste your token below — it stays in your browser, it is not sent to Sarmate —, copy the prompt, and hand it to your AI. This works with any AI that has access to your computer: Antigravity, Claude Code, Claude Desktop, Cursor, Cline.

Connect to my Sarmate LaTeX drive over MCP, then check that it works. Remote MCP server, over HTTP: https://mcp.sarmate.net/mcp Name to give it: sarmate Authentication: header "Authorization: Bearer smt_VOTRE_TOKEN" Write this configuration wherever it belongs for the client you are. For example: "claude mcp add --transport http --header "Authorization: Bearer …" sarmate https://mcp.sarmate.net/mcp" for Claude Code; the file ~/.gemini/config/mcp_config.json with the serverUrl and headers keys for Antigravity. Restart if needed. Then call the list_files tool and tell me which files you see.
This prompt contains your token: only paste it into an AI you trust. In an AI installed on your computer, it goes into a local settings file. In a web interface, it travels to the AI vendor — for those, prefer the form in step 3. A token can be revoked at any time from the MCP window of the file manager.
3

Or pick your AI, step by step

Each card carries, at the bottom, the date on which we verified its procedure. With no date, it has not been re-checked recently — these tools change fast: Gemini CLI, which this page used to recommend first, was shut off on 18 June 2026.

To begin, you can for example try Antigravity, which offers a free agentic-AI tier. If you prefer to avoid the terminal, Le Chat is set up in the browser.

Antigravity free

Antigravity is Google's agentic tool: an editor and a command line that drive an AI over your files. A free individual tier exists, with weekly limits. It replaces Gemini CLI, whose access was cut off on 18 June 2026 for consumer tiers.

  1. Install Antigravity from antigravity.google — the editor or the command line, as you prefer.
  2. Open its MCP configuration: in the agent side panel, … → MCP Servers → Manage MCP Servers → View raw config. The file is ~/.gemini/config/mcp_config.json (or .agents/mcp_config.json inside a project).
  3. Add this entry, then save:
    { "mcpServers": { "sarmate": { "serverUrl": "https://mcp.sarmate.net/mcp", "headers": { "Authorization": "Bearer smt_VOTRE_TOKEN" } } } }
    Replace smt_VOTRE_TOKEN with the token you copied in step 1. Careful: the legacy keys url and httpUrl are no longer accepted — it really is serverUrl.
  4. Reopen the MCP Servers panel: sarmate should appear there with its tools.
  5. Formulate your request in natural language, for example:
    List my Sarmate files, open my main document and fix the compilation errors.
  6. Open your Sarmate editor in the browser: you see the files change live. ✅

Procedure verified on 21/10/2026 against Antigravity's official documentation and a real test.

Le Chat (Mistral) no terminal · browser

If you wish to avoid the terminal: Le Chat is configured entirely in the browser, in a few clicks. Available on all Le Chat plans.

  1. On chat.mistral.ai → left sidebar → Intelligence → Connectors → + Add Connector.
  2. Choose the Custom MCP Connector tab.
  3. Fill in:
    • Name : Sarmate
    • Server : https://mcp.sarmate.net/mcp
    • Authentication : API token — Header Authorization, type Bearer, value smt_VOTRE_TOKEN
    Replace smt_VOTRE_TOKEN with the token you copied in step 1.
  4. Create — active immediately, no restart.

Procedure verified on 29/09/2026 against a real test in its connectors page — it is the only browser client that accepts a header.

Claude Code most powerful · paid

The most accomplished agentic AI for code and LaTeX. It requires a Claude subscription (no free version) and is the reference in the field.

Like Gemini, everything is driven from the terminal on your computer; the effects appear in real time on the Sarmate site (browser).
The shortest path: the prompt in step 2. Claude Code writes the command below itself, then checks the connection. The manual procedure stays here if you prefer doing it yourself.
Prior step (once): open a terminal and install Node.js

These tools need Node.js (free software). Choose your system:

  1. Go to nodejs.org and download the LTS version. Run the .msi file and click "Next" all the way.
  2. Open the terminal: Windows key, type PowerShell, Enter.
  3. Check with: node --version
  1. Go to nodejs.org, download the LTS version (.pkg file) and install it.
  2. Open the terminal: Cmd + Space, type Terminal, Enter.
  3. Check with: node --version
  1. Open your terminal (often Ctrl + Alt + T).
  2. Install Node.js. On Debian/Ubuntu:
    sudo apt update && sudo apt install -y nodejs npm
  3. Check with: node --version
  1. Connect Sarmate (one command):
    claude mcp add --transport http sarmate https://mcp.sarmate.net/mcp --header "Authorization: Bearer smt_VOTRE_TOKEN"
    Replace smt_VOTRE_TOKEN with the token you copied in step 1.
  2. Check: claude mcp list → sarmate ✓ Connected
  3. Run claude and ask it to act on your Sarmate files.

Procedure verified on 21/10/2026 against a real test — the prompt in step 2 is enough, Claude Code writes its own configuration itself.

Claude Desktop

The Claude desktop app. No daily terminal, but a small technical setup at first (and Node.js installed).

Prior step (once): open a terminal and install Node.js

These tools need Node.js (free software). Choose your system:

  1. Go to nodejs.org and download the LTS version. Run the .msi file and click "Next" all the way.
  2. Open the terminal: Windows key, type PowerShell, Enter.
  3. Check with: node --version
  1. Go to nodejs.org, download the LTS version (.pkg file) and install it.
  2. Open the terminal: Cmd + Space, type Terminal, Enter.
  3. Check with: node --version
  1. Open your terminal (often Ctrl + Alt + T).
  2. Install Node.js. On Debian/Ubuntu:
    sudo apt update && sudo apt install -y nodejs npm
  3. Check with: node --version
  1. Open (or create) the configuration file:
    • macOS : ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows : %APPDATA%\Claude\claude_desktop_config.json
  2. Paste:
    { "mcpServers": { "sarmate": { "command": "npx", "args": ["-y", "mcp-remote", "https://mcp.sarmate.net/mcp", "--header", "Authorization: Bearer smt_VOTRE_TOKEN"] } } }
    Replace smt_VOTRE_TOKEN with the token you copied in step 1.
  3. Fully quit Claude (Cmd+Q on Mac) then relaunch.

Claude.ai no terminal · browser

The Claude website and app accept a "custom connector": nothing to install, everything happens in the settings.

  1. In Claude, open Settings → Connectors, then Add custom connector.
  2. Server address:
    https://mcp.sarmate.net/mcp
  3. Under Request headers, pick X-Api-Key from the dropdown and paste your token as the value:
    smt_VOTRE_TOKEN
    Do not pick Authorization: Claude.ai reserves that name for its own token and will never send yours. That is precisely why our server also accepts X-Api-Key.
  4. Save, then enable sarmate from the tools menu in a conversation. Ask it to list your files. ✅

Procedure verified on 21/10/2026 against our own MCP server, which accepts the X-Api-Key header as of that day.

ChatGPT (developer mode)

In the browser, no terminal, but file writing is often limited depending on your OpenAI plan.

  1. ChatGPT → Settings → Apps & Connectors → Advanced settings → enable Developer mode.
  2. Create a connector: URL https://mcp.sarmate.net/mcp, transport Streamable HTTP, header Authorization: Bearer smt_VOTRE_TOKEN.
    Replace smt_VOTRE_TOKEN with the token you copied in step 1.
ChatGPT Plus/Pro is often read-only; writing is reserved for Business/Enterprise/Edu plans.

Cursor

AI code editor. No terminal: one config file.

  1. Open (or create) ~/.cursor/mcp.json and paste:
    { "mcpServers": { "sarmate": { "url": "https://mcp.sarmate.net/mcp", "headers": { "Authorization": "Bearer smt_VOTRE_TOKEN" } } } }
    Replace smt_VOTRE_TOKEN with the token you copied in step 1.
  2. Check in Cursor → Settings → MCP (green dot).

Cline / Continue (VS Code)

Cline : Cline sidebar → MCP Servers → Configure MCP Servers, then paste:

{ "mcpServers": { "sarmate": { "url": "https://mcp.sarmate.net/mcp", "headers": { "Authorization": "Bearer smt_VOTRE_TOKEN" }, "disabled": false } } }

Continue : ~/.continue/config.yaml

mcpServers: - name: sarmate url: https://mcp.sarmate.net/mcp headers: Authorization: Bearer smt_VOTRE_TOKEN
Replace smt_VOTRE_TOKEN with the token you copied in step 1.

Other client

Any MCP-compatible client works with these 3 details:

  • URL : https://mcp.sarmate.net/mcp
  • Transport : Streamable HTTP / SSE
  • Header : Authorization: Bearer smt_VOTRE_TOKEN

For a stdio-only client (no HTTP), use the bridge:

npx -y mcp-remote https://mcp.sarmate.net/mcp --header "Authorization: Bearer smt_VOTRE_TOKEN"
Replace smt_VOTRE_TOKEN with the token you copied in step 1.
Need technical details (tools list, advanced FAQ)? Technical documentation →

Frequently asked questions

Is terminal proficiency required?
It is not necessary. You simply copy two or three commands provided, once; interactions with the AI then take place in natural language. If you prefer not to use the terminal, Le Chat is configured entirely in the browser.
What is Node.js and why install it?
It's free software that Antigravity, Claude Code and Claude Desktop use to run. You install it once, in a few clicks (see "Prerequisite" in each relevant section). Le Chat and ChatGPT don't need it.
Which plan do I need? Is free enough?
MCP is open to all plans, free included, bounded by your plan's compilation quota. On the AI side: Antigravity has a free tier; Claude Code requires a Claude subscription.
It doesn't connect, the tool doesn't appear.
Check: (1) did you restart the tool after config? (2) is the token copied in full, prefixed with Bearer ? (3) for Gemini/Claude, does node --version respond (Node.js installed)?
Can I connect Claude.ai (the website / app)?
Yes, since 21/10/2026. Claude.ai accepts a custom connector: the address https://mcp.sarmate.net/mcp and your token in the X-Api-Key header (not Authorization, which Claude.ai reserves for its own token). See the Claude.ai card in step 3.

Ready to connect your AI?

Create your token, then follow Antigravity (free) in step 2.