> ## Documentation Index
> Fetch the complete documentation index at: https://docs.onebucket.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Architecture

> How the Adaptive Data Fabric™ presents every backend as one logical bucket — placement, caching, and access over S3 and MCP.

OneBucket sits between your clients and your backends. Clients speak **S3** or **MCP** to a single endpoint; OneBucket resolves each request to wherever the data actually lives — cloud, on-prem, or edge — and moves or caches data according to policy. OneBucket holds no data itself: it sits in front of the storage you already own.

## The Adaptive Data Fabric™

The fabric is the core abstraction: **location-independent access to unstructured data**. It operates at the API layer, stateless and lightweight, applying policy-driven routing, caching and movement to each call. It has three jobs:

* **Connect natively** — native S3 and MCP interfaces reach every cloud, on-prem, and edge source, with no application changes.
* **Place by policy** — policy-driven placement and adaptive movement keep data in the right place at the right time.
* **Access anywhere** — intelligent caching and replication make distributed data feel local.

Your applications see **one logical bucket namespace**. Behind it, objects may live in AWS S3, Azure Blob, Google Cloud Storage, Wasabi, Akave, on-prem, edge, or air-gapped stores — and may move between them without the client noticing.

## Four layers

One layer sits between your data and everything that reads it:

| Layer | What it does |
| - | - |
| **Protocol** | The only surface clients see: the S3 gateway and the MCP servers. |
| **Data** | Every read and write, plus replication, migration and prefetch in the background. |
| **Control** | Organizations, keys, endpoints, and one [policy](https://docs.onebucket.io/concepts/policies.md) per bucket. |
| **Events** | Every call recorded, scoped to organization and key, for audit. |

Applications, agents, analytics engines and people (through the web explorer) talk S3 or MCP to the protocol layer. Behind it, OneBucket talks S3 or Azure Blob to your backends in the cloud, on-premises, at the edge, or air-gapped.

## Access interfaces

OneBucket exposes three endpoints. Each has a **global** hostname, which routes every request to the live region nearest the caller, and a **regional** form that pins a specific region:

| Interface | Global | Regional |
| - | - | - |
| S3 gateway | `s3.onebucket.io` | `s3.<region>.onebucket.io` |
| Data MCP | `data.onebucket.io` | `data.<region>.onebucket.io` |
| Events MCP | `events.onebucket.io` | `events.<region>.onebucket.io` |

Regions today are `us-ashburn-1`, `us-sanjose-1` and `ap-singapore-1`; see [Endpoints](https://docs.onebucket.io/reference/apis.md#endpoints). Your policy is active in every region, so the global hostnames are the right default; pin a region only when you need requests to land in a specific location.

**`s3.` — the data plane.** The full S3 API with AWS SigV4 auth: buckets, objects, multipart uploads, versioning, and presigned URLs. This is what applications, SDKs, and S3 tools talk to — see [S3 API compatibility](https://docs.onebucket.io/reference/s3-api.md).

**`data.` — objects over MCP.** An MCP server that gives AI agents the object operations in natural language: list, read, and upload objects, presign URLs, and copy, move, migrate, prefetch, or locate them across backends — see the [MCP overview](https://docs.onebucket.io/mcp/overview.md).

**`events.` — events over MCP.** An MCP server for what *happened*: list, get, and tail the events your OneBucket emits, filterable by time, bucket, and action — the audit and monitoring companion to `data.`.

Both MCP endpoints authenticate through the OneBucket authorization server at `oauth.onebucket.io`, using standard OAuth 2.1 with PKCE; the S3 gateway uses your access key / secret key pair. See [Sign-in](https://docs.onebucket.io/mcp/overview.md#sign-in).

## Placement and movement

Objects are placed and moved by policy rather than by hand:

* **Policy-driven placement** decides which backends hold a bucket's objects, per bucket.
* **Adaptive movement** relocates data as access patterns and policies change.
* **Explicit operations** — `copy`, `move`, and `migrate` — let you relocate objects across backends on demand. These run asynchronously: they return once queued, so a destination may not be readable immediately.
* **`locate`** reports which configured backends currently hold an object.

## Caching and replication

To cut egress cost and latency, OneBucket serves repeat reads locally:

* **Edge caching** keeps hot objects close to where they are read.
* **Prefetch** warms the cache ahead of demand (`prefetch` via MCP, or as part of policy).
* **Replication** keeps copies in multiple backends where policy requires it.

## Governance and audit

Access control is enforced once, at the fabric — one policy layer across every backend. Every operation is scoped to your organization and access key; cross-organization access is not possible. Detailed **events** stream from the events endpoint, so you can audit activity with `list_events`, `get_event`, and `tail_events`, filterable by time, bucket, and action.

## Next steps

> [card] [S3 API compatibility](https://docs.onebucket.io/reference/s3-api.md)
>
> What the S3 gateway supports and how to authenticate.

> [card] [OneBucket MCP](https://docs.onebucket.io/mcp/overview.md)
>
> Give AI native access to the fabric over MCP.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.