Back to MCP directory
publicPublicdnsLocal runtime

calendar-mcp-server

一个用于从Google日历获取日程列表的MCP服务器

article

README

🚀 日历-MCP-服务器

这是一个从Google日历获取约会列表的MCP服务器,能帮助用户便捷地从Google日历获取相关信息。

🚀 快速开始

✨ 准备工作

创建OAuth2.0客户端并准备用于身份验证的JSON文件

请在“桌面应用”下创建一个OAuth 2.0客户端。详细信息请参考此处

创建客户端后,请获取以下格式的身份验证JSON文件,并将redirect_uris更改为["http://localhost:3000/callback"],然后以credentials.json为文件名保存到根目录。

{
  "installed": {
    "client_id": "hogehoge",
    ...
    "redirect_uris": ["http://localhost:3000/callback"]
  }
}

配置Claude Desktop

请编辑Claude Desktop的claude_desktop_config.json,如下所示:

{
    "mcpServers": {
        "calendar": {
          "command": "npx",
          "args": ["ts-node",
              "--project",
            "/<path to>/mcp-calendar-server/tsconfig.json",
          "/<path to>/mcp-calendar-server/src/index.ts"]
        }
      }
}

⚠️ 重要提示

  • 请将/<path to>/mcp-calendar-server/...替换为实际的文件路径。
  • 确保Claude Desktop已正确配置,以便能够找到并运行MCP服务器。
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client