Alter Multi-User MCP Servers
OfficialProvides tools for working with GitHub repositories and collaboration: listing repos, searching and reading issues, listing and inspecting pull requests, and reading file contents, plus approval-gated writes such as creating issues, commenting, opening pull requests and merging them.
Searches and reads a signed-in user's mailbox, creates draft emails and sends email on their behalf, with sends held for human approval and a check_approval tool to poll the outcome.
Lets agents list calendars and events, read a single event, check free/busy across calendars, and create or update events and respond to invitations, with creates, updates and RSVPs held for approval.
Searches and reads files in a user's Drive, lists file permissions, and can create files or share them, with sharing and permission changes held for human approval.
Searches, lists and retrieves CRM records and creates/updates contacts, deals and tickets, with all writes gated behind Alter approval policy.
Lists accessible sites and projects, searches and reads issues, lists available transitions, and creates or updates issues, adds comments and moves issues through transitions — writes and transitions held for approval.
Retrieves the authenticated viewer and teams, searches and reads issues, and creates or updates issues and adds comments, with issue creates, updates and comments held for approval.
Searches and reads pages, queries databases, creates pages and databases, appends to and updates pages, adds database columns, moves, trashes and restores pages, and adds comments — with deletes and moves held for approval.
Lists channels and users, reads channels and threads, posts messages, sends direct messages, updates messages and adds reactions, with channel posts, DMs and edits held for approval; a companion slack-approvals package delivers held actions with Approve / Deny buttons inside Slack.
Reads account balance, searches and retrieves customers, lists invoices, subscriptions and payment intents, and can create customers and invoices, send invoices and issue refunds — all monetary writes held for approval.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Secure Multi-User MCP Servers
Shared service accounts are why multi-user agents fail security review. These MCP servers never hold the provider token. One server serves Alice and Bob with full isolation, server-side policy, human approvals the client cannot skip, and per-person audit logs.
Unlike a gateway that still uses a shared upstream credential, each server makes the actual API call as the signed-in user. 12 open-source, secure servers built on Alter — run locally, deploy on Cloudflare Workers (OAuth 2.1), or host both the MCP servers and Alter together in your own infrastructure (or have us host both). Official APIs only. See the 75-second Alice-vs-Bob walkthrough.
Two users, one server, full isolation
flowchart LR
A["Alice (OIDC)"] -->|MCP| S["One MCP Server (zero tokens)"]
B["Bob (OIDC)"] -->|MCP| S
S -->|"agent key"| AL["Alter (policy · approvals · audit)"]
AL -->|"Alice's token"| APIA["Official API (Alice's account)"]
AL -->|"Bob's token"| APIB["Official API (Bob's account)"]Same hosted MCP server: https://alter-gmail-mcp.<your-org>.workers.dev/mcp
Secrets on the server: ALTER_AGENT_API_KEY + ALTER_SIGNIN_KEY (zero provider tokens)
1. Alice signs in via your OIDC IdP ──▶ "Search Q4 budget emails" ──▶ Sees ONLY Alice's inbox
2. Bob signs in via your OIDC IdP ──▶ "Search Q4 budget emails" ──▶ Sees ONLY Bob's inbox
3. Alice's agent calls send_email ──▶ Held by Alter policy ──▶ Alice approves in Slack / Wallet
4. Alter executes the exact email ──▶ Audit log records ──▶ user: alice@acme.com · tool: send_email · approvedRelated MCP server: mcpgate
Security, policy, and audit
What the MCP server holds | What the MCP server never holds |
Only an Alter agent key ( | Provider OAuth tokens (Gmail, Slack, GitHub, Jira, HubSpot, Stripe, etc.) |
Hosted only: Alter sign-in key + hashed per-user session tokens in KV | User passwords, IdP client secrets, or shared service-account keys |
Zero token exfiltration: No provider tokens sit on disk, in env vars, or in KV. A leaked agent key only reaches what policy permits and revokes in one place.
Prompt-injection-proof policy & approvals: Policies and human approval gates run in Alter, outside the model and MCP client — neither a prompt nor a misbehaving client can bypass them.
Strict per-user isolation (OAuth 2.1): Each hosted access token is bound to one OIDC-verified user (
ALLOWED_USERSallowlist; only token hashes stored in KV).Per-person audit logs: Every read, write, approval, and denial logs the person, agent, tool, and outcome — ready to stream to your SIEM.
Servers
Productivity & Comms: Slack · Gmail · Google Calendar · Google Drive · Notion
Human approvals right in Slack: Pair any server above with
slack-approvalsto send held actions (emails, DMs, PR merges, Stripe refunds) straight to Slack with exact payload previews and Approve / Deny buttons — human approval where your team already works.
Server | Package | Tools | Held for approval |
|
| Sends | |
|
| Posts, comments and reactions | |
|
| Posts, likes and reposts | |
|
| Deletes and moves | |
|
| Channel posts, DMs and edits | |
|
| Event creates, updates and RSVPs | |
|
| Sharing and permission changes | |
|
| Comments, PRs and merges | |
|
| Issue creates, updates and comments | |
|
| Issue creates, updates, comments and transitions | |
|
| Contact, deal and ticket writes | |
|
| Refunds, invoices and customer creates |
Need another provider? You can build your own multi-user MCP server for any of the 130+ providers in Alter — see Build your own MCP server below.
Recommended starting policy & audit
Allow reads. Approve every send. Block deletes. Alter enforces policies per operation family (read, write, send, delete, payment, admin) on its side — a prompt injection or misbehaving client cannot bypass them:
# 1. Require human approval before anything is sent (expires after 24h)
echo '{"effect": "require_approval", "when": {"match": {"families": ["send"]}}, "approval": {"channels": ["email"], "expires_in_seconds": 86400}}' | \
alter policy rules create --app <app-id> --agent <agent-id> --type require_approval --body - --name "Approve every send"
# 2. Block every delete operation outright
echo '{"when": {"family": ["delete"]}, "effect": "deny"}' | \
alter policy rules create --app <app-id> --agent <agent-id> --body - --name "Block deletes"Reads run automatically with no prompt fatigue. Approve held actions in the Alter Wallet or in Slack with slack-approvals. Every call — allowed, held, approved, or denied — is recorded in Alter's per-person audit log.
Quick start (<10 minutes)
Fastest — let your AI client run the setup. Add the Alter onboarding MCP server and ask "Set up the Gmail MCP server from github.com/AlterAIDev/multi-user-mcp-servers, with sends held for my approval":
claude mcp add --transport http alter-onboarding https://mcp.alterauth.com/mcpOr run manually: follow Set up in any package README to get an ALTER_AGENT_API_KEY (need a 5-minute free-tier test IdP? See docs/idp-quickstart.md), then connect locally with npx (works with all 12 @alter-ai/*-mcp packages) or deploy to Cloudflare Workers for your whole team:
claude mcp add gmail --env ALTER_AGENT_API_KEY=<agent key> -- npx -y @alter-ai/gmail-mcpBuild your own MCP server (130+ Alter providers)
These 12 servers are examples of one reusable pattern: an MCP server that holds only an Alter agent key and proxies every call through Alter. You can build a secure, multi-user MCP server for any of the 130+ providers in Alter in minutes.
Option 1 — Clone a server in this repo (includes local stdio + Cloudflare Workers OAuth 2.1)
Pick a provider in Alter from alterauth.com/integrations, add it to your Alter app with your OAuth client and scopes, and create an agent with those scopes.
Copy the closest existing server (
packages/github-mcpfor REST APIs,packages/linear-mcpfor GraphQL):cp -r packages/github-mcp packages/<provider>-mcpPoint the copied package at your provider:
Update
package.json(name,mcpName,bin,description),server.json,wrangler.jsonc, andSERVER_NAMEinsrc/server.ts.Set your Alter provider ID in
src/index.ts(createAlterCaller(..., "<provider>", SERVER_NAME)) andsrc/worker.ts(provider: "<provider>").Leave
src/alter.ts,src/hosted.ts,tests/hosted.test.ts, andtests/tool-rules.test.tsuntouched — they handle zero-token proxying, OAuth 2.1 sign-in, per-user grant isolation, approvals, and directory checks automatically.
Write your tools in
src/server.tsusingcaller.proxy(...)(never handle OAuth tokens directly — Alter injects the signed-in user's token, enforces policy/approvals, and logs the call):const outcome = await caller.proxy({ method: "POST", url: "https://api.example.com/v1/items", json: { title }, tool: "create_item", reason: `Create item: ${title}`, }); if (outcome.kind === "pending") return ok(describePending(outcome, `creating ${title}`));Set all four MCP tool annotations (
readOnlyHint,destructiveHint,idempotentHint,openWorldHint) on every tool, and includecheck_approvalif any tool writes or sends data.Verify: Add your server to the Servers catalog above and run
pnpm install && pnpm typecheck && pnpm test && pnpm build.
Option 2 — Build in your own codebase (TypeScript or Python)
No code from this repository is required. Give your MCP server an ALTER_AGENT_API_KEY and route every provider API call through the Alter SDK (agent.proxyRequest in TypeScript, agent.proxy_request in Python). Follow Build a multi-user server or connect the Alter MCP server to scaffold it with your AI client.
Hosting & Enterprise / Company IdP
Works with any OIDC IdP: Okta, Microsoft Entra ID, Auth0, WorkOS, Clerk, or any standard OIDC provider.
Host the MCP servers and Alter your way: Run Alter Cloud with self-hosted Cloudflare Workers, self-host Alter alongside the MCP servers in your own VPC / on-prem vault, or have us host both for your organization — with company-wide policy and audit streaming to your SIEM.
Deploying for your team? Book a 20-minute architecture review or email founders@alterauth.com.
Docs & contributing
Hosted OAuth 2.1 sign-in & security model — consent flow, trust boundaries, token lifetimes
5-minute Auth0 / Okta IdP quickstart — set up a free-tier IdP for two-user testing
75-second two-user demo script — Alice vs. Bob isolation walkthrough
Contributing & directory rules — shared-file checks, Slack approval renderers, and local dev commands
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP for Google Workspace, Atlassian and Notion: one OAuth, per-user accounts, write access.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Hosted MCP server with managed OAuth for 15+ toolkits: Google Workspace, Fitbit, Oura, Kalshi, etc.
One MCP endpoint for your company's tools, with per-person sign-in, policy and audit.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceA unified MCP server that provides OAuth-enabled integrations for multiple services through a single deployment. Currently supports Slack with 47 tools, with plans to expand to Gmail, Google Calendar, Notion, and 100+ other integrations.6MIT
mcpgateofficial
FlicenseNot gradedqualityBmaintenanceSelf-hosted MCP gateway that connects Claude, ChatGPT, and other AI agents to 20+ enterprise tools (GitLab, Jira, Notion, Google Workspace, Slack, Grafana, …) with OAuth, audit logs, and zero data leaving your infrastructure3-- AlicenseNot gradedqualityBmaintenanceProvides a single MCP server endpoint that lets AI agents connect to many real third-party services through OAuth, with user approvals, activity logs, scoped read/write grants, and one-tap access removal.AGPL 3.0

PrivacyFenceofficial
AlicenseAqualityAmaintenanceOpen-source privacy and approval gateway between AI assistants and your business systems (MCP): human approval, local PII checks and audit for Gmail, Drive, Slack, Salesforce, Jira and more.1842Apache 2.0