CLI + Agents
CLI reference
Validate and find emails from your terminal. Also runs as an MCP server for AI agents.
Install
One command. Installs the binary and updates your PATH.
curl -fsSL https://dl.gtmcli.com/install.sh | sh && source ~/.zshrc
Then login:
gtmcli login
TIP
Or run gtmcli setup after login to auto-configure MCP in Claude Code. No manual JSON editing.
Authentication
Login opens your browser to gtmcli.com where you authorize the CLI. No API key copy-paste.
# Login (opens browser) gtmcli login # Check account gtmcli whoami # Logout gtmcli logout
Credentials stored in ~/.gtmcli/config.json.
Setup
Auto-configure MCP in Claude Code and Claude Desktop.
# Auto-configure MCP for Claude Code gtmcli setup # Check everything is working gtmcli doctor
Validate emails
# Single email gtmcli validate user@company.com # Batch from CSV (auto-detects email column) gtmcli validate --file leads.csv # Output: leads_validated.csv
validEmail exists and accepts mail0.25 creditsinvalidEmail does not existFreecatchallDomain accepts all emailsFreevalid_catchallLikely real on catchall domain0.25 creditsdisposableTemporary or throwaway addressFreeFind emails
# Single lookup gtmcli find --first Tim --last Cook --domain apple.com # Batch from CSV (needs first_name, last_name, domain columns) gtmcli find --file contacts.csv # Output: contacts_found.csv
INFO
Finding costs 1 credit per found result. Not-found results are free.
Check credits
gtmcli credits
MCP server
Run as an MCP server so AI agents can use gtmcli tools directly.
gtmcli mcp
Or auto-configure with gtmcli setup. Manual config:
{
"mcpServers": {
"gtmcli": {
"command": "gtmcli",
"args": ["mcp"]
}
}
}NOTE
See MCP server for the full list of tools and example prompts.
CSV column detection
The CLI auto-detects columns from your CSV headers:
All commands
gtmcli loginSign in via browsergtmcli logoutRemove credentialsgtmcli whoamiShow account infogtmcli setupConfigure MCP for Claude Codegtmcli doctorCheck everything is workinggtmcli validateValidate an email or CSVgtmcli findFind an email by name + domaingtmcli creditsCheck credit balancegtmcli mcpRun as MCP servergtmcli helpShow helpgtmcli versionShow version