crm
Close CRM MCP Integration for Vercel AI SDK
Connect Close CRM to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Close CRM to Vercel AI SDK
Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts.
Create an MCP client that starts or connects to the KosmoKrator gateway for the selected integration. The gateway is local, scoped to this integration, and starts with
--write=deny so Vercel AI SDK can inspect read-capable tools without receiving write access by default.
Close CRM MCP Config for Vercel AI SDK
Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.
{
"mcpServers": {
"kosmokrator-close": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=close",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=close --write=deny Why Use KosmoKrator Here
Expose only Close CRM 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.
Close CRM Tools Visible to Vercel AI SDK
Vercel AI SDK sees stable MCP tool names generated from the Close CRM integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__close__close_list_leads | close.close_list_leads | Read | Search and list leads in Close CRM. Use the query parameter with Close search syntax to filter leads by name, status, custom fields, dates, and more. Returns a paginated list of leads with their contacts and addresses. |
integration__close__close_get_lead | close.close_get_lead | Read | Get full details for a single lead in Close CRM, including contacts, addresses, custom fields, and associated information. |
integration__close__close_create_lead | close.close_create_lead | Write | Create a new lead in Close CRM. Provide a company name and optionally add contacts with email addresses and phone numbers. |
integration__close__close_update_lead | close.close_update_lead | Write | Update an existing lead in Close CRM. Provide the lead ID and the fields to update (name, status, custom fields, URL, etc.). |
integration__close__close_delete_lead | close.close_delete_lead | Write | Permanently delete a lead from Close CRM. This removes the lead and all associated contacts, activities, and tasks. |
integration__close__close_list_contacts | close.close_list_contacts | Read | List contacts in Close CRM. Optionally filter by lead ID to get contacts for a specific lead. Supports pagination. |
integration__close__close_list_activities | close.close_list_activities | Read | List activities in Close CRM — emails, calls, notes, and other activity types. Filter by lead ID or activity type. Supports pagination. |
integration__close__close_create_task | close.close_create_task | Write | Create a new task in Close CRM. Optionally associate it with a lead, assign it to a user, and set a due date. |
integration__close__close_get_current_user | close.close_get_current_user | Read | Get the profile of the currently authenticated Close CRM user — name, email, organization, and other account details. |