Skip to content

MCP ​

What is MCP? ​

MCP (Model Context Protocol) is an open, standardized protocol that lets AI assistants and other agent-based clients call tools and read data from external services — in the same way REST APIs make it possible for ordinary programs to talk to a service. Communication happens via JSON-RPC over HTTP.

By connecting an MCP-compatible AI client to Brick's MCP server, you can ask your AI assistant to search for files, read and edit documents, organize folders, manage shares and more — directly in natural language, without having to click your way through Brick HQ.

What the client is allowed to do is governed by which so called scopes it has been granted: brick gives read access and brick:manage also gives the right to create, change and delete.

Use Brick with Claude AI ​

If you use Claude AI, you don't need to set anything up yourself. Brick is available in Claude's MCP Marketplace at claude.ai/directory/brick — click to connect, log in to your Brick account and approve the access, and Claude can start working with your files right away.

Available tools ​

Brick offers the following tools to your MCP-compatible AI client:

Files and folders ​

ToolDescription
list_folderLists the direct contents of a folder. Omit both path and node id to list the account root.
get_metadataFetches metadata for a file or folder: size, MIME type, timestamps, version etag and path.
read_fileReads a line-numbered excerpt of a text file's contents (in the style of cat -n).
write_fileMakes an exact search-and-replace edit to a text file's contents.
replace_fileOverwrites an entire file's contents. Lands as a new version — the previous contents can still be restored via list_file_revisions / restore_file_revision.
create_fileCreates a new text file with the given contents.
create_folderCreates a new folder.
deleteMoves a file or folder to the trash (soft delete).
copyCopies a file or folder to the same or another folder; the original is left untouched.
moveRenames and/or moves a file or folder.
get_download_linkCreates a short-lived link for downloading a file's current contents without further authentication.
ToolDescription
searchSearches for files and folders by name across the whole account.
list_recentLists recently updated files across the whole account.
list_largestLists the largest files in the account, largest first — handy for finding what can be cleaned out.
search_photos_nearbyFinds photos taken near a given location, based on the GPS coordinates in the photos' EXIF data. Results are sorted nearest first and include each photo's coordinates, capture time and distance in kilometres. Can be limited to a maximum distance and a date range.

Albums ​

ToolDescription
list_albumsLists photo albums: the caller's own and those other members have shared with them. Each album shows its name, number of images and videos, cover file and the caller's permission (edit or view only).
list_album_itemsLists the images and videos in an album, most recently added first by default. Can be filtered to only images or only videos.
create_albumCreates a new, empty photo album.
delete_albumDeletes one of the caller's albums. Only the album itself is removed — the images and videos in it, and any sharing of them, are not affected. The deletion can be undone from the activity log.
add_to_albumAdds up to 100 images or videos to an album the caller owns or has edit access to. If the album is shared, its recipients also get view-only access to the added files.
remove_from_albumRemoves up to 100 files from an album the caller owns or has edit access to. The files themselves are not deleted and their sharing is not changed.
create_album_shared_linkCreates a public, view-only link to an album the caller owns or has edit access to. Anyone with the link can view and download the album's images and videos without an account of their own. An album has at most one active link — if it already has one, that link is returned instead. The result includes the link's address, ready to hand out.
share_album_with_userShares an album the caller owns or has edit access to with another member of the account, with view or edit access. The recipient also gets view-only access to every image and video in the album, including those added later. With edit access they can also rename the album, add their own images and videos, remove items and manage who it's shared with — but only the owner can delete it.

Trash ​

ToolDescription
list_trashLists items currently in the trash, most recently deleted first.
restore_from_trashRestores a deleted file or folder (and, for a folder, everything beneath it) to an active location again.
empty_trashPermanently deletes every item in the trash that the caller is allowed to modify. Cannot be undone.

Version history ​

ToolDescription
list_file_revisionsLists a file's version history, most recent first.
restore_file_revisionMakes an older version of a file the active one again.

Sharing ​

ToolDescription
create_shared_linkCreates a public link to a file or folder. Anyone with the link can access it (read-only by default) without an account of their own. The result includes the link's address, ready to hand out.
share_with_userShares a file or folder directly with another member of the account.
list_shared_linksLists public shared links created by the caller, optionally limited to a particular file or folder. Each link includes its address.
get_shared_link_metadataFetches details about a shared link: recipients, expiry date, which file/folder it points to and the link's address.
list_incoming_share_sendersLists the account members who have shared something with the caller, one entry per person with a count of shared items.
list_incoming_sharesLists what a specific account member has shared with the caller.

Account ​

ToolDescription
who_am_iReports the caller's own identity and access: account id, user id, email and granted scopes.
get_usage_and_quotaFetches storage usage and quota for the account, plus a breakdown of the caller's own usage per media type.
get_activity_logFetches the account's audit log of file and account events.

Connecting to Brick's MCP server ​

Brick's MCP server is reached at https://api.brick.wbite.net/v1/mcp and is authenticated with OAuth2/OIDC. For your MCP client to be able to log in and get an access token, you first need to register it as an OIDC client on the account in Account HQ.

Here's how you create an OIDC client for your MCP client:

  1. Log in to Account HQ.
  2. Click the profile icon in the top right to open the profile menu.
  3. Under the heading Account in the menu, click OIDC Clients.
  4. Click the button to add a new client.
  5. Fill in the form:
    • Give the client a name, e.g. the name of your AI client.
    • Under Client type, choose Public — MCP clients use the Code flow with PKCE and need no client secret.
    • Under Account mode, choose Single-mode.
      This matters: an access token from Brick's MCP server is always tied to a single account, so the client must force an account choice at login instead of giving access to all your accounts at once.
    • Under Redirect URIs, enter the redirect URI that your MCP client shows you during its own connection process. It has to match exactly, otherwise the login is denied.
    • Under Scopes, tick accounts, brick and brick:manage. These three cover everything the MCP server offers above — accounts for account information, brick for read access and brick:manage to also be able to create, change and delete.
  6. Click the Create client button.
  7. Copy the Client ID that is shown and paste it into your MCP client's settings together with the server address https://api.brick.wbite.net/v1/mcp. Since the client is of the Public type, no client secret is shown — nor is one needed.

When you then connect in your MCP client, you are sent to Account HQ to log in and approve the access, just like with a regular OAuth2 login.

Released under the MIT License.