crm
Close CRM MCP Integration for OpenAI Agents SDK
Connect Close CRM to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Close CRM to OpenAI Agents SDK
Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.
Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with
--write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.
Close CRM MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"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 OpenAI Agents
OpenAI Agents 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. |