Google Contacts MCP Server
A Model Context Protocol (MCP) server that integrates Google Contacts with Claude, enabling contact management directly from your AI assistant.
README
Google Contacts MCP Server
"My two requirements were, interface via MCP to my Google Contacts for ease of adding/updating contacts,and perform some curation on my contact list. I had 750 contacts from all the way back to the early 2000's. These included defunct taxi services, and people I'd never contact again. This MCP server helped me clean it down to 297 relevant contacts in one afternoon." - Chris Spirito
A Model Context Protocol (MCP) server that integrates Google Contacts with Claude, enabling contact management directly from your AI assistant.
Learn by doing: This repository not only provides a working MCP server, but teaches you how to build your own from scratch.
Features
- 🔍 Search contacts by name, email, or phone
- 📋 List all contacts with pagination
- ➕ Create new contacts with full details
- 🗑️ Delete contacts individually
- 📖 Get detailed contact info including addresses and organizations
- 🔐 Secure OAuth 2.0 authentication
Real-World Use Case
This MCP server was built to solve a real problem: contact database cleanup. Over 20 years of professional work, my Google Contacts had accumulated:
- Old conference contacts from events a decade ago
- Defunct service vendors (taxi services, contractors)
- Duplicate entries with formatting issues
- Personal contacts mixed with professional ones
- Contacts with missing or outdated information
Using this MCP server with Claude Code, I:
- Categorized 750 contacts into 8 organized groups
- Deleted 446 obsolete contacts automatically
- Cleaned duplicate and malformed entries
- Reviewed remaining contacts efficiently in Excel
- Reduced my contact database by 60% in a few hours
The result? A clean, manageable contact database of 297 relevant contacts.
Quick Start
Prerequisites
- Node.js 18+ and npm
- A Google Cloud account
- Claude Code (or any MCP-compatible client)
Installation
# Clone the repository
git clone https://github.com/yourusername/google-contacts-mcp.git
cd google-contacts-mcp
# Install dependencies
npm install
# Build the TypeScript code
npm run build
Setup
- Follow the Setup Guide to configure Google Cloud OAuth
- Add to Claude Code's MCP settings (
~/.config/claude-code/mcp_settings.json):
{
"mcpServers": {
"google-contacts": {
"command": "node",
"args": ["/path/to/google-contacts-mcp/dist/index.js"]
}
}
}
- Restart Claude Code and start using Google Contacts tools!
Available Tools
search_contacts- Search for contacts by name, email, or phonelist_contacts- List all contacts with paginationget_contact- Get detailed information about a specific contactcreate_contact- Create a new contactdelete_contact- Delete a contact by resource name
Documentation
- Introduction - Why we built this and what you'll learn
- Setup Guide - Step-by-step Google Cloud and OAuth configuration
- Architecture - How the MCP server works under the hood
- Building Your Own - Tutorial: Create your own MCP server from scratch
- Troubleshooting - Common issues and solutions
Example Usage
Search for a contact
You: "Search for contacts named Sarah"
Claude: [uses search_contacts tool]
Found 2 contacts:
- Sarah Johnson (sarah.johnson@example.com)
- Sarah Martinez (smartinez@techcorp.com)
Create a new contact
You: "Add a contact for Hans Mueller, senior engineer at SwissTech, email h.mueller@swisstech.ch, phone +41 44 123 4567"
Claude: [uses create_contact tool]
Contact created successfully for Hans Mueller.
Delete obsolete contacts
You: "Delete all contacts from the 2015 conference in Berlin"
Claude: [searches, confirms, then uses delete_contact for each]
Deleted 12 contacts from the conference attendee list.
Educational Value
This repository is designed to teach you:
- MCP Protocol Basics - Understanding tool definitions and handlers
- OAuth 2.0 Flow - Implementing secure API authentication
- Google APIs - Working with the People API
- TypeScript - Building type-safe MCP servers
- Real-World Application - Solving actual productivity problems
Perfect for:
- AI/ML engineers learning MCP
- Developers wanting to extend Claude's capabilities
- Anyone building custom AI integrations
- Training courses on AI tool development
Security & Privacy
- OAuth 2.0 - Industry-standard authentication
- Token storage - Secure local token management
- No data collection - All data stays between you and Google
- Minimal scopes - Only requests necessary permissions
- Open source - Audit the code yourself
Contributing
Contributions welcome! Please read our Contributing Guide first.
License
MIT License - see LICENSE file for details.
Acknowledgments
- Built on the Model Context Protocol by Anthropic
- Uses Google's People API
- Inspired by real-world contact management challenges
Author
Chris Spirito
- Hacker, Teacher, Storyteller
- 30+ years in cyber defense and nuclear security
- Visiting Professor at University of Tartu (2014-2024)
- Training: hecke.ai
Ready to get started? Head to the Setup Guide to begin!
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。