Google Contacts

io.github.domdomegg由 GitHub 账号 domdomegg 发布v1.3.0更新于 Oct 24, 2026

Allow AI systems to list, search, and manage contacts via Google Contacts.

已验证STDIO仅桌面效率与工作流沟通与协作

概览

AI 生成的概览

一个本地 MCP 服务器,让助手列出、搜索、创建、更新和删除 Google 通讯录联系人,包括照片和联系人分组。

可以做什么
按姓名、邮箱或电话列出和搜索联系人,并在组织目录中查找同事;读取单个联系人的完整详情,包括邮箱、电话、组织、生日、地址和自定义字段;创建、更新和永久删除联系人,设置或移除联系人照片;列出、创建、重命名和删除联系人分组,并添加或移除成员。
适用场景
适合在助手起草消息时需要查找某人的邮箱或电话、从名片或社交活动录入新联系人、按公司或城市搜索个人人脉,或在某人换工作后更新联系人信息的场景。
运行要求
通过 npx 在本地运行(需要 Node.js)。需要 Google OAuth 凭据:GOOGLE_CLIENT_ID 和 GOOGLE_CLIENT_SECRET,并在 Google Cloud 项目中启用 People API、将重定向 URI 设为本地回调。必须设置 MCP_TRANSPORT;README 默认以 HTTP 服务器运行在 localhost:3000(PORT 可配置)。GOOGLE_ACCESS_TOKEN 也被声明为必需密钥。仅限桌面端。
安装前请注意
它可以创建、更新和永久删除联系人、照片和联系人分组,误操作会造成不可恢复的删除。它需要处理 Google OAuth 密钥(GOOGLE_CLIENT_SECRET、GOOGLE_ACCESS_TOKEN),并作为 OAuth 代理连接 Google,这些凭据可访问你 Google 账号中的通讯录。联系人数据会发送到 Google 的 People API。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Google Contacts,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

google-contacts-mcp

MCP server for Google Contacts - list, search, and manage contacts.

Use Cases

Email lookup: "See the latest JIRA ticket that's come in. Can we email Sarah from the security team to get their input?" → finds Sarah's email and drafts the message.

Business card capture: After a networking event, snap photos of business cards → your assistant extracts the details and adds them as contacts with a note about where you met.

Find connections: "Who do I know at Google?" or "I'm visiting London next week - who should I catch up with?" → search your personal network.

Call reminder: "Remind me to call Mike at 3pm" → creates a calendar event with Mike's phone number attached so you can dial straight from the reminder.

Contact updates: You receive an out-of-office saying someone left their company with a new personal email → your assistant updates their contact automatically.

(These are just examples - any workflow that needs contact lookup or management can use this.)

Setup

1. Create Google OAuth credentials

  1. Go to Google Cloud Console
  2. Create a new project (or use existing)
  3. Enable the People API
  4. Go to APIs & Services → OAuth consent screen, set up consent screen
  5. Go to APIs & Services → Credentials → Create Credentials → OAuth client ID
  6. Choose Web application
  7. Add http://localhost:3000/callback to Authorized redirect URIs
  8. Note your Client ID and Client Secret

2. Run the server

bash
GOOGLE_CLIENT_ID='your-client-id' \GOOGLE_CLIENT_SECRET='your-client-secret' \MCP_TRANSPORT=http \npm start

The server runs on http://localhost:3000 by default. Change with PORT=3001.

3. Add to your MCP client

With the server running, follow the instructions on install-mcp, which generates the right config for your MCP client (Claude Code, Claude Desktop, Cursor, Cline, VS Code, and more).

Architecture

This server acts as an OAuth proxy to Google:

mermaid
graph LR    A[MCP client] <--> B[google-contacts-mcp] <--> C[Google OAuth/API]
  1. Server advertises itself as an OAuth authorization server via /.well-known/oauth-authorization-server
  2. /register returns the Google OAuth client credentials
  3. /authorize redirects to Google, encoding the client's callback URL in state
  4. /callback receives the code from Google and forwards to the client's callback
  5. /token proxies token requests to Google, injecting client credentials
  6. /mcp handles MCP requests, using the bearer token to call People API

The server holds no tokens or state - it just proxies OAuth to Google.

Tools

ToolDescription
contacts_listList contacts with names, emails, phones, organizations, birthdays, events, URLs, addresses, nicknames, relations, IM usernames, genders, external IDs, client data, and custom fields
contacts_searchSearch contacts by name, email, or phone
directory_searchSearch organization directory for coworkers
contact_getGet detailed info for a single contact
contact_createCreate a new contact
contact_updateUpdate an existing contact
contact_deletePermanently delete a contact
contact_photo_updateSet or replace a contact's photo
contact_photo_deleteRemove a contact's photo
contact_groups_listList contact groups (labels)
contact_group_getGet a contact group, including its members
contact_group_createCreate a new contact group
contact_group_updateRename a contact group
contact_group_deletePermanently delete a contact group
contact_group_members_modifyAdd or remove contacts from a contact group

Contributing

Pull requests are welcomed on GitHub! To get started:

  1. Install Git and Node.js
  2. Clone the repository
  3. Install dependencies with npm install
  4. Run npm run test to run tests
  5. Build with npm run build

Releases

Versions follow the semantic versioning spec.

To release:

  1. Use npm version <major | minor | patch> to bump the version
  2. Run git push --follow-tags to push with tags
  3. Wait for GitHub Actions to publish to the NPM registry.

来源:README.md,提交 80591d6

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.3.0最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。