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.
Sign in or use an API key
Section titled “Sign in or use an API key”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 in | API key | |
|---|---|---|
| For | You, in an AI client | Agents you host for your users, CI, and other unattended agents |
| Accounts | Up to 5 grants you pick when you sign in | The grant, workspace, or application the key’s IAM principal is bound to |
| Access | What you choose when you sign in, capped by your Dashboard role | The key’s IAM permissions |
| Expires | Tokens last 15 minutes and refresh until you disconnect | When the key expires or you revoke it |
| Tools | All except the 5 standalone Notetaker tools | All |
Sign in with your Nylas account
Section titled “Sign in with your Nylas account”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.
claude mcp add --transport http nylas https://mcp.us.nylas.com// ~/.cursor/mcp.json{ "mcpServers": { "nylas": { "url": "https://mcp.us.nylas.com" } }}// ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)// %APPDATA%\Claude\claude_desktop_config.json (Windows){ "mcpServers": { "Nylas": { "command": "npx", "args": ["mcp-remote", "https://mcp.us.nylas.com", "--transport", "http-first"] } }}codex mcp add nylas --url https://mcp.us.nylas.comcodex mcp login nylasIn the browser:
- Sign in, and choose an organization if you belong to more than one. Each sign-in covers one organization.
- Pick up to 5 connected accounts.
- 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.
Connect with an API key
Section titled “Connect with an API key”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.
claude mcp add --transport http nylas https://mcp.us.nylas.com \ --header "Authorization: Bearer <NYLAS_API_KEY>"// ~/.cursor/mcp.json{ "mcpServers": { "nylas": { "url": "https://mcp.us.nylas.com", "headers": { "Authorization": "Bearer <NYLAS_API_KEY>" } } }}// ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)// %APPDATA%\Claude\claude_desktop_config.json (Windows){ "mcpServers": { "Nylas": { "command": "npx", "args": [ "mcp-remote", "https://mcp.us.nylas.com", "--transport", "http-first", "--header", "Authorization: Bearer <NYLAS_API_KEY>" ] } }}# ~/.codex/config.toml (global) or .codex/config.toml (project)# Load NYLAS_API_KEY from secure storage into the client's environment.
[mcp_servers.nylas]url = "https://mcp.us.nylas.com"bearer_token_env_var = "NYLAS_API_KEY"Give each user’s agent its own key
Section titled “Give each user’s agent its own key”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:
- Connects the user’s account with Hosted Authentication.
- Creates an IAM principal bound to that grant, with only the permissions the agent needs.
- 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.
MCP server URLs
Section titled “MCP server URLs”Use the URL for your application’s data residency region. A sign-in only includes grants in that region.
| Region | URL |
|---|---|
| US (default) | https://mcp.us.nylas.com |
| EU | https://mcp.eu.nylas.com |
Available tools
Section titled “Available tools”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.
| Tool | What it does | Sign-in |
|---|---|---|
availability | Find available meeting times across one or more Nylas grants | Yes |
confirm_send_draft | Generate the confirmation hash required before calling send_draft | Yes |
confirm_send_message | Generate the confirmation hash required before calling send_message | Yes |
create_draft | Create a draft email using only the fields the user provided | Yes |
create_event | Create a calendar event | Yes |
current_time | Get the current epoch time and ISO 8601 date for a timezone | Yes |
datetime_to_epoch | Convert a date, time, and timezone to a Unix timestamp | Yes |
delete_draft | Delete a draft email | Yes |
delete_event | Delete a calendar event | Yes |
download_attachment | Download an email message attachment with a maximum size of 10 MiB | Yes |
epoch_to_datetime | Convert Unix timestamps to human-readable date and time values | Yes |
get_contact | Get a single contact by ID | Yes |
get_event | Get a single event by ID | Yes |
get_folder_by_id | Get folder or label details by ID | Yes |
get_grant | Look up a grant by email address | Yes |
get_message | Get a single email message by ID, including full body content | Yes |
get_notetaker | Get details for one grant-scoped Notetaker bot | Yes |
get_notetaker_media | Get fresh media links for one grant-scoped Notetaker bot | Yes |
get_notetaker_transcript | Download the transcript content for one grant-scoped Notetaker bot, up to 10 MiB | Yes |
get_search_syntax | Get provider-specific native search syntax for messages and threads | Yes |
get_standalone_notetaker | Get details for one standalone Notetaker bot | No |
get_standalone_notetaker_media | Get fresh media links for one standalone Notetaker bot | No |
list_calendars | List all calendars for a connected account | Yes |
list_contacts | List contacts, with optional filters for email, phone number, source, or group | Yes |
list_events | List events in a calendar | Yes |
list_folders | List email folders or labels | Yes |
list_messages | List and search email messages | Yes |
list_notetakers | List grant-scoped Notetaker bots | Yes |
list_standalone_notetakers | List standalone Notetaker bots for the application | No |
list_threads | List and search email threads | Yes |
schedule_notetaker | Schedule a grant-scoped Notetaker bot for a future meeting | Yes |
schedule_standalone_notetaker | Schedule a standalone Notetaker bot for a future meeting | No |
send_draft | Send a previously created draft | Yes |
send_message | Send an email directly | Yes |
send_notetaker | Send a grant-scoped Notetaker bot to an active meeting | Yes |
send_standalone_notetaker | Send a standalone Notetaker bot to an active meeting | No |
update_draft | Update an existing draft | Yes |
update_event | Update an existing event | Yes |
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.
When to use the Nylas CLI instead
Section titled “When to use the Nylas CLI instead”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.
Security
Section titled “Security”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.
Timeouts
Section titled “Timeouts”Each request times out after 90 seconds. Connections are stateless, so clients can retry a request that times out.
What’s next
Section titled “What’s next”- Give your agent email access: CLI commands for email
- Give your agent calendar access: CLI commands for calendar
- Nylas IAM: bind API keys to grants and permissions
- Authentication: how grants and OAuth work
- API reference: full endpoint documentation