@zapier/google-contacts-connector
v0.2.18
Published
Agent-callable Google Contacts tools — create, find, update, and delete contacts, manage contact groups (labels) and membership, and read auto-saved other contacts. Use when the user mentions Google Contacts or wants to look up, save, or organize people —
Maintainers
Readme
@zapier/google-contacts-connector
Agent-callable tools for Google Contacts, wrapping the Google People API. It lets an agent create, read, update, and delete a person's contacts; search contacts by name, email, or phone; set or remove contact photos; create and manage contact groups (labels) and their membership; and browse the auto-saved "other contacts" surface. Authentication is OAuth 2.0 — either a Zapier-managed connection (recommended) or a direct Google access token.
Independent, unofficial connector for Google Contacts. Not affiliated with, endorsed by, or sponsored by Google Contacts. "Google Contacts" is a trademark of its owner, used only to identify the service this connector works with.
When to use this
Use this connector to manage a person's own Google Contacts — saving and finding people, editing their details, organizing them into groups/labels, and turning auto-saved "other contacts" into real contacts. It's the right pick for contact-CRUD, contact search, and label management against a single Google account over the People API.
When NOT to use this
- Google Workspace directory lookups (org-wide people search) — not covered; this connector manages the user's personal contacts, not the domain directory.
- Bulk/batch contact imports or mass edits — there are no batch tools; act on one contact at a time.
- Contact merge/dedupe — not supported by these tools.
Install
This connector is the same artifact across four shapes: MCP server, CLI bin, importable Node module, and an Agent Skill anchored by SKILL.md. Pick the shape that matches how your agent runs.
# Run a script with zero install — npx fetches the package on first use
export <ENV_VAR>=xxx
npx @zapier/google-contacts-connector@latest run <script> '<input-json>' --connection env:<ENV_VAR>
# Install as a dependency to import the functions in your own code
npm install @zapier/google-contacts-connector
# Or install as an Agent Skill (https://agentskills.io)
npx skills add zapier/connectors --skill google-contactsAuth is one [<resolver>:]<value> connection string passed with --connection — a selector, not the secret. The <resolver>: prefix is optional; a bare value is claimed by the first matching resolver. See Auth below for the with/without-Zapier tradeoffs and how to find a connection ID.
MCP server
Run the connector as an MCP server over stdio so any MCP-aware client (Claude Desktop, Cursor, Claude Code, …) auto-discovers the scripts as tools — add one stanza to the client's config:
// e.g. claude_desktop_config.json or .cursor/mcp.json
{
"mcpServers": {
"google-contacts": {
"command": "npx",
"args": ["@zapier/google-contacts-connector", "mcp"]
}
}
}--connection is optional — omit it to pass a connection per tool call, or add "--connection", "zapier:<connection-id>" (or "env:<ENV_VAR>" with "env": { "<ENV_VAR>": "xxx" }) to args to set a default.
Cloning the source
You don't need to clone anything to use this connector — the options above already cover that. Want the actual repo source instead, to read the script code, browse references/, run this connector's tests, or hack on it? Clone with a path filter so you only fetch this one connector, not the whole catalog:
git clone --filter=blob:none --sparse https://github.com/zapier/connectors.git
cd connectors && git sparse-checkout set apps/google-contacts
cd apps/google-contacts && npm installSee the main README to clone several connectors at once.
Scripts
| Script | Description |
| --------------------------- | ------------------------------------------------------------------------------------------ |
| createContact | Create a contact from structured name, email, phone, address, and organization fields. |
| getContact | Retrieve a single contact by resource name, with full field detail. |
| updateContact | Update a contact; each array sent replaces that whole field, omitted fields are untouched. |
| deleteContact | Delete a contact from the account. |
| listContacts | List the account's contacts, paginated — the primary resourceName resolver. |
| searchContacts | Search contacts by name, nickname, email, phone, or organization (prefix match). |
| updateContactPhoto | Set or replace a contact's photo from a base64-encoded image. |
| deleteContactPhoto | Remove a contact's photo, reverting to the default avatar. |
| listContactGroups | List contact groups (labels), user and system — the contactGroupResourceName resolver. |
| getContactGroup | Get a single contact group, optionally with its member contact resource names. |
| createContactGroup | Create a new user contact group (label). |
| updateContactGroup | Rename a user contact group (system groups cannot be renamed). |
| deleteContactGroup | Delete a user contact group (label), optionally with its member contacts. |
| modifyContactGroupMembers | Add and/or remove contacts in a group without disturbing other memberships. |
| listOtherContacts | List auto-saved "other contacts" (people interacted with but never saved). |
| searchOtherContacts | Search "other contacts" by name, email, or phone (prefix match). |
| copyOtherContact | Promote an "other contact" into saved contacts, returning an editable contact. |
Run npx @zapier/google-contacts-connector@latest run <script> --help to see any script's exact input contract + the available resolvers.
Usage
Each named export is the consumer-facing (input, opts) => Promise<{ data, meta }> function. Pass auth as one [<resolver>:]<value> string, e.g. { connection: "env:<ENV_VAR>" }.
import { searchContacts } from "@zapier/google-contacts-connector";
// Each named export is the consumer-facing (input, opts) => Promise<{ data, meta }>.
const { data } = await searchContacts(
{ query: "jane" },
{ connection: "env:<ENV_VAR>" },
);
// data.results[].person is the canonical People API Person resource.Auth
Already have a connection value? Pass it as shown above — --connection for the CLI/MCP shapes, { connection } for imported functions. No connection yet? Pick one:
| | Load |
| ------------------------------------ | ---------------------------------------------------------------------- |
| Pass the credential directly | references/use-without-zapier.md |
| Route it through a Zapier connection | references/use-with-zapier.md |
Links
- Google People API reference — the upstream API this connector wraps
Legal
Scope of license. Zapier licenses only the connector code in this package. Zapier grants no rights in Google Contacts's API, services, data, schemas, documentation, or other materials, which remain the property of Google Contacts. Your use of Google Contacts's API is governed by your own agreement with Google Contacts.
Trademarks and affiliation. Google Contacts and its logos are trademarks of their owner, used here only to identify the service this connector works with. This connector is not affiliated with, endorsed by, or sponsored by Google Contacts.
Your responsibility. This connector calls Google Contacts's API using credentials you supply. You are responsible for holding a valid Google Contacts account, for complying with Google Contacts's API terms, developer policies, and acceptable use rules, and for the data you send and receive through it.
No warranty. This connector is provided "as is," without warranty of any kind, and is not an official Google Contacts product. Zapier is not responsible for changes Google Contacts makes to its API or for any consequence of your use of Google Contacts's API. See the repository LICENSE for the full disclaimer.
Forks. You may fork and modify this connector under the Elastic License 2.0. You may state that your fork is "based on" Zapier's connector, but you may not use the "Zapier" name or logo as the name or branding of your fork, or in any way that suggests Zapier produces, endorses, or supports it.
Licensed under the Elastic License 2.0. See the repository LICENSE and NOTICE.
