> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindsdb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# The FROM_ENV() Function

MindsDB provides the `FROM_ENV()` function that lets users pull values from the environment variables into MindsDB.

## Usage

Here is how to use the `FROM_ENV()` function.

```sql theme={null}
FROM_ENV("MDB_MY_ENV_VAR")
```

Note that due to security concerns, **only the environment variables with name starting with `MDB_` can be extracted with the `from_env()` function**.

Learn more about [MindsDB variables here](/mindsdb_sql/functions/variables).
