MCP secrets management where the agent never gets the key.
Your API keys and OAuth tokens live in an encrypted vault, not in mcp.json, env vars or the chat. Apitell adds the right credential at the last hop, for one call, to one host. It is credential brokering for AI agents: like a password manager, except the agent never gets the password.
# before: a live key on every laptop
"stripe": {
"command": "./stripe-server",
"env": { "STRIPE_API_KEY": "sk_live_…" }
}
# after: one URL, no key anywhere
"apitell": { "url": "https://mcp.apitell.com/mcp" }
> ai_discover
stripe connected · key in the vault
Two keys. The agent only ever holds one.
Your agent signs in to Apitell. Apitell signs in to your APIs. The agent’s key is checked and stripped at the edge; the API’s key comes out of the vault for one call, to one host. They never meet.
Nothing to commit by mistake, nothing to copy between laptops, nothing for another process on the machine to read.
The key is never in the model’s context, so a prompt injection cannot exfiltrate it. The model sees stripe · connected.
A credential goes to the host it was stored for. A tool description naming another host is refused.
Five rules for every secret.
Bound to one host
A credential belongs to one connector: one account at one API. It is sent to that API’s host and to no other.
Identity first
It is added only for a request whose sign-in is live and whose user may use that connector. No identity, nothing added.
Held briefly
AES-256 encrypted in a dedicated vault. Decrypted for the call, kept in memory briefly at most, never written to a log.
Never read back
No API, no console screen and no tool returns the secret once it is stored. You can replace it; nobody can read it.
Yours to revoke
Disconnect a client, remove a member or delete a connector, and the next call is refused. Deleting a connector revokes its grant at the provider.
API keys, tokens and OAuth — each kept the same way.
API keys, bearer tokens, basic auth
Paste the credential once in the console. From then on it is a connector name to every agent and every teammate.
OAuth 2.0 that renews itself
Sign in with the provider once. Tokens refresh on their own; if a provider refuses a refresh, the connector’s owner gets an email to reconnect.
Bring your own OAuth app
Use your own OAuth app registration for a provider, so the grant belongs to your app and you control its scopes.
Private or shared
A private connector is yours alone. A shared connector serves the whole workspace — teammates use the API without ever seeing the key.
Sharing in teams →One connector per account
Connect a test and a live account separately, and give each client only the connectors it needs at sign-in.
Any HTTP API
The same vault works for popular APIs and for your own API that describes itself at /ai.
Where should an AI agent’s API key live?
| Apitell | Keys in mcp.json or env vars | |
|---|---|---|
| Where the key is | In an encrypted vault, one per connector | In plain text on every laptop that runs the agent |
| Who can read it | Nobody — no API or tool returns it | The user, other processes, and anything the agent can read from disk |
| Where it can go | To the one host it was stored for | Wherever the server’s code sends it |
| OAuth | Signs in once, renews itself | Tokens to refresh by hand, per client |
| Sharing | Shared connectors — teammates never see the key | The key is copied into chats and configs |
| Offboarding | Remove the member; the next call is refused | Rotate the key everywhere it was pasted |
Step by step: how to keep API keys out of mcp.json and a Claude custom connector without pasting an API key.
A key in a vault is the start.
MCP secrets and credentials.
How do I keep API keys out of mcp.json?
Replace the servers and their keys with one entry: https://mcp.apitell.com/mcp. The client signs in with OAuth, and the API keys go into the Apitell vault. See the guide.
Can the AI agent read my API key?
No. The agent holds an Apitell sign-in, not the key. The key is added at the last hop and no API or tool returns it. The model only sees the connector’s name.
How are MCP credentials stored?
AES-256 encrypted in a dedicated vault, bound to one connector and one host, and never logged. Stored in your workspace’s region, EU or US; see security.
What happens when an OAuth token expires?
It renews itself. If the provider refuses, the connector’s owner is emailed to reconnect, and calls to that connector fail until it is reconnected.
Can I use my own OAuth app?
Yes. Bring your own OAuth app registration for a provider and Apitell uses it for that connector’s sign-in and renewals.
How do I revoke an agent's access?
Disconnect the client under Connected apps, remove the member, or delete the connector. The next call is refused; deleting a connector also revokes its grant at the provider.
Take the keys out of your configs.
Free to start. Put one API in the vault and see the agent use it without the key.