KosmoKrator

sales

Keap MCP Integration for OpenAI Agents SDK

Connect Keap to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 6 read 1 write Bearer token auth

Connect Keap 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.

Keap MCP Config for OpenAI Agents SDK

Use headless JSON commands for CI-style execution and MCP for agent tool discovery.

{
  "mcpServers": {
    "kosmokrator-keap": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=keap",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=keap --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Keap instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Keap Tools Visible to OpenAI Agents

OpenAI Agents sees stable MCP tool names generated from the Keap integration catalog.

MCP toolSource functionTypeDescription
integration__keap__keap_list_contacts keap.keap_list_contacts Read List contacts from Keap CRM. Returns paginated results with contact details including name, email, and company.
integration__keap__keap_get_contact keap.keap_get_contact Read Retrieve a single Keap contact by ID. Returns full contact details including email addresses, phone numbers, and tags.
integration__keap__keap_create_contact keap.keap_create_contact Write Create a new contact in Keap CRM. Provide at least a first name or last name. Email and company name are optional.
integration__keap__keap_list_opportunities keap.keap_list_opportunities Read List sales opportunities from Keap CRM. Optionally filter by pipeline stage. Returns paginated results with opportunity details.
integration__keap__keap_get_opportunity keap.keap_get_opportunity Read Retrieve a single Keap sales opportunity by ID. Returns full details including contact, stage, value, and notes.
integration__keap__keap_list_tags keap.keap_list_tags Read List all tags in Keap. Tags are used to categorize contacts and trigger automations.
integration__keap__keap_get_current_user keap.keap_get_current_user Read Get the currently authenticated Keap user. Returns profile information for the user associated with the access token.

Related Keap Pages