
Nylas API MCP Server
OfficialProvides documentation, code samples, and tools for integrating the Nylas API (email, calendar, contacts) into AI applications through the Model Context Protocol.
Experimental server that implements the Model Context Protocol (MCP) for Nylas API, providing resources, tools, and prompts to help developers integrate email, calendar, and contacts functionality with AI applications.
What it does
- Access Nylas API documentation and best practices
- Generate authentication code for Nylas integrations
- Get ready-to-use code samples in multiple languages
- Generate endpoint-specific implementation code
- Use pre-built prompts for common integration scenarios
Best for
About Nylas API MCP Server
Nylas API MCP Server is an official MCP server published by nylas-samples that provides AI assistants with tools and capabilities via the Model Context Protocol. Experimental Nylas API MCP Server implementing the Model Context Protocol — resources, tools and prompts for AI email, c It is categorized under developer tools.
How to install
You can install Nylas API MCP Server in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
License
Nylas API MCP Server is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Nylas API MCP Server (Experimental)
Note: This project is experimental and is intended as an exploration of using the Model Context Protocol (MCP) as a guide for Nylas API integrations. It is not official and should be used for learning and experimentation purposes only.
This project implements a Model Context Protocol (MCP) server for the Nylas API. It provides resources, tools, and prompts to help developers learn about and integrate with the Nylas API for email, calendar, and contacts functionality.
What is MCP?
The Model Context Protocol (MCP) is a standard for integrating data, tools, and prompts with AI applications. MCP servers can expose resources, tools, and prompts to AI applications like Claude Desktop, Cursor, and other MCP-compatible applications.
Features
This MCP server provides:
- Documentation Resources: Comprehensive documentation about Nylas API endpoints, authentication, and best practices
- Code Samples: Ready-to-use code samples for various Nylas API operations in multiple languages (Node.js, Python, Java, Ruby, curl)
- Interactive Tools: Tools to generate authentication code and endpoint-specific implementation code
- Prompts: Pre-built prompts for common Nylas integration scenarios
Getting Started
Prerequisites
- Node.js 18+
- npm
Installation
- Clone this repository
- Install dependencies
npm install
- Build the project
npm run build
Running the MCP Server
Using stdio (for direct integration with MCP clients)
npm start
Using HTTP with SSE (for remote connections)
MCP_MODE=http npm start
By default, the HTTP server runs on port 3000. You can change this by setting the PORT environment variable:
MCP_MODE=http PORT=8080 npm start
Using with MCP Clients
Claude Desktop
- Start the MCP server in stdio mode
- In Claude Desktop, go to Settings > Servers
- Click "Add Server"
- Select "Run a local command" and enter the command to start this server:
node /path/to/nylas-api-mcp/dist/index.js
- Give it a name (e.g., "Nylas API")
- After adding, you can use all the Nylas API resources, tools, and prompts in your Claude conversations
Cursor
- Start the MCP server in stdio mode
- In Cursor, add a new MCP server in the settings
- Configure it to use the command:
node /path/to/nylas-api-mcp/dist/index.js
Resources
This MCP server provides the following resources:
- General Documentation: Overview of Nylas API capabilities
- Authentication Guide: How to authenticate with Nylas API
- API Endpoints: Documentation for email, calendar, contacts, and webhook endpoints
- Code Samples: Usage examples in multiple programming languages
Tools
Interactive tools for code generation:
- generate-auth-code: Generates authentication code in your preferred language
- generate-endpoint-code: Generates code for specific API endpoints
- search-api-docs: Search through the Nylas API documentation
Prompts
Pre-built prompts for common scenarios:
- Getting Started: Basic intro to Nylas API
- Authentication Guide: Understanding OAuth flow
- Email/Calendar/Contacts Integration: Feature-specific guidance
- Integration Scenarios: Guidance for specific use cases (email client, calendar booking, etc.)
- SDK Examples: Example code in various languages
- Debugging Guide: Common issues and solutions
Contributing
Contributions are welcome! You can:
- Add more code samples to the
nylas-code-samplesdirectory - Improve documentation resources
- Add support for additional programming languages
- Create new tools and prompts
Disclaimer
This is an experimental project and is not officially supported by Nylas. The information and code provided through this MCP server should be used as a learning resource only. Always refer to the official Nylas documentation for the most accurate and up-to-date information on the Nylas API.
The sample code provided is for educational purposes and may need additional error handling, security considerations, and testing before being used in production environments.
License
MIT
Alternatives
Related Skills
Browse all skillsMaster API documentation with OpenAPI 3.1, AI-powered tools, and modern developer experience practices. Create interactive docs, generate SDKs, and build comprehensive developer portals. Use PROACTIVELY for API documentation or developer portal creation.
Use when working with the OpenAI API (Responses API) or OpenAI platform features (tools, streaming, Realtime API, auth, models, rate limits, MCP) and you need authoritative, up-to-date documentation (schemas, examples, limits, edge cases). Prefer the OpenAI Developer Documentation MCP server tools when available; otherwise guide the user to enable `openaiDeveloperDocs`.
CCXT cryptocurrency exchange library for TypeScript and JavaScript developers (Node.js and browser). Covers both REST API (standard) and WebSocket API (real-time). Helps install CCXT, connect to exchanges, fetch market data, place orders, stream live tickers/orderbooks, handle authentication, and manage errors. Use when working with crypto exchanges in TypeScript/JavaScript projects, trading bots, arbitrage systems, or portfolio management tools. Includes both REST and WebSocket examples.
.NET/C# backend developer for ASP.NET Core APIs with Entity Framework Core. Builds REST APIs, minimal APIs, gRPC services, authentication with Identity/JWT, authorization, database operations, background services, SignalR real-time features. Activates for: .NET, C#, ASP.NET Core, Entity Framework Core, EF Core, .NET Core, minimal API, Web API, gRPC, authentication .NET, Identity, JWT .NET, authorization, LINQ, async/await C#, background service, IHostedService, SignalR, SQL Server, PostgreSQL .NET, dependency injection, middleware .NET.
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.