Skip to main content
Glama
medeiroz

Google Contacts MCP

by medeiroz

Google Contacts MCP

A small, local Model Context Protocol server for Google Contacts (Google People API).

Security model

This repository intentionally contains no credentials and does not implement OAuth login or redirects.

  • Set GOOGLE_CONTACTS_TOKEN_PATH to an absolute path for an OAuth authorized-user token stored outside this repository.

  • The server never falls back to a default token path, so it cannot accidentally select a different Google account.

  • .gitignore rejects token, secret and credential JSON files.

  • On each refresh, the token file is written with Unix permission 0600.

  • Write operations require confirm: true in the tool input.

Do not commit your OAuth token or client-secret JSON. If a credential is ever committed, revoke it immediately in Google Cloud and remove it from Git history.

Related MCP server: google-workspace-mcp-server

Tools

Tool

Purpose

list_contacts

List one page of contacts.

search_contacts

Search all contacts locally by all words across name, email and phone.

get_contact

Fetch a contact by People API resource name.

create_contact

Create a contact; requires confirm: true.

update_contact

Update supplied fields; requires confirm: true.

delete_contact

Permanently delete a contact; requires confirm: true.

contacts_stats

Count all contacts.

Requirements

  • Node.js 18 or newer.

  • An OAuth refresh token authorized for https://www.googleapis.com/auth/contacts.

  • Google People API enabled in the token's Google Cloud project.

Install

npm install
export GOOGLE_CONTACTS_TOKEN_PATH=/absolute/path/outside-this-repo/google_token.json
node index.js

For a Hermes stdio MCP configuration, point the command at node, pass the absolute index.js path in args, and pass only the external token path in env:

mcp_servers:
  google-contacts:
    command: node
    args: [/absolute/path/to/google-contacts-mcp/index.js]
    env:
      GOOGLE_CONTACTS_TOKEN_PATH: /absolute/path/outside-this-repo/google_token.json

Restart Hermes after adding the server so it can discover the tools.

Development

npm test

The tests never contact Google and do not require a token.

License

MIT.

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Streamable HTTP MCP server for Google Calendar and Sheets with OAuth login.

  • Hosted Google Calendar MCP server for AI agents. No self-hosting or Google Cloud setup.

  • Identity resolution MCP server for phone/email lookups across 31+ services. Global + India coverage.

View all MCP Connectors

Latest Blog Posts

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/medeiroz/google-contacts-mcp'

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