MCP Server Boilerplate
Provides TypeScript support with proper type definitions for building and customizing the MCP server
Uses Zod schemas for parameter validation in tools, resources, and prompts
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Server Boilerplate get directions from Times Square to Central Park"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Google MCP Server
A comprehensive Model Context Protocol (MCP) server that provides access to Google services including Maps, Finance, Flights, Gmail, and Calendar through a unified API.
Features
πΊοΈ Google Maps & Places
Geocoding: Convert addresses to coordinates and vice versa
Places Search: Find businesses, landmarks, and points of interest
Directions: Get turn-by-turn directions between locations
Distance Matrix: Calculate travel time and distance between multiple points
Place Details: Get detailed information about specific places
π Google Finance
Stock Search: Search for stocks, indices, mutual funds, currencies, and futures
Market Data: Get current prices, movement, and market information
Financial News: Access top financial news related to securities
βοΈ Google Flights
Airport Search: Find flights and airport information
Flight Pricing: Get flight prices and insights
Multi-city Trips: Support for complex multi-destination journeys
π§ Gmail
Send Emails: Send emails with subject, body, CC, and BCC
Read Emails: List and search emails with Gmail query syntax
Email Details: Get full email content by message ID
Label Management: Access Gmail labels and organization
π Google Calendar
Event Management: Create, read, update, and delete calendar events
Multi-Calendar Support: Work with multiple calendars (Personal, Work, Travel)
Event Listing: List events with filters and date ranges
Calendar Management: List and access different calendars
Related MCP server: MCP Template
Installation
Prerequisites
Node.js 18+
pnpm (recommended) or npm
Setup
Clone the repository:
git clone <repository-url> cd google-mcpInstall dependencies:
pnpm installBuild the project:
pnpm run build
MCP Client Integration
Install the server to your preferred MCP clients:
# Install to all MCP clients
pnpm run install-server
# Install to specific clients
pnpm run install-desktop # Claude Desktop
pnpm run install-cursor # Cursor IDE
pnpm run install-code # Claude Code
pnpm run install-mcp # Local .mcp.json onlyConfiguration
Environment Variables
Create a .env.local file in the project root with your Google API credentials:
GOOGLE_MAPS_API_KEY=your_google_maps_api_key
GOOGLE_CLIENT_ID=your_oauth_client_id
GOOGLE_CLIENT_SECRET=your_oauth_client_secret
GOOGLE_REFRESH_TOKEN=your_refresh_tokenGoogle API Setup
Google Maps API: Enable Maps, Places, and Directions APIs in Google Cloud Console
Gmail/Calendar: Set up OAuth 2.0 credentials and obtain refresh tokens
Finance/Flights: Uses Google's public APIs (no additional setup required)
Usage
Running the Server
# Start the compiled server
pnpm start
# Or run in development mode
node dist/index.jsAvailable Tools
Maps & Places
geocode- Convert address to coordinatesreverse-geocode- Convert coordinates to addressplaces-search- Search for places by text queryget-directions- Get directions between locationsdistance-matrix- Calculate distances between multiple pointsplace-details- Get detailed place information
Finance
finance-search- Search stocks, currencies, and financial instruments
Flights
airports-search- Search flights and airport information
Gmail
gmail-send-email- Send emailsgmail-read-emails- List/search emailsgmail-get-email- Get specific email by IDgmail-get-labels- List Gmail labels
Calendar
calendar-create-event- Create new eventscalendar-list-events- List events with filterscalendar-get-event- Get specific event detailscalendar-update-event- Update existing eventscalendar-delete-event- Delete eventscalendar-list-calendars- List available calendars
Development
Project Structure
src/
βββ index.ts # Main MCP server implementation
βββ maps.ts # Google Maps & Places functionality
βββ finance.ts # Google Finance integration
βββ airports.ts # Google Flights integration
βββ gmail.ts # Gmail API integration
βββ calendar.ts # Google Calendar integration
scripts/
βββ update-config.js # MCP client configuration installer
dist/ # Compiled JavaScript outputKey Technologies
MCP SDK:
@modelcontextprotocol/sdkfor protocol implementationSchema Validation: Zod for runtime type checking
Google APIs: Official Google client libraries
TypeScript: Full type safety with ES2022 target
Transport: StdioServerTransport for MCP communication
Development Workflow
Make changes to TypeScript files in
src/Build:
pnpm run buildTest:
pnpm startInstall to clients:
pnpm run install-serverRestart MCP clients to load changes
Adding New Tools
Define Zod schema for parameters
Implement handler function
Register tool in
src/index.tsusingserver.tool()Build and reinstall to test
Architecture
This MCP server follows these design patterns:
Modular Design: Each Google service is in its own module
Schema Validation: All parameters validated with Zod schemas
Error Handling: Comprehensive error handling with meaningful messages
Type Safety: Full TypeScript coverage with strict mode
Transport Agnostic: Uses MCP's standard transport layer
License
[License information]
Contributing
[Contribution guidelines]
Available Tools
18 toolsairports-searchC
Search for airport and flight information using Google Flights
Inputs: departure_id (required), arrival_id (required), outbound_date, return_date, +8 more.
calendar-create-eventC
Create a new calendar event. Current time: 1/3/2026, 9:03:13 AM
Inputs: summary (required), startDateTime (required), endDateTime (required), description, +4 more.
calendar-delete-eventC
Delete a calendar event
Inputs: eventId (required), calendarId.
calendar-get-eventC
Get a specific calendar event by ID
Inputs: eventId (required), calendarId.
calendar-list-calendarsB
List all available calendars
Inputs: maxResults.
calendar-list-eventsC
List calendar events with optional filters
Inputs: calendarId, timeMin, timeMax, maxResults, +2 more.
calendar-update-eventC
Update an existing calendar event
Inputs: eventId (required), calendarId, summary, description, +4 more.
distance-matrixC
Calculate travel distance and time between multiple origins and destinations
Inputs: origins (required), destinations (required), mode.
finance-searchA
Search for stocks, indices, mutual funds, currencies, and futures using Google Finance. Use format 'SYMBOL:EXCHANGE'. Stocks: 'AAPL:NASDAQ', 'TSLA:NASDAQ'. ETFs/Index funds: 'SPY:NYSEARCA', 'VTI:NYSEARCA', 'QQQ:NASDAQ', 'VOO:NYSEARCA'. Crypto: 'BTC-USD', 'ETH-USD'. Note: Query 'SPY' (no exchange) returns market overview with S&P 500 related ETFs.
Inputs: q (required), window, async, include_markets, +5 more.
geocodeC
Convert an address to coordinates
Inputs: address (required).
get-directionsC
Get directions between two locations
Inputs: origin (required), destination (required), mode.
gmail-get-emailC
Get a specific email by message ID
Inputs: messageId (required).
gmail-get-labelsB
Get all Gmail labels
Inputs: no named parameters.
gmail-read-emailsC
Read/list emails from Gmail with optional search query
Inputs: query, maxResults, labelIds.
gmail-send-emailC
Send an email using Gmail
Inputs: to (required), subject (required), body (required), cc, +1 more.
place-detailsC
Get detailed information about a specific place
Inputs: place_id (required).
places-searchC
Search for places using text query
Inputs: query (required), location, radius.
reverse-geocodeC
Convert coordinates to an address
Inputs: latitude (required), longitude (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 18 tools
Most tools have distinct purposes, but some overlap exists between geocode/reverse-geocode and place-details/places-search, which could cause confusion in spatial queries. The calendar and Gmail tools are clearly separated by domain, and airports-search, distance-matrix, finance-search, and get-directions are well-defined.
Tools follow a consistent verb_noun or noun-verb pattern with clear prefixes (e.g., calendar-, gmail-, place-), but minor deviations like 'airports-search' (noun-verb) and 'finance-search' (noun-verb) break the verb-first convention used in others like 'geocode' and 'get-directions'. Overall, naming is predictable and readable.
With 18 tools, the count is slightly high but reasonable for a boilerplate server covering multiple domains (calendar, Gmail, geolocation, finance, travel). It provides a broad utility set without being overly bloated, though some tools like airports-search and finance-search might feel less integrated.
The server offers good coverage across domains: calendar tools provide full CRUD, Gmail tools cover read/send/labels, and geolocation tools handle geocoding, places, and directions. Minor gaps include no update/delete for Gmail emails and limited financial data beyond search, but core workflows are well-supported.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoβ¦
A Model Context Protocol server for Wix AI tools
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
The Telnyx MCP server is an official implementation of the Model Context Protocol that enables AI clients (like Claude Desktop, Cursor, and OpenAI Agents) to interact with Telnyx's telephony, messaging, and AI assistant APIs. It provides comprehensive capabilities including making and managing phone calls, sending SMS/MMS messages, purchasing and configuring phone numbers, creating AI assistants with custom instructions, managing cloud storage buckets, scraping and embedding website content, and handling integration secrets. The server exists as both a local implementation and a remotely hosted version, allowing developers to integrate real-world communication infrastructure directly into AI applications.
Related MCP Servers
- AlicenseCqualityDmaintenanceA starter template for building Model Context Protocol servers that can be integrated with Cursor or Claude Desktop, allowing developers to create custom tools and extensions for AI assistants.114ISC
- AlicenseAqualityDmaintenanceA template for building Model Context Protocol servers that allow AI assistants to interact with custom data and services through queryable resources and specialized tools.6MIT
- FlicenseCqualityDmaintenanceA starter template for building Model Context Protocol servers that integrate with AI assistants like Claude and Cursor, providing custom tools, resource providers, and prompt templates.2-
- FlicenseCqualityDmaintenanceA starter template for building Model Context Protocol servers that integrate with AI assistants like Claude and Cursor, providing custom tools, resource providers, and prompt templates.2-