In short
- Each agency's credentials are encrypted with AES-256-GCM under a data key that belongs to that agency alone.
- AI apps get tool results, never a password, token or key. Secrets are entered in the panel, not in chats.
- Every data tool call names a client and is checked against the caller's assignments before any request leaves MCPKeychain.
- Every tool call is recorded with who made it, for which client, with redacted arguments, the outcome and the duration.
- Third-party MCP tools are pinned: a new tool, or a changed description or schema, is held back until an admin approves it, and every server's tools are re-checked at least every 6 hours.
Agencies, clients and people
Every piece of agency data in MCPKeychain carries the agency it belongs to, and the server reads it through helpers that require the caller's agency. Every permission decision is made in one place in the code, so the panel, the MCP endpoint and the playground apply the same rules.
Tokens belong to one agency
When someone connects an AI app, the consent screen shows which agency the app will act for; people in several agencies pick one. The resulting token is bound to that agency, and so is every personal access token. A token for one agency cannot reach another.
The client is checked on every call
Data tools take a client argument. MCPKeychain never trusts an id that comes from the AI: it resolves the client inside the caller's agency and checks their assignment on each call. People who are not assigned get an answer that says so and names who can add them, not data.
Read and write
Every tool is either read or write. Write tools need write permission on that client, or an admin role; write tools on agency-wide connections are for agency admins only. Admins can switch any tool off, per connection. The list of tools an AI sees depends only on the person's permissions, never on earlier calls.
Changes to ad accounts (Google Ads, Meta, LinkedIn) go further. By default they are only previewed: the platform validates the change and nothing is applied. A change is applied only when an agency admin has allowed live changes on that connection, the person has write permission, and they confirm the exact change their AI previewed, within ten minutes. Every applied change is recorded in the activity log and the connection's admins are notified.
Removing access
Permissions are read on every request. Remove someone from a client or from the agency and their AI loses that access on its next call, in every app. Removing someone from the agency also revokes their personal access tokens and AI app sign-ins for it, erases the accounts they connected themselves and stops their sandboxes. If they are invited again later, none of their old tokens work: their AI apps sign in again. Personal access tokens can be revoked at any time; OAuth access tokens issued to AI apps expire after one hour.
The vault
Credentials (OAuth tokens, API keys, service accounts, connection strings) are stored with envelope encryption:
- Each agency has its own random 256-bit data key. It is stored only in wrapped form, encrypted with a key-encryption key that lives in the hosting environment's encrypted settings, not in the database and not in the code.
- Each secret is sealed with AES-256-GCM and bound to its agency, its connection and, for per-person connections, its owner. A sealed value copied to another agency, connection or person fails to decrypt.
- Secrets that belong to the platform itself, such as OAuth client secrets, use a separate key derived from the key-encryption key.
- A credential is decrypted in memory, inside the request that needs it, to make the call your team asked for. The panel shows whether a credential exists, its account and its expiry; it never displays the secret.
- Admins can create connections from their own AI, but the AI only gets a link: credentials are always entered in the panel, never typed into a chat.
Connections can be shared (one credential for everyone assigned) or per person (each employee signs in with their own account, so the vendor's own permissions also apply).
Signing in from AI apps
- AI apps sign in with OAuth 2.1 and PKCE. MCPKeychain supports dynamic client registration and client ID metadata documents, so Claude, ChatGPT, Cursor and Claude Code connect with just the URL.
- Access tokens expire after one hour. The consent screen names the app and the agency before anything is granted.
- Personal access tokens (for scripts and CI) start with
mkc_followed by 40 random characters. Only a SHA-256 hash is stored; the token is shown once. The panel shows the first characters so you can tell tokens apart, and any token can be revoked. - People sign in to the panel with email and password, or with Google.
Third-party servers and SQL
Remote MCP servers
When an admin connects a vendor's MCP server, MCPKeychain records each tool's definition, and only the tool list that admin saw is approved. If the server later changes a tool's description or inputs, or adds a tool, it is not offered to AI apps until an admin reviews and approves it; the connection's admins get a notice. MCPKeychain re-lists every server's tools at least every 6 hours, also on connections in constant use. This protects against tool poisoning and silent changes. It cannot see a change in what an approved tool does behind the same definition, so only connect servers you trust. Tools count as write unless the server marks them read-only, and admins can override that.
Local MCP servers
MCP servers distributed as npm, PyPI or Docker packages run in their own Firecracker microVM (Vercel Sandbox), not on our app servers and not on employees' laptops. Network access from the VM is limited to the hosts the server needs, and where possible credentials are added to outgoing requests at that boundary instead of being handed to the server.
SQL databases
SQL connections run one read-only SELECT per call. Admins choose which tables are visible, hide columns, add row filters, and the service enforces row, size and time limits.
Audit log
Every tool call, from AI apps and from the admin playground, is recorded with:
| Field | What is stored |
|---|---|
| Who | The person who made the call. In the playground, also the person the admin was testing as. |
| Where | The agency, client and connection. |
| What | The tool name and its arguments, redacted (see below). |
| Outcome | OK, error or denied, how long the call took, and for failed calls a short excerpt of the error message (up to 300 characters). |
Before arguments are stored, any field named like a token, secret, password, key, authorization header or connection string is replaced with [REDACTED], and so is any value that looks like a bearer token, a JWT, an API key or a database URL with a password. Tool results are not stored in the audit log. When a call fails, the error message is kept, shortened to 300 characters and with secrets redacted the same way; some services quote part of the request or of the data in their errors. Connection checks keep a similar excerpt of the last error, and alert emails to the connection's admins include it. Admin changes made from an AI app (creating a client, inviting someone, saving a skill) are tool calls, so they are recorded the same way.
What we can and cannot see
MCPKeychain runs on our servers, so here is exactly what passes through them and what is kept.
| Stored by MCPKeychain | Not stored | |
|---|---|---|
| Your team | Names, emails, roles, clients and who is assigned to what. | Passwords in plain text (only hashes). |
| Connections | Non-secret settings (for example a Google Ads customer ID), status and health results. | Credentials in readable form: they are encrypted as described above. |
| Skills | Their full text and version history. | |
| Tool calls | The audit log described above, including a short excerpt of the error message when a call fails. | The data tools return: it passes through to your AI app and is not written to our database. |
| Conversations | Chats in Claude, ChatGPT or Cursor stay with those apps. Playground chats are not saved; we keep token usage only. While an admin chats, the model they picked (Anthropic and OpenAI) receives that chat through Vercel AI Gateway. |
The AI provider your employee uses (Anthropic, OpenAI, Cursor…) receives the tool results and skills their AI asks for, under your agreement with that provider. It never receives credentials.
Where data lives
| Service | Used for |
|---|---|
| Neon Postgres, Frankfurt (eu-central-1) | The database: accounts, agencies, encrypted credentials, skills, audit log. |
| Vercel | The app, the MCP endpoint and the encrypted environment settings that hold the key-encryption key. |
| Vercel Sandbox | Isolated microVMs for local MCP servers. |
| Vercel AI Gateway | Routes admin playground chats to the model the admin picks, from Anthropic and OpenAI (not used for your team's own AI apps). |
| Resend | Transactional email: invitations and connection alerts. |
How personal data is handled, kept and deleted is in the privacy policy.