Environment variable
The server reads your API key from theALPHACAST_API_KEY environment variable at startup. You set this once in your client’s MCP configuration:
The key is the same raw API key you use for the REST API (where it goes as the HTTP Basic Auth username). Both authenticate as the same Alphacast account.
Permissions
The MCP server inherits whatever permissions the API key has on the underlying account:| Account permission | What MCP can do |
|---|---|
| Read on a repository | List, search, and download datasets in that repository. |
| Write on a repository | All Read operations. (Dataset and repository creation are intentionally not exposed via MCP.) |
| Owner / Admin on a repository | Same as Write. Repository and dataset deletion are intentionally not exposed. |
403 Forbidden, the API key does not have the required permission on the target repository. Generate a new key under an account with the right access, or have the repository owner grant you write access.
Where to manage your key
- View, create, and revoke keys: alphacast.io/settings/api-keys.
- Reference for the same key in the REST API: Authentication.
- Rotate immediately if a key was exposed; rotation invalidates the previous value.