6 min read #OpenCloud#AI#Sovereignty

OpenCloud · MCP server

Connecting AI assistants to OpenCloud: the MCP server

Files hold a lot of knowledge that nobody finds, because you have to know where it is. The OpenCloud MCP server connects an AI assistant to OpenCloud, which can then search, read, summarize and, when asked, store or share files. It always works with the permissions of the person asking, makes no copy of the data and also works with locally hosted models.

After a few years, a team's file storage holds more knowledge than any one member can keep in their head: minutes recording the reasons behind decisions, quotes with prices that were already negotiated once, concepts that were dropped and later needed after all. Little of it gets used, because knowledge in files only opens up if you know where it is and what the file is called. Coming back from three weeks of vacation, you open one document after another to understand what happened. The question of why a project was decided differently two years ago ends up, if in doubt, with someone who was there at the time, provided that person still works at the organization.

The OpenCloud MCP server changes this by turning your own file storage into something you can talk to. It connects an AI assistant to OpenCloud via the Model Context Protocol, an open standard for connecting tools to language models. Instead of clicking through folders, you ask, for example, what happened in your to-dos or what changed in the folder for the business trip to Lisbon. The assistant lists the spaces you can access, searches them, reads the relevant files and summarizes what it found. It can also act if you ask it to: store a quote in the right folder, share it read-only with a team or restore the version of the budget from last Monday. The server's 57 tools cover spaces, files, search, trash bin, versions, shares, people, tags, activities and office apps. Documents can be subscribed to as resources, so a client learns when one changes.

Animation: you ask your own AI in the chat what’s new in “Lisbon”. The chat calls the MCP server with your token, and the server calls the OpenCloud APIs on your behalf. OpenCloud returns only files from spaces you can access; a space without access stays locked. The server keeps no copy. The result goes back, and the chat answers with a link to three new files.

How a question travels: the MCP server calls OpenCloud on your behalf and keeps nothing.

Several sources in one answer

How much such an assistant can do depends on how many systems it reaches, because the model combines the tools of different servers. If an MCP server for the ticket system or the calendar runs alongside OpenCloud, the assistant can fetch the documents for the next meeting from OpenCloud, cross-check them with the open tickets and write a briefing from that, without anyone having to build a dedicated integration. That is why OpenCloud has no chat interface of its own: most organizations already have one, and there OpenCloud becomes one source among several.

On the other end, you can use Claude, chat interfaces such as LibreChat and Open WebUI, and locally hosted models, for example via Ollama or vLLM; in tests, open models like Qwen also deliver usable results. If you don't want to send any document to an external provider, you run the model, the chat interface and OpenCloud in your own data center and get the same tools. Many organizations put a router such as LiteLLM between the interface and the model to manage budgets and usage per team. The MCP server fits into this architecture as one more building block.

No copy, your own permissions, read-only

Opening your file storage to an assistant is only an option if the permissions maintained over years still apply. Some AI services load documents into an index at the AI provider, where they live on as a copy with their own access rules, separate from the organization's permissions. The OpenCloud MCP server creates no index, no cache and no background copy. It calls OpenCloud at the moment a question requires it, always as the person asking, which is why the assistant sees exactly what that person would see in the web interface. A space the person has no access to stays invisible to the model as well.

Operators can narrow the scope further. With --read-only, the server limits itself to tools that change nothing; with --toolsets, to individual groups, such as only search and reading. The server enforces these limits itself, so a client can't bypass them. Every tool carries a label saying whether it reads, adds or deletes, so the chat client can ask for confirmation before every change. User and group management, app tokens, passwords and locks are left out, because an assistant should neither create accounts nor change credentials. Calls made with a person's token go exclusively to the configured OpenCloud; the server drops redirects to other hosts before they leave it.

In a team, each person signs in individually, instead of one central account with broad permissions speaking for everyone. This is made possible by the July 28, 2026 revision of the MCP specification, which made the protocol stateless: every request carries its own authentication. The chat client gets a token from the organization's identity provider. The server validates it and exchanges it there for a token for OpenCloud (Token Exchange per RFC 8693). Because the server remembers nothing between two requests, it runs behind an ordinary load balancer. This requires an identity provider that supports token exchange, such as Keycloak, authentik or Rauthy, because the provider built into OpenCloud can't do it. Without such a provider, you're left with app tokens, which each person creates in OpenCloud themselves and can revoke at any time.

  1. “Create a new app token” dialog with “Note: Claude Desktop” and an expiration date of March 31, 2027, “Confirm” at the bottom right.
    In your account under “App Tokens”, click “New” and enter a note and an expiration date.
  2. Message “Your app token has been successfully created. This is the only time it will be displayed”, below it the obscured token with a copy icon and “Expires on: Mar 31, 2027”.
    The token is shown only this one time (obscured here).
  3. “App Tokens” list with the entry “Claude Desktop”, creation and expiration date, status “Active” and a trash icon under “Actions”.
    In the list, you can delete the token at any time using the trash icon.

Try it

For a first impression, a single person with an app token is enough. In Claude Desktop, you open the MCP bundle from the release and enter the address, user and token, which are then stored in the system keychain; for other clients there are binaries for Linux, macOS and Windows. The repository also includes a demo that starts OpenCloud, an identity provider, the MCP server and LibreChat locally with Docker Compose and fills them with spaces, files and people, so you can ask the example questions without your own data.

The server is a separate project with lab status, intended for testing and evaluation and tested with OpenCloud 9.0.0; it doesn't support older versions. Version 1.0.0 is coming up. Work is underway on MCP Apps, which let the assistant show results as interactive views in the chat, such as the spaces with their storage usage or a file preview from which a click leads straight into OpenCloud.

Sources