NewAn MCP server: give your AI agent the whole backend

Your app's backend,ready on day one.

Files on a global CDN with image variants, search, live updates, chat, notifications, multiplayer and email on your own domain — behind one API key and one prepaid balance.

  • Sign up with Google
  • Pay as you go from $5
  • No subscription
upload.ts
1// 1. An upload URL: type, size and variants locked in
2const { fileId, uploadUrl } = await xfiles(
3 "/api/v1/files/upload-intent",
4 {
5 filename: "hero.jpg", contentType: "image/jpeg",
6 size: file.size, visibility: "public",
7 transformations: { image: { enabled: true } },
8 },
9);
10
11// 2. The bytes go straight to storage
12await fetch(uploadUrl, { method: "PUT", body: file });
13
14// 3. Confirm: the CDN url and 7 WebP widths are ready
15const { file: stored } = await xfiles(
16 "/api/v1/files/confirm", { fileId },
17);

Built for AI agents

Your agent can build on XFiles too.

Connect Claude, Cursor, VS Code or any MCP client to a project. Your agent reads the docs, uploads files, fills search collections, sends notifications and email — with the same key, limits and billing as your own code.

  • The docs tools need no key, so an agent can learn XFiles before you sign up.
  • A key opens exactly one project: give each agent its own, and delete it when you're done.
  • Nothing is stored on the way: every call goes through the public API, as you.
Claude Code
1claude mcp add --transport http xfiles \
2 https://www.xfiles.dev/api/mcp \
3 --header "Authorization: Bearer $XFILES_KEY"

24 tools

Docssearch_docsread_docs
Fileslist_filesget_fileupload_fileget_file_urlupdate_filedelete_filerestore_file
Searchlist_search_collectionscreate_search_collectionindex_documentsdelete_documentssearch
Live updatespublish_event
Notificationssend_notification
Emailemail_domainregister_email_domainverify_email_domainlist_mailboxescreate_mailboxsend_emaillist_emailsread_email

Getting started

From sign-up to your first request in minutes.

11

Create your account

Sign up with Google in a few seconds. The dashboard is ready when you are.

22

Add credit, make a project

Top up from $5 and create a project. Its API key is shown once — keep it on your server.

33

Call the API

Upload a file, index a search, publish an event. The quickstart takes you through your first request.

Try it here

Files that know where they belong.

Attach every upload to the thing it belongs to — a product's gallery, a user's avatar, an order's invoice — and list them back by it, with CDN links and image variants in the same answer.

  • Presigned uploads lock type and size
  • Public links, or signed private ones
  • Variants public even when originals are private
  • Deletes undoable for 30 days
upload demo

Scenario

sneaker-front.jpg

image/jpeg · 2.4 MB

product/gallery

prod_8kx2m

File visibility
Image transforms
Variant visibility

Request body preview

{
  "filename": "sneaker-front.jpg",
  "visibility": "public",
  "entity": {
    "type": "product",
    "id": "prod_8kx2m",
    "role": "gallery"
  },
  "transformations": {
    "image": {
      "enabled": true,
      "visibility": "public"
    }
  }
}
See the API docs

Pricing

Pay for what you use. Nothing else.

Prepaid credit from $5, drawn down by the day as you use it. No subscription, no seats, no minimum each month — and no surprise invoice.

Storage

$0.05

per GB per month

Bandwidth

$0.20

per GB served

Image variants

$0.50

per 1,000 built

Search

$0.10

per 1k searches

Live updates

$1.00

per 1M events

Notifications

$0.10

per 1k notifications

Email mailboxes

$0.50

per mailbox/mo

Email recipients

$0.30

per 1k recipients

Built to be trusted

Serious about the boring parts.

The things that only matter when they go wrong are the ones XFiles was built around.

Projects are walls

Each project's files, data, keys and tokens are its own. One organization key can run many, never mix them.

Keys never stored

Only a hash of each key is kept. It is shown once, and rotating it can keep the old one working for a day.

Private by default

Files are private unless you say otherwise, and private links are signed and expire within minutes.

Abuse stops at the door

Rate limits, sending limits and automatic suspension keep one bad actor from costing everyone else.

Infrastructure you know

Amazon S3 and CloudFront for files, Cloudflare for bundles, servers in Germany (Hetzner) for the platform and mail.

Documented for machines too

The complete reference is one file at /llms.txt, and the MCP server lets agents read it while they work.

Spend your time on the product. Let XFiles run the rest.

Create your account with Google, add credit when you are ready to ship, and pay only for what your app uses.