faostat_setup
Authenticate your FAOSTAT account to enable all other tools. Credentials are validated and stored securely for automatic use across sessions.
Instructions
Configure FAOSTAT credentials — call this once to authenticate. After setup, all other tools work automatically across sessions without any manual config file editing.
The tool validates your credentials against the FAOSTAT API before saving, then stores them securely for future use:
macOS / Windows: stored in the system keychain (if keyring package is installed)
Linux / Docker: stored in ~/.config/faostat-mcp/credentials.json (mode 600)
You can register for a free FAOSTAT account at https://www.fao.org/faostat/
Args: username: Your FAOSTAT account email address. password: Your FAOSTAT account password.
Returns confirmation of where credentials were saved, or an error with a clear message if authentication failed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | Yes | ||
| password | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |