productivity
Google Contacts MCP Integration for Claude Agent SDK
Connect Google Contacts to Claude Agent SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Google Contacts to Claude Agent SDK
Give Claude Agent SDK workflows access to KosmoKrator integrations through a local MCP server.
Add a KosmoKrator stdio MCP server to the Claude Agent SDK options. The gateway is local, scoped to this integration, and starts with
--write=deny so Claude Agent SDK can inspect read-capable tools without receiving write access by default.
Google Contacts MCP Config for Claude Agent SDK
Use a narrow integration list so the agent does not load unrelated tools.
{
"mcpServers": {
"kosmokrator-google_contacts": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=google_contacts",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=google_contacts --write=deny Why Use KosmoKrator Here
Expose only Google Contacts instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Google Contacts Tools Visible to Claude Agent SDK
Claude Agent SDK sees stable MCP tool names generated from the Google Contacts integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__google_contacts__google_contacts_list_connections | google_contacts.google_contacts_list_connections | Read | List contacts (connections) from the authenticated user's Google Contacts. Returns names, emails, phone numbers, biographies, organizations, and photos. Supports pagination and incremental sync. |
integration__google_contacts__google_contacts_get_connection | google_contacts.google_contacts_get_connection | Read | Get detailed information about a specific contact by resource name (e.g., "people/c123456789"). Returns names, emails, phone numbers, biographies, organizations, and photos. |
integration__google_contacts__google_contacts_create_contact | google_contacts.google_contacts_create_contact | Write | Create a new contact in Google Contacts. Provide at least a name. You can also add email addresses, phone numbers, and a biography (notes). |
integration__google_contacts__google_contacts_list_contact_groups | google_contacts.google_contacts_list_contact_groups | Read | List all contact groups in the user's Google Contacts. Includes system groups (e.g., "My Contacts", "Starred") and user-created groups. Returns group name, type, and member count. |
integration__google_contacts__google_contacts_get_contact_group | google_contacts.google_contacts_get_contact_group | Read | Get details of a specific contact group by resource name (e.g., "contactGroups/myContacts"). Returns the group name, type, member count, and member resource names. |
integration__google_contacts__google_contacts_list_other_contacts | google_contacts.google_contacts_list_other_contacts | Read | List "Other Contacts" — people the user has interacted with (e.g., via email) but hasn't added to their contacts. Returns names, email addresses, and phone numbers. |
integration__google_contacts__google_contacts_get_current_user | google_contacts.google_contacts_get_current_user | Read | Get the authenticated user's own Google profile information — display name, email addresses, and profile photo. |