Google Calendar Connector
OAuth-connected Google Calendar listing, event lookup, availability, and approved scheduling.
Credential setup
oauth2Request calendar.readonly, adding calendar.events only when event creation is enabled.
Setup docs: https://console.cloud.google.com/apis/credentials
After adding this connector, attach the credential on the server page, then run astrail tools list.
Hosted MCP endpoint
/api/mcp/preset-google-calendarPrivate servers require an Astrail API key in the Authorization header.
MCP client snippets
ConnectClaude Desktop config
{
"mcpServers": {
"google-calendar-connector": {
"url": "/api/mcp/preset-google-calendar"
}
}
}cURL initialize
curl -sS -X POST "/api/mcp/preset-google-calendar" \
-H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}'cURL tools/list
curl -sS -X POST "/api/mcp/preset-google-calendar" \
-H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'cURL tools/call
curl -sS -X POST "/api/mcp/preset-google-calendar" \
-H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"calendar_list_calendars","arguments":{"maxResults":"example","pageToken":"example"}}}'Runtime behavior
healthynot_checkedsafe_rest_executionnot recordednot recordednot recordednonestructured fallbackstandardauth_required / oauth_requiredmapping_requiredAstrail does not evaluate generated TypeScript inside Next.js. Hosted calls are routed through stored tool metadata and endpoint maps.
Tools
4calendar_list_calendarsList Google calendars available to the connected account.
calendar_list_eventsList Google Calendar events for a time range.
calendar_find_availabilityQuery free/busy information across calendars.
calendar_create_eventCreate a Google Calendar event after approval.
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { z } from "zod";
const server = new McpServer({ name: "Google Calendar Connector", version: "1.0.0" });
// Curated Astrail connector for: calendar_list_calendars, calendar_list_events, calendar_find_availability, calendar_create_event.
// The hosted endpoint executes its verified deterministic endpoint map. Attach a least-privilege provider credential before calling private tools.
server.tool("connector_status", "Confirm this curated connector template is installed.", z.object({}), async () => ({
content: [{ type: "text", text: "Connector installed. Attach provider credentials to enable hosted API calls." }],
}));
const transport = new StdioServerTransport();
await server.connect(transport);