Skip to content
MCP server built in · pipe to any agent

Email, calendar, and contacts from your terminal.

Pipe-friendly and headless-first. Give any script or AI agent a real inbox in one command. Free and open source.

Nylas CLI is a free, open-source command-line tool that provides unified access to email, calendar, and contacts across Gmail, Microsoft 365, Exchange, Yahoo, iCloud, and IMAP providers. It includes a built-in MCP server for AI agents, GPG encryption, webhook management, and 250+ commands for scripting and automation.

[ In action ]

The Nylas CLI in action

Pick a topic, read the commands. Every one runs the same in a script, a cron job, or an agent.

List, read, search, send, and draft mail across Gmail, Outlook, Exchange, and IMAP. Add --json to pipe results into jq, grep, or a cron job.

$ nylas email list --unread --limit 3
ID SUBJECT FROM
msg_a1f2 Q4 Planning Doc sarah@team.io
msg_b3c4 Deploy to prod ci@infra.dev
2 messages (2 unread)

Your inbox is one command away.

Install in seconds. Connect five accounts free. No card required.

brew install nylas/nylas-cli/nylas

Then run guided setup

nylas init

Signs you up, creates an app and API key, and connects your email in one flow.

Prefer manual setup? Already have an API key? Log in with nylas auth config.

Full setup guide

[ agent accounts ]

Give your agent its own inbox

A real, managed email address on a Nylas domain — with policies and rules that decide what your agent can act on. No OAuth handshake, no borrowed mailbox.