# Codex + Pear MCP guide

Use Pear with Codex CLI by adding the hosted MCP server with an environment-backed Bearer token.

```bash
export PEAR_API_KEY="YOUR_API_KEY"
codex mcp add pear --url "https://pearmcp.com/api/mcp" --bearer-token-env-var PEAR_API_KEY
codex mcp list
```

## Use cases

- Ask Codex to create release follow-up reminders while it updates docs.
- Ask Codex to check your calendar before scheduling a migration or customer call.
- Ask Codex to search recent mail before editing integration code or documentation.

Keep `PEAR_API_KEY` in your shell environment rather than hardcoding the token into config.

