Skip to content
Skip to main content

Nylas MCP server

Last updated:

The Nylas MCP server gives AI agents tools for email, calendar, contacts, and Notetaker. An agent asks to “list my messages” or “send a Notetaker to this meeting,” and the server makes the Nylas API calls. It works with any MCP-compatible client, including Claude Code, ChatGPT, Cursor, Claude Desktop, and Codex CLI.

The MCP server is for agents that work in mailboxes and calendars. To build, manage, or debug a Nylas integration, use the Nylas CLI.

Run In Postman

You connect a client to the MCP server in one of two ways. Sign in with your Nylas account when you’re using the agent yourself. Use an API key when your backend runs agents for your users, or when nobody is there to sign in.

Sign inAPI key
ForYou, in an AI clientAgents you host for your users, CI, and other unattended agents
AccountsUp to 5 grants you pick when you sign inThe grant, workspace, or application the key’s IAM principal is bound to
AccessWhat you choose when you sign in, capped by your Dashboard roleThe key’s IAM permissions
ExpiresTokens last 15 minutes and refresh until you disconnectWhen the key expires or you revoke it
ToolsAll except the 5 standalone Notetaker toolsAll

Add the server URL for your region with no API key. The first time the client calls the server, it opens the Nylas Dashboard in your browser. You need a Nylas account with at least one connected account (grant). If you don’t have one, follow Get started with the Dashboard.

In the browser:

  1. Sign in, and choose an organization if you belong to more than one. Each sign-in covers one organization.
  2. Pick up to 5 connected accounts.
  3. Choose Read only or Read and write, or open Customize permissions to set email, calendar, contacts, and meeting notes separately.

Your Dashboard role caps the access you can give. Organization owners and admins can also pick an IAM principal to limit the sign-in further.

When you disconnect a client, it can’t refresh its token and loses access within 15 minutes. To change its accounts or access, sign in again from the client.

Pass a Nylas API key as a Bearer token in the Authorization header. For production, use an IAM API key bound to the narrowest grant and permissions the agent needs. Don’t commit keys to version control. Restart the client after you change its config.

If you host an agent for each of your users, give each agent a key that only reaches that user’s grant. For each user, your backend:

  1. Connects the user’s account with Hosted Authentication.
  2. Creates an IAM principal bound to that grant, with only the permissions the agent needs.
  3. Creates an API key for the principal and passes it to the agent’s MCP config.

Keep the Organization-bound key that creates principals in your backend. Manage IAM principals with the API covers each request.

Use the URL for your application’s data residency region. A sign-in only includes grants in that region.

RegionURL
US (default)https://mcp.us.nylas.com
EUhttps://mcp.eu.nylas.com

The MCP server has 38 email, calendar, contacts, and Notetaker tools. The 5 standalone Notetaker tools act on a whole application, so they need an API key.

ToolWhat it doesSign-in
availabilityFind available meeting times across one or more Nylas grantsYes
confirm_send_draftGenerate the confirmation hash required before calling send_draftYes
confirm_send_messageGenerate the confirmation hash required before calling send_messageYes
create_draftCreate a draft email using only the fields the user providedYes
create_eventCreate a calendar eventYes
current_timeGet the current epoch time and ISO 8601 date for a timezoneYes
datetime_to_epochConvert a date, time, and timezone to a Unix timestampYes
delete_draftDelete a draft emailYes
delete_eventDelete a calendar eventYes
download_attachmentDownload an email message attachment with a maximum size of 10 MiBYes
epoch_to_datetimeConvert Unix timestamps to human-readable date and time valuesYes
get_contactGet a single contact by IDYes
get_eventGet a single event by IDYes
get_folder_by_idGet folder or label details by IDYes
get_grantLook up a grant by email addressYes
get_messageGet a single email message by ID, including full body contentYes
get_notetakerGet details for one grant-scoped Notetaker botYes
get_notetaker_mediaGet fresh media links for one grant-scoped Notetaker botYes
get_notetaker_transcriptDownload the transcript content for one grant-scoped Notetaker bot, up to 10 MiBYes
get_search_syntaxGet provider-specific native search syntax for messages and threadsYes
get_standalone_notetakerGet details for one standalone Notetaker botNo
get_standalone_notetaker_mediaGet fresh media links for one standalone Notetaker botNo
list_calendarsList all calendars for a connected accountYes
list_contactsList contacts, with optional filters for email, phone number, source, or groupYes
list_eventsList events in a calendarYes
list_foldersList email folders or labelsYes
list_messagesList and search email messagesYes
list_notetakersList grant-scoped Notetaker botsYes
list_standalone_notetakersList standalone Notetaker bots for the applicationNo
list_threadsList and search email threadsYes
schedule_notetakerSchedule a grant-scoped Notetaker bot for a future meetingYes
schedule_standalone_notetakerSchedule a standalone Notetaker bot for a future meetingNo
send_draftSend a previously created draftYes
send_messageSend an email directlyYes
send_notetakerSend a grant-scoped Notetaker bot to an active meetingYes
send_standalone_notetakerSend a standalone Notetaker bot to an active meetingNo
update_draftUpdate an existing draftYes
update_eventUpdate an existing eventYes

An Organization-bound IAM API key with IAM permissions also gets 10 tools to manage principals and credentials, such as list_iam_principals. These tools aren’t available with a sign-in. An Organization-bound key can’t reach grants, so use a separate connection for email and calendar tools.

Use the MCP server when an agent works in mailboxes, calendars, and meetings. Use the Nylas CLI when you or a coding agent build and run a Nylas integration:

  • Creating applications, API keys, and webhooks
  • Connecting test accounts and checking grants
  • Debugging requests, webhooks, and auth errors

MCP tool results go into the agent’s context, including any secret a tool returns, so the MCP server doesn’t create API keys or webhook secrets. The CLI writes secrets to a file or your OS keychain, where the agent can’t read them.

Nylas IAM checks every MCP request. A sign-in only reaches the grants and access you chose, and an API key only reaches its principal’s binding and permissions.

Each request times out after 90 seconds. Connections are stateless, so clients can retry a request that times out.