MCP servers in a team, without a token in a file
An .mcp.json with a token in plain text works for one person, not for six. This is what the same connection looks like when everyone signs in in the browser.
mcp server oauth, mcp server team, share api key, model context protocol, secrets in repoYou have set up an MCP server in Claude Code, and it runs. The .mcp.json contains an env block with a token in plain text. For you alone that was fine. Now five colleagues are to use the same server, and the file is in the repository.
What goes wrong with the file containing a token
You have two options, and neither is good. You commit the file, and then the token is in the Git history and stays there, even if someone later deletes it from the file. Or the file goes into .gitignore, everyone enters their token by hand, and the setup travels from computer to computer as a chat message.
On the first path, everyone also works with the same token. The service behind it sees a single user, and who read or changed something can no longer be said afterwards. If someone leaves the team, the token has to be replaced, on every computer.
Then there is the sheer number. Every further service brings another token, on every computer. With six people and four services, that is twenty-four places where a secret sits in a text file.
Sign in instead of entering a token
relais.io is an MCP server you sign in to. The configuration contains only an address:
{
"mcpServers": {
"relais.io": { "type": "http", "url": "https://api.relais.io/v1/w/<dein-workspace>/mcp" }
}
}
This file may go into the repository; there is no secret in it. In Claude Code the same works with one line in the terminal, and it then applies to all your projects:
claude mcp add --transport http --scope user relais-io https://api.relais.io/v1/w/<dein-workspace>/mcp
On the first tool call the browser opens. You sign in with your relais.io account, and the consent page shows each permission the program requests individually. Behind this is OAuth 2.1 with PKCE: the program registers itself, sends you to consent and then fetches its access. So there is still a token. But your program obtains it itself, and it belongs to your sign-in and not to the team.
Every workspace has its own MCP address. If you work in two workspaces, you create two connections with two names so that one does not replace the other. You copy the address of your workspace in the app under “Connections”. What connecting looks like in ChatGPT, Claude and Cursor is described under Connect an AI.
Who acts through the connection
A connection created this way acts as your own AI. It never acts as you yourself and never as another person’s AI. Every member issues the access for their AI themselves and needs nobody who owns the workspace for that.
That removes the shared token. Six people are six sign-ins. Your AI is in the same channels as you and has your role there. If you leave a channel, it loses it too.
You can disconnect at any time. Under “Connections” you revoke a program; it is signed out immediately and has to ask for consent again. Management can revoke a program as well, even if another member gave consent. Nothing changes on the others’ computers, because nobody shared anything with you.
The services are attached to the workspace, not to the laptop
The second part concerns the services behind the server. You connect Cloudflare, Stripe, GitLab, Gitea, Hetzner, Grafana and Uptime Kuma once under “Services” with an API token. For GitHub and Microsoft you sign in with the provider. relais.io checks the token with the service, stores it encrypted and never shows it again.
An AI does not see these credentials. Connected services appear to it as tools by themselves, and it calls every service through relais.io. No token for any of these services sits on the computers in the team.
Every relayed call is recorded in the log, allowed and denied alike. The row names the client, for example ChatGPT, and whether the right belonged to the agent itself or to its person. More on this under Relay log.
What you still keep an eye on yourself
Two things are not solved by this on their own.
For a connection without a browser, such as on a server, you still issue a token. relais.io stores only a fingerprint of it, and you can revoke it individually. But it remains a token, and it needs a place that is not a file in the repository.
And the token you connect a service with determines what becomes reachable. For GitLab and Gitea, relais.io enters all projects the token sees. How narrowly it is scoped, you decide with the service. The dialog for connecting tells you the rights the token needs.
For Claude Code there is also a plugin. There, too, the access is not kept in the project but in a file in your user folder that only you can read. The details are under Claude Code.
relais.io runs as a closed beta. You start by joining the waitlist: https://app.relais.io/welcome