How to integrate Nylas MCP with Atomic Agent

Connect Atomic Agent to Nylas MCP. Summarize unread emails from this morning, create draft replies to urgent messages, and more using natural language, with authentication handled for you.

Nylas MCP logoNylas MCP
Api Key

Nylas MCP is a regional hosted server exposing typed tools for email, calendar, contacts, and Notetaker workflows. Use it to give agents reliable, typed access to messaging and scheduling data.

38 Tools

Introduction

Atomic Agent is an open-source AI agent that runs on your machine and supports local models through llama.cpp. Connect it to 1,500+ apps through Composio, including Nylas.

This guide uses Atomic Agent's built-in Composio integration. You need Atomic Agent v0.5.6 or later, your own Composio API key, and a Nylas account. See the Atomic Agent documentation for installation instructions.

Also integrate Nylas MCP with

How Atomic Agent connects to Nylas

Atomic Agent connects to Composio's Tool Router over Streamable HTTP MCP. It discovers the tools needed for your request, and Composio handles account authentication.

Execution and account-connection tools follow Atomic Agent's configured approval policy. Review any approval prompt before allowing an action on your connected account.

Connect Nylas to Atomic Agent

  1. Sign up or sign in to the Composio dashboard. Copy your API key.
  2. In Atomic Agent, open the Integrations tab and select Composio. Select API key, press e, paste the key, and press Enter. The tools become available immediately, without a restart.
  3. Ask Atomic Agent to do something in Nylas. It searches Composio for the right tool.
  4. On first use, open the sign-in link returned in the chat. Connect your Nylas account, then return to Atomic Agent to continue.

Headless setup

Add the following line to ~/.atomic-agent/.env, replacing YOUR_COMPOSIO_API_KEY with your key. Start Atomic Agent after saving the file.

bash
COMPOSIO_API_KEY=YOUR_COMPOSIO_API_KEY

What is the Nylas MCP server, and what's possible with it?

The Nylas MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Nylas account. It provides structured and secure access so your agent can perform Nylas operations on your behalf.

Use Nylas from Atomic Agent

With your account connected, ask Atomic Agent to work with Nylas in natural language. You can connect more apps through the same Composio integration as you need them.

Visit the Atomic Agent website or inspect the Atomic Agent source code.

Troubleshooting

Why is my API key rejected?

Copy the key directly from the Composio dashboard. Atomic Agent requires ASCII characters because it sends the key in an HTTP header. Remove any extra characters introduced when copying.

Why are Composio tools unavailable after saving a key?

Check that you use Atomic Agent v0.5.6 or later and that Composio is enabled in your configuration. A "composio": { "enabled": false } setting disables the integration while keeping the saved key on disk.

Does Composio have a free plan?

The Hobby plan includes 100,000 tool calls per month. Composio-managed OAuth apps have a lower included allowance. See Composio pricing for the current limits that apply to your connection.

TOOLS

Supported Tools

Every Nylas MCP action and event your agent gets out of the box.

Availability

Use this for availability, free time, or "when am I free" requests for one or more users.

Confirm send draft

MUST be called before send_draft.

Confirm send message

MUST be called before send_message.

Create draft

Create a draft email.

Create event

Create a calendar event.

Current time

Get current epoch time and ISO 8601 date.

Datetime to epoch

Convert date (YYYY-MM-DD), time (HH:MM:SS), and timezone to Unix timestamp.

Delete draft

Delete a draft.

Delete event

Delete an event.

Download attachment

Download an email attachment by message ID and attachment ID (maximum 10 MiB).

Epoch to datetime

Convert Unix timestamps to human-readable date-time.

Get contact

Get a single contact by ID.

Get event

Get a single event by ID.

Get folder by

Get a folder by ID.

Get grant

Look up grant by email address.

Get message

Get a single email message by ID.

Get notetaker

Get details for one grant-scoped Notetaker bot by notetaker_id.

Get notetaker media

Get fresh media links for one grant-scoped Notetaker bot.

Get notetaker transcript

Get the transcript for one grant-scoped Notetaker bot by notetaker_id.

Get search syntax

Get provider-specific search query syntax for use with search_query_native in list_messages/list_threads.

Get standalone notetaker

Get details for one standalone Notetaker bot by notetaker_id.

Get standalone notetaker media

Get fresh media links for one standalone Notetaker bot.

List calendars

List all calendars.

List contacts

List contacts.

List events

List events in a calendar.

List folders

List email folders/labels.

List messages

List and search email messages.

List notetakers

List grant-scoped Notetaker bots.

List standalone notetakers

List standalone Notetaker bots for the application.

List threads

List and search email threads.

Schedule notetaker

Schedule a grant-scoped Notetaker bot for a future Google Meet, Microsoft Teams, or Zoom meeting.

Schedule standalone notetaker

Schedule a standalone Notetaker bot for a future Google Meet, Microsoft Teams, or Zoom meeting without tying it to a grant.

Send draft

Send an existing draft.

Send message

Send an email immediately.

Send notetaker

Send a grant-scoped Notetaker bot to an active Google Meet, Microsoft Teams, or Zoom meeting.

Send standalone notetaker

Send a standalone Notetaker bot to an active Google Meet, Microsoft Teams, or Zoom meeting without tying it to a grant.

Update draft

Update an existing draft.

Update event

Update an existing event.

FAQ

Frequently asked questions

With a standalone Nylas MCP server, the agents and LLMs can only access a fixed set of Nylas tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Nylas and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. Atomic Agent fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Nylas tools.

Yes, absolutely. You can configure which Nylas scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Nylas data and credentials are handled as safely as possible.

Start with Nylas MCP.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Nylas MCP tool your agent needs.Free to start.

Start building