API Key security
This page documents recommended practices for storing, rotating, and revoking Cryptohopper MCP API keys. The advice applies to any environment where the MCP is used — local workstations, CI systems, agent deployments, and third-party MCP clients.
What an MCP key grants
A Cryptohopper MCP API key is a bearer token that authenticates requests against a single Cryptohopper account.
| What the key can do | What the key cannot do |
|---|---|
| Read market data (tickers, orderbooks, candles) at the tier's permitted level | Access Cryptohopper bots |
| Query usage and quota for the account | Place trades or modify positions |
| List supported exchanges and pairs | Access the account interface |
| — | Authorise Cryptohopper Trading API calls |
Keys are read-only. A compromised MCP key does not allow an attacker to trade. It does, however, allow quota consumption, which can disrupt legitimate workflows.
See account overview for the relationship between keys, account, and subscription.
Storage
Keys should be treated as secrets. Standard secret-handling practices apply.
Recommended
- Store keys in a dedicated secrets manager (1Password, Bitwarden, AWS Secrets Manager, HashiCorp Vault, or equivalent).
- Read keys from environment variables at runtime. Prefer environment variables over config files committed to source control.
- Scope file permissions: client config files containing keys should be readable only by the owning user.
- Use per-client config files (~/.config/...) rather than system-wide locations.
Not recommended
- Committing keys to git repositories, even in private repositories.
- Pasting keys into chat messages, issue trackers, or support conversations.
- Sharing keys across developers or machines. Create a key per consumer instead.
- Storing keys in plain-text files in cloud-synced folders (e.g. Dropbox, iCloud Drive) without additional encryption.
If a key is accidentally committed to git, revoke it immediately and generate a new one. Git history is durable and assumed compromised.
Rotation
Rotating keys — revoking an old key and issuing a new one — is the defensive mechanism that limits the blast radius of a compromise.
Suggested cadence
| Context | Rotation cadence |
|---|---|
| Personal workstation, local MCP client | Every 90 days |
| Scheduled workflow in CI / cloud | Every 60 days |
| Shared across multiple environments | Every 30 days |
| Key with any history of exposure (committed to repo, pasted in chat, etc.) | Immediately, then every 30 days |
The tier's key allowance determines how many keys can exist simultaneously. See subscription tiers.