In typo3 we can add meta title,meta description and meta keyword as follows,

metatitle

We can access these meta title, meta description and meta keyword within our custom template via typoscript (add the following typoscript in template setup) as follows,

We can access these values within the custom template like follows,

Also we can access these values within the template like,