KosmoKrator

marketing

Pinterest MCP Integration for OpenAI Agents SDK

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

7 functions 6 read 1 write Manual OAuth token auth

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

Pinterest MCP Config for OpenAI Agents SDK

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

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

Expose only Pinterest 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.

Pinterest Tools Visible to OpenAI Agents

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

MCP toolSource functionTypeDescription
integration__pinterest__pinterest_create_pin pinterest.pinterest_create_pin Write Create a new pin on a Pinterest board. Provide the board ID, title, description, and image URL. Optionally include a destination link.
integration__pinterest__pinterest_get_board pinterest.pinterest_get_board Read Get details of a specific Pinterest board by its ID. Returns the board name, description, pin count, and privacy settings.
integration__pinterest__pinterest_get_current_user pinterest.pinterest_get_current_user Read Get the currently authenticated Pinterest user profile. Returns the username, account type, and profile image.
integration__pinterest__pinterest_get_pin pinterest.pinterest_get_pin Read Get details of a specific Pinterest pin by its ID. Returns the pin title, description, image, board, and link.
integration__pinterest__pinterest_list_boards pinterest.pinterest_list_boards Read List boards for the authenticated Pinterest user. Supports pagination with bookmark cursor and page size. Returns board IDs, names, descriptions, and pin counts.
integration__pinterest__pinterest_list_campaigns pinterest.pinterest_list_campaigns Read List ad campaigns for a Pinterest ad account. Requires an ad account ID. Supports pagination with bookmark cursor and page size.
integration__pinterest__pinterest_list_pins pinterest.pinterest_list_pins Read List pins for the authenticated Pinterest user. Supports pagination with bookmark cursor and page size. Returns pin IDs, titles, descriptions, and media.

Related Pinterest Pages