Vinkius
Pinterest Ads logo
Vinkius
Vinkius runs on LangChain

How to Use the Pinterest Ads MCP in LangChain

Get real-time Pinterest Ads data directly into your LangChain multi-step reasoning chains using this dedicated MCP server.

See Vinkius in Action

Works with every AI agent you already use

…and any MCP-compatible client

Pinterest Ads MCP on Cursor AI Code Editor MCP Client Pinterest Ads MCP on Claude Desktop App MCP Integration Pinterest Ads MCP on OpenAI Agents SDK MCP Compatible Pinterest Ads MCP on Visual Studio Code MCP Extension Client Pinterest Ads MCP on GitHub Copilot AI Agent MCP Integration Pinterest Ads MCP on Google Gemini AI MCP Integration Pinterest Ads MCP on Lovable AI Development MCP Client Pinterest Ads MCP on Mistral AI Agents MCP Compatible Pinterest Ads MCP on Amazon AWS Bedrock MCP Support
MCP Servers — Included with Plan
Vinkius runs on LangChain

Connect Pinterest Ads MCP to LangChain

Create your Vinkius account to connect Pinterest Ads to LangChain — we handle the hosting, security, and runtime updates so you don't have to. No server setup required.

GDPR Included with Plan

Key Capabilities

Map Pinterest Ads Campaigns in LangChain Chains

The `list_pinterest_campaigns` tool pulls active campaign metrics directly into your LangChain decision loops. Your agent can inspect budget limits and run logic to determine if a campaign needs adjustment based on live performance data. By combining this with other tools in a multi-step chain, your agent checks the campaign status before making any downstream API calls. This MCP integration prevents your pipeline from executing actions on paused or misconfigured ad sets, saving API tokens and execution time.

Run Multi-Step Ad Group Audits via MCP Server

The `list_pinterest_ad_groups` and `list_pinterest_keywords` tools let your LangChain agent audit targeting setups in a single execution pass. The agent fetches the ad groups, extracts the associated keywords, and analyzes them against your target performance metrics. Because LangChain supports observational tracing, you can monitor every step of this analysis in LangSmith. You see exactly how the agent parses the keyword lists and which criteria it uses to flag low-performing targeting blocks.

Automate Creative Analysis in Agent Pipelines

The `list_pinterest_pins` and `get_pinterest_analytics` tools feed raw creative performance data directly into your LangChain LLM prompts. Your agent analyzes which visual assets drive the lowest cost-per-click without requiring manual export steps. This setup feeds performance data from past pins directly into your next content generation prompt. The agent uses actual Pinterest engagement metrics to suggest what creative elements to use in your next campaign cycle.

Setup guide

Set up Pinterest Ads MCP in LangChain

Prerequisites

  • Python 3.10+ installed
  • langchain-mcp-adapters + langgraph packages
  • Active Vinkius subscription with a valid endpoint token
  1. 1

    Install dependencies

    Run pip install langchain-mcp-adapters langgraph langchain-openai. The MCP adapters package converts MCP tools into native LangChain BaseTool objects.

  2. 2

    Connect via HTTP transport

    Use MultiServerMCPClient with "transport": "http" pointing to your Vinkius endpoint. Replace [YOUR_TOKEN_HERE] with your token from cloud.vinkius.com.

  3. 3

    Create a ReAct agent

    Pass the discovered tools to create_react_agent() from LangGraph. The agent automatically routes Pinterest Ads tool calls through the MCP protocol.

  4. 4

    Run with any LLM

    Swap ChatOpenAI for ChatAnthropic, ChatGoogleGenerativeAI, or any LangChain-compatible model. The MCP tools work identically across all providers.

agent.py
from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent
from langchain_openai import ChatOpenAI

async with MultiServerMCPClient({
    "pinterest-ads-mcp": {
        "transport": "http",
        "url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
    }
}) as client:
    tools = client.get_tools()

    agent = create_react_agent(
        ChatOpenAI(model="gpt-4o"),
        tools,
    )
    result = await agent.ainvoke({
        "messages": "List recent Pinterest Ads transactions"
    })
    print(result["messages"][-1].content)

Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Pinterest Ads. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.

Why Choose Vinkius

Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.

Real-time monitoring

Live

visibility into every interaction

Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.

Built-in savings

60%

lower AI costs

Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.

Single dashboard

One

place for every integration

Every tool your AI connects to, managed from a single screen. One account, complete control.

Common questions about Pinterest Ads MCP in LangChain

LangChain executes tool calls sequentially within your chains, meaning it respects standard API thresholds. If you run large loops over `list_pinterest_campaigns`, you should implement a brief delay between chain steps to prevent hitting Pinterest's rate limits.
Yes, you can. The `get_pinterest_analytics` tool returns raw JSON data that your LangChain runnables can format directly into prompt templates. This allows your agent to write performance summaries based on real-time ad spend.
No, this MCP server is stateless by default. Each tool call like `list_pinterest_ad_groups` runs independently, but you can use LangChain's memory components to keep campaign contexts alive across a conversation.
Absolutely. Your agent can call `list_pinterest_audiences` and parse the target sizes to recommend which segment should receive more budget.
The MCP server runs in an isolated Vinkius sandbox, ensuring your product catalog IDs and pricing data from `list_pinterest_catalogs` never leak. Your developer token is injected at the platform level, so LangChain never exposes your raw credentials in transit.

Start using the Pinterest Ads MCP today

We host it, we monitor it, we maintain it. You just paste one token.

Built & Managed by Vinkius 30s setup 10 tools

We've already built the connector for Pinterest Ads. Just plug in your AI agents and start using Vinkius.

No hosting. No infrastructure. No complex setup.
All 10 tools are live and waiting. You're up and running in seconds.

Vinkius runs on Claude Claude
Vinkius runs on ChatGPT ChatGPT
Vinkius runs on Cursor Cursor
Vinkius runs on Gemini Gemini
Vinkius runs on Windsurf Windsurf
Vinkius runs on VS Code VS Code
Vinkius runs on JetBrains JetBrains
Vinkius runs on Vercel Vercel
+ other MCP clients

Vinkius gives your AI agents access to the full catalog of app connectors, all fully managed, secure, and enterprise-ready. One subscription, every tool you need.

Zero hosting required Full MCP catalog included Enterprise-grade security Auto-updated by Vinkius

Built, hosted, and secured by Vinkius. You just connect and go.