Skip to main content
Glama

Nylas API MCP Server

Official

Nylas API MCP 服务器(实验性)

注意:本项目为实验性质,旨在探索如何使用模型上下文协议 (MCP) 作为 Nylas API 集成指南。它并非官方版本,仅供学习和实验之用。

该项目为 Nylas API 实现了一个模型上下文协议 (MCP) 服务器。它提供了资源、工具和提示,帮助开发者了解并集成 Nylas API 的电子邮件、日历和联系人功能。

什么是 MCP?

模型上下文协议 (MCP)是用于将数据、工具和提示与 AI 应用程序集成的标准。MCP 服务器可以向Claude DesktopCursor和其他兼容 MCP 的应用程序等 AI 应用程序公开资源、工具和提示。

特征

该 MCP 服务器提供:

  • 文档资源:有关 Nylas API 端点、身份验证和最佳实践的综合文档
  • 代码示例:多种语言(Node.js、Python、Java、Ruby、curl)的各种 Nylas API 操作的现成代码示例
  • 交互式工具:生成身份验证代码和特定于端点的实现代码的工具
  • 提示:针对常见 Nylas 集成场景的预建提示

截图于 2025-03-16 下午 4:43:38

入门

先决条件

  • Node.js 18+
  • npm

安装

  1. 克隆此存储库
  2. 安装依赖项
npm install
  1. 构建项目
npm run build

运行 MCP 服务器

使用 stdio(用于与 MCP 客户端直接集成)
npm start
使用带有 SSE 的 HTTP(用于远程连接)
MCP_MODE=http npm start

默认情况下,HTTP 服务器在端口 3000 上运行。您可以通过设置PORT环境变量来更改此设置:

MCP_MODE=http PORT=8080 npm start

与 MCP 客户端一起使用

克劳德桌面

  1. 以 stdio 模式启动 MCP 服务器
  2. 在 Claude Desktop 中,转到“设置”>“服务器”
  3. 点击“添加服务器”
  4. 选择“运行本地命令”,输入启动此服务器的命令:
node /path/to/nylas-api-mcp/dist/index.js
  1. 给它起一个名字(例如,“Nylas API”)
  2. 添加后,您可以在 Claude 对话中使用所有 Nylas API 资源、工具和提示

光标

  1. 以 stdio 模式启动 MCP 服务器
  2. 在 Cursor 的设置中添加新的 MCP 服务器
  3. 配置它使用以下命令:
node /path/to/nylas-api-mcp/dist/index.js

资源

该 MCP 服务器提供以下资源:

  • 通用文档:Nylas API 功能概述
  • 身份验证指南:如何使用 Nylas API 进行身份验证
  • API 端点:电子邮件、日历、联系人和 webhook 端点的文档
  • 代码示例:多种编程语言的使用示例

工具

用于代码生成的交互式工具:

  • generate-auth-code :以您首选的语言生成身份验证代码
  • generate-endpoint-code :为特定的 API 端点生成代码
  • search-api-docs :搜索 Nylas API 文档

提示

针对常见场景的预建提示:

  • 入门:Nylas API 基本介绍
  • 身份验证指南:了解 OAuth 流程
  • 电子邮件/日历/联系人集成:特定功能指导
  • 集成场景:特定用例的指导(电子邮件客户端、日历预订等)
  • SDK 示例:各种语言的示例代码
  • 调试指南:常见问题及解决方案

贡献

欢迎贡献!您可以:

  1. nylas-code-samples目录添加更多代码示例
  2. 完善文献资源
  3. 添加对其他编程语言的支持
  4. 创建新的工具和提示

免责声明

这是一个实验性项目,并未获得 Nylas 的官方支持。通过此 MCP 服务器提供的信息和代码仅供学习参考。请务必参考Nylas 官方文档,以获取有关 Nylas API 的最准确和最新的信息。

提供的示例代码仅用于教育目的,在用于生产环境之前可能需要额外的错误处理、安全考虑和测试。

执照

麻省理工学院

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

为 Nylas API 实现模型上下文协议 (MCP) 的实验服务器,提供资源、工具和提示,帮助开发人员将电子邮件、日历和联系人功能与 AI 应用程序集成。

  1. 什么是 MCP?
    1. 特征
      1. 入门
        1. 先决条件
        2. 安装
        3. 运行 MCP 服务器
      2. 与 MCP 客户端一起使用
        1. 克劳德桌面
        2. 光标
      3. 资源
        1. 工具
          1. 提示
            1. 贡献
              1. 免责声明
                1. 执照

                  Related MCP Servers

                  • -
                    security
                    A
                    license
                    -
                    quality
                    MCP Server simplifies the implementation of the Model Context Protocol by providing a user-friendly API to create custom tools and manage server workflows efficiently.
                    Last updated -
                    4
                    3
                    TypeScript
                    MIT License
                  • -
                    security
                    A
                    license
                    -
                    quality
                    A Model Context Protocol (MCP) server implementation for the OpenLedger API. This server provides structured context to AI models according to the MCP specification.
                    Last updated -
                    8
                    TypeScript
                    Apache 2.0
                  • -
                    security
                    A
                    license
                    -
                    quality
                    A Model Context Protocol server that provides seamless interaction with Workato's API through custom AI tools, enabling management of recipes, connections, connectors, folders, and activity logs.
                    Last updated -
                    TypeScript
                    MIT License
                    • Apple
                    • Linux
                  • -
                    security
                    F
                    license
                    -
                    quality
                    A Model Context Protocol server that provides a comprehensive interface for interacting with the ConnectWise Manage API, simplifying API discovery, execution, and management for both developers and AI assistants.
                    Last updated -
                    46
                    2
                    Python
                    • Linux
                    • Apple

                  View all related MCP servers

                  MCP directory API

                  We provide all the information about MCP servers via our MCP API.

                  curl -X GET 'https://glama.ai/api/mcp/v1/servers/nylas-samples/nylas-api-mcp'

                  If you have feedback or need assistance with the MCP directory API, please join our Discord server