r/modelcontextprotocol • u/TelephoneSavings973 • 1d ago
Built multi user MCP server that allows end users to add their own fine grained permissions
We’ve built multi-user MCP servers that authenticate users through their existing identity provider, without ever holding their third-party API credentials.
Those credentials are stored in a secure vault and injected into downstream API requests at runtime.
For developers, the core integration is straightforward: configure an OIDC-compliant identity provider in Alter and use Alter’s SDK to make downstream API calls. Alter handles credential injection and enforces permissions, making it easier to build MCP servers for multiple users from the start.
Each user gets their own wallet, accessed through that same identity provider, where they connect their accounts and control what the server can do on their behalf. Permissions apply to individual requests, down to specific API parameters.
For example: “Allow sending emails from my account, but never to this recipient.”
The same MCP server can serve multiple users, each with their own accounts and permissions.
You can use this same approach to build your own multi-user MCP servers. Alter supports 130+ providers, so you can build tools around the APIs your users need.
We’ve open-sourced the servers with code examples and a detailed walkthrough to help you get started:
github.com/AlterAIDev/alter-mcp-servers
Disclosure: I’m one of the founders of Alter.
1
u/Ok_Photo_7449 5h ago
The test that matters here is the deny case, not the allow case. It is easy to show an agent sending an allowed email. The harder check is the forbidden one: the agent tries the blocked recipient, the call is refused, and nothing was actually sent. I would verify that by reading the sent folder afterwards, not by trusting the error message. The other case I would test is a permission change mid-session: a user removes a permission, then the agent retries the same call with the old arguments. If the server still allows it, the permission was only checked at setup time.