> Documentation index: https://rift.sh/llms.txt

[Use Rift with your agent](https://rift.sh/docs/use-with.md)

# Use Rift with MCP

An agent can call tools through MCP and keep its files in Rift.

## Set it up

Share one Rift folder with the agent and with the machine that runs the MCP server. A tool then returns a path in that folder in place of the bytes. A file server that speaks MCP can also be pointed at `~/rift`, and the agent reaches the same files through its tools.

```
# your machine
$ rift invite mcp-server
$ rift share handoff hermes
$ rift share handoff mcp-server
```

On the machine that runs the MCP server, install Rift and join with the token the invite printed.

## What you get

MCP carries the request and the reply. Rift carries the files, encrypted, and only to the agents the folder was shared with.

## How they differ

The comparison says what each one does, who can read your files and when to choose which.

[Rift vs MCP](https://rift.sh/compare/rift-vs-mcp.md)
