Documentation
Plug retyc-paste into your AI assistant, or share text from any terminal with one curl command: nothing to install. The official public instance is paste.retyc.com; on a self-hosted instance, the examples below show its own address.
Use it with your AI
Add this server to your assistant as a remote MCP server (also called a custom connector). Then just ask, for example: “put this log in a paste and give me the link” or “share this script as a link that expires in one hour and can be read only once”. The assistant gets two tools: create_paste returns a share link, get_paste reads one.
The connector URL, with no sign-in and no API key:
https://paste.retyc.com/mcpPastes are stored encrypted and expire, but with this connector the server sees the text briefly while encrypting it. For text the server must never see, use the end-to-end encrypted options.
Claude (claude.ai and Claude Desktop)
- Open Customize, then Connectors (on Team and Enterprise plans, an owner adds it once in Organization settings → Connectors).
- Click + Add, then Add custom connector.
- Name it
retyc-paste, paste the connector URL above and click Continue. - For authentication, choose No sign in, then click Add.
- In a chat, open the + menu, then Connectors, and turn retyc-paste on.
Connectors added on claude.ai are also available in Claude Desktop.
ChatGPT
- On ChatGPT for the web, open Plugins, click + and choose Add custom MCP server.
- Name it
retyc-paste, paste the connector URL above under Connection, and choose no authentication. - Confirm the warning about custom servers, create it, then enable it in your chat.
Custom MCP servers depend on your ChatGPT plan and workspace settings (on business workspaces, an admin may have to add it). Menu names change often: look for “custom MCP server” or “connector”.
Claude Code
claude mcp add --transport http retyc-paste https://paste.retyc.com/mcpAdd --scope user to make it available in all your projects.
Cursor
Add this to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):
{
"mcpServers": {
"retyc-paste": {
"url": "https://paste.retyc.com/mcp"
}
}
}VS Code (GitHub Copilot)
Open the command palette, run the command to add an MCP server, choose HTTP and paste the connector URL. Or add it to a .mcp.json file at the root of your workspace:
{
"mcpServers": {
"retyc-paste": {
"type": "http",
"url": "https://paste.retyc.com/mcp"
}
}
}Other assistants
Any client that supports remote MCP servers over “streamable HTTP” works with the same URL and no authentication. If yours only runs local commands, see the local MCP server.
In-browser AI agents (WebMCP)
WebMCP is a draft specification from the W3C Web Machine Learning Community Group: a web page offers tools to the AI agent built into the browser, with no connector to install. Every retyc-paste page offers them when the browser supports it:
create_paste(every page): shares text as a link, with an optional expiration, burn after reading and password. It returns the share link and a private delete token.read_current_paste(on a paste page): returns the text of the paste open in the tab. It never opens a burn-after-reading paste by itself: you click Reveal first, since reading it deletes it. For a password-protected paste, the agent asks you for the password.
These tools run inside the page, so the text is encrypted and decrypted in your browser, exactly like when you use the page yourself: the server only stores ciphertext and never sees the key (zero-knowledge). That makes them the end-to-end encrypted way to use retyc-paste from an AI agent, with nothing to install.
WebMCP is experimental. As of December 2026 it is available in Chrome 149 and later and in Edge 150 and later through an origin trial, which the site operator opts into; ChatGPT Desktop can use it, Brave plans it for its Leo assistant, and Firefox and Safari have no implementation yet. To try it in Chrome on any instance, open chrome://flags/#enable-webmcp-testing, enable the flag, restart Chrome and open the page in a tab your browser agent can use.
From the command line, no install
Send a file as the request body: the answer is the share link.
curl --data-binary @notes.txt https://paste.retyc.com/api/v1/pastesPipe the output of any command, and pick the expiration (5m, 1h, 1d, 1w, 1mo) or burn after reading in the query string:
make test 2>&1 | curl --data-binary @- 'https://paste.retyc.com/api/v1/pastes?expires=1h&burn=1'To protect it with a password, send it in a header (never in the URL): -H 'X-Paste-Password: secret'. The response also carries the X-Delete-Token and X-Expires-At headers (use curl -i to see them). Add -H 'Accept: application/json' to get a JSON response instead.
Prefer JSON in, JSON out:
curl -s https://paste.retyc.com/api/v1/pastes \
-H 'Content-Type: application/json' \
-d '{"text":"hello world","expires_in":"1h","burn_after_reading":false}'
# {"id":"AbC123xYz789","url":"https://paste.retyc.com/p/AbC123xYz789#<key>",
# "delete_token":"...","expires_at":"2026-12-05T10:00:00Z","server_encrypted":true}As with the AI connector, the server encrypts the text for you: convenient, but not zero-knowledge. The administrator can disable this mode (allow_server_encryption).
REST API reference
The full machine-readable description is the OpenAPI document. Errors are JSON, like {"error":{"code":"not_found","message":"..."}}, with a matching HTTP status. Rate limiting answers 429 with a Retry-After header. Browsers on other websites cannot create or delete pastes (403 cross_origin).
GET/api/v1/config
Server limits and allowed expirations.
curl https://paste.retyc.com/api/v1/config
# {"version":"1.0.0","max_size":1048576,"expirations":["5m","1h","1d","1w","1mo"],
# "default_expiration":"1d","allow_never":false,"allow_server_encryption":true}POST/api/v1/pastes
Create a paste. Three bodies are accepted:
text/plain: the raw text, encrypted by the server (see above). Query parametersexpiresandburn, headerX-Paste-Password. Answers the share link as plain text, or JSON withAccept: application/json.- JSON with
text: encrypted by the server, withexpires_in,burn_after_readingand an optionalpassword. - JSON with
ciphertext,iv,salt: encrypted by your client (format v1), zero-knowledge.
curl -s https://paste.retyc.com/api/v1/pastes \
-H 'Content-Type: application/json' \
-d '{"ciphertext":"<b64u>","iv":"<b64u>","salt":"<b64u>",
"password":false,"burn_after_reading":false,"expires_in":"1d"}'expires_in must be one of the configured values (or never if allowed). max_size applies to the ciphertext or to the UTF-8 text. Success returns 201 with id, url, delete_token (returned once) and expires_at (null for never). With client-side encryption, url has no key: append #<key> yourself.
GET/api/v1/pastes/{id}
Fetch the encrypted paste. If it was created with burn_after_reading, this read deletes it: only one reader ever gets it. GET /api/v1/pastes/{id}/meta returns its flags without consuming it.
curl https://paste.retyc.com/api/v1/pastes/AbC123xYz789
# {"id":"AbC123xYz789","version":1,"ciphertext":"...","iv":"...","salt":"...",
# "password":false,"burn_after_reading":false,"created_at":"...","expires_at":"..."}DELETE/api/v1/pastes/{id}
Delete a paste with the token returned at creation. Answers 204, or 404 if the paste is missing or the token is wrong.
curl -X DELETE -H 'X-Delete-Token: <delete_token>' \
https://paste.retyc.com/api/v1/pastes/AbC123xYz789Advanced: end-to-end encryption
The web page, the command-line client and the local MCP server encrypt on your machine, so the key in the link never reaches the server: even its operator cannot read your pastes. The price is installing the retyc-paste binary (or implementing the format yourself), which is why the AI connector and curl above let the server encrypt instead.
Local MCP server
Runs on your machine over stdio and exposes the same create_paste and get_paste tools, with the cryptography done locally. Add it to any client that runs local MCP servers:
{
"mcpServers": {
"retyc-paste": {
"command": "retyc-paste",
"args": ["mcp", "--server", "https://paste.retyc.com"]
}
}
}Command line
The binary that serves the site is also a client. Download it from the releases page.
# create a paste from stdin and print its link
echo "hello" | retyc-paste create --server https://paste.retyc.com
# read a paste from its full share URL
retyc-paste get 'https://paste.retyc.com/p/AbC123xYz789#<key>'
# serve, purge expired pastes, run the MCP server, print the version
retyc-paste serve
retyc-paste purge
retyc-paste mcp --server https://paste.retyc.com
retyc-paste versionRun retyc-paste <command> -h for all flags.
Client-side encryption (format v1)
To keep the zero-knowledge guarantee in your own client, encrypt before upload. Compression is not byte-stable across implementations, so implementations are verified by decrypting shared test vectors.
| Item | Value |
|---|---|
Key K | 32 random bytes, in the link fragment as base64url without padding |
salt / iv | 16 / 12 random bytes, per paste |
| Password | P = PBKDF2-HMAC-SHA256(password, salt, 600000, 32); input key material is K, or K ‖ P with a password |
| Encryption key | HKDF-SHA256(ikm, salt, info="retyc-paste/v1/enc", 32) |
| Plaintext | UTF-8 text compressed with raw DEFLATE (no zlib or gzip header) |
| Cipher | AES-256-GCM, 16-byte tag appended to the ciphertext |
| AAD | ASCII retyc-paste:v1:<b>:<p>, with b = 1 if burn after reading and p = 1 if password, else 0 |
Share URL: https://paste.retyc.com/p/<id>#<b64u(K)>. The full specification lives in docs/SPEC.md. Need to send files instead of text? Try Retyc.