Skip to main content
Glama

Google Calendar MCP Server

by am2rican5
server.ts915 B
import { CallToolRequestSchema } from "@modelcontextprotocol/sdk/types.js"; import { Server } from "@modelcontextprotocol/sdk/server/index.js"; import { ListToolsRequestSchema } from "@modelcontextprotocol/sdk/types.js"; import { createTools, handleToolCall } from "./tools/index.js"; /** * Create and configure the MCP server */ export function createServer() { // Create MCP server const server = new Server( { name: "Google Calendar Service", version: "0.0.1", }, { capabilities: { tools: {}, resources: { subscribe: true }, }, }, ); // Set up tool listing handler server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: createTools() }; }); // Set up tool call handler server.setRequestHandler(CallToolRequestSchema, async (req) => { const { name, arguments: args } = req.params; return handleToolCall(name, args); }); return server; }

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/am2rican5/mcp-google-calendar'

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