2,500+ MCP servers ready to use
Vinkius

Salesforce Marketing Cloud MCP Server for LangChain 6 tools — connect in under 2 minutes

Built by Vinkius GDPR 6 Tools Framework

LangChain is the leading Python framework for composable LLM applications. Connect Salesforce Marketing Cloud through the Vinkius and LangChain agents can call every tool natively — combine them with retrievers, memory, and output parsers for sophisticated AI pipelines.

Vinkius supports streamable HTTP and SSE.

python
import asyncio
from langchain_mcp_adapters.client import MultiServerMCPClient
from langchain_openai import ChatOpenAI
from langgraph.prebuilt import create_react_agent

async def main():
    # Your Vinkius token — get it at cloud.vinkius.com
    async with MultiServerMCPClient({
        "salesforce-marketing-cloud": {
            "transport": "streamable_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,
        )
        response = await agent.ainvoke({
            "messages": [{
                "role": "user",
                "content": "Using Salesforce Marketing Cloud, show me what tools are available.",
            }]
        })
        print(response["messages"][-1].content)

asyncio.run(main())
Salesforce Marketing Cloud
Fully ManagedVinkius Servers
60%Token savings
High SecurityEnterprise-grade
IAMAccess control
EU AI ActCompliant
DLPData protection
V8 IsolateSandboxed
Ed25519Audit chain
<40msKill switch
Stream every event to Splunk, Datadog, or your own webhook in real-time

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure

About Salesforce Marketing Cloud MCP Server

Connect Salesforce Marketing to any AI agent.

LangChain's ecosystem of 500+ components combines seamlessly with Salesforce Marketing Cloud through native MCP adapters. Connect 6 tools via the Vinkius and use ReAct agents, Plan-and-Execute strategies, or custom agent architectures — with LangSmith tracing giving full visibility into every tool call, latency, and token cost.

What you can do

  • Campaigns — Search, create, and filter by status
  • Members — View and add leads/contacts to campaigns
  • Performance — Aggregate metrics by campaign type

The Salesforce Marketing Cloud MCP Server exposes 6 tools through the Vinkius. Connect it to LangChain in under two minutes — no API keys to rotate, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.

How to Connect Salesforce Marketing Cloud to LangChain via MCP

Follow these steps to integrate the Salesforce Marketing Cloud MCP Server with LangChain.

01

Install dependencies

Run pip install langchain langchain-mcp-adapters langgraph langchain-openai

02

Replace the token

Replace [YOUR_TOKEN_HERE] with your Vinkius token

03

Run the agent

Save the code and run python agent.py

04

Explore tools

The agent discovers 6 tools from Salesforce Marketing Cloud via MCP

Why Use LangChain with the Salesforce Marketing Cloud MCP Server

LangChain provides unique advantages when paired with Salesforce Marketing Cloud through the Model Context Protocol.

01

The largest ecosystem of integrations, chains, and agents — combine Salesforce Marketing Cloud MCP tools with 500+ LangChain components

02

Agent architecture supports ReAct, Plan-and-Execute, and custom strategies with full MCP tool access at every step

03

LangSmith tracing gives you complete visibility into tool calls, latencies, and token usage for production debugging

04

Memory and conversation persistence let agents maintain context across Salesforce Marketing Cloud queries for multi-turn workflows

Salesforce Marketing Cloud + LangChain Use Cases

Practical scenarios where LangChain combined with the Salesforce Marketing Cloud MCP Server delivers measurable value.

01

RAG with live data: combine Salesforce Marketing Cloud tool results with vector store retrievals for answers grounded in both real-time and historical data

02

Autonomous research agents: LangChain agents query Salesforce Marketing Cloud, synthesize findings, and generate comprehensive research reports

03

Multi-tool orchestration: chain Salesforce Marketing Cloud tools with web scrapers, databases, and calculators in a single agent run

04

Production monitoring: use LangSmith to trace every Salesforce Marketing Cloud tool call, measure latency, and optimize your agent's performance

Salesforce Marketing Cloud MCP Tools for LangChain (6)

These 6 tools become available when you connect Salesforce Marketing Cloud to LangChain via MCP:

01

sf_add_campaign_member

Provide campaignId and either contactId OR leadId (not both). Status defaults to "Sent" but can be set to "Responded", "Registered", etc. based on your campaign member statuses. Returns the created membership record. Add a lead or contact to a Salesforce marketing campaign for attribution tracking and engagement measurement

02

sf_campaign_members

Returns member name, type (Lead or Contact), status (Sent/Responded/etc.), and response date. Use to see who is in a campaign, track engagement, or analyze campaign reach. Essential for campaign ROI and attribution analysis. Get all leads and contacts enrolled in a specific Salesforce campaign with their membership status and response dates

03

sf_campaign_performance

Returns the number of campaigns, total leads generated, total conversions, total budgeted cost, and actual cost per campaign type. Provides an instant ROI overview across all marketing channels. Use for marketing dashboard, channel-level performance comparison, or budget allocation analysis. Get aggregate marketing campaign performance — campaign counts, total leads, conversions, and costs grouped by campaign type

04

sf_campaigns_by_status

Returns campaigns with lead/contact counts, budget, and conversion data. Use for questions like "which campaigns are currently running?" or "show completed campaigns with their results." Get Salesforce campaigns filtered by status — Planned, In Progress, Completed, or Aborted — with full metrics

05

sf_create_campaign

Name is required. Type: Email, Conference, Webinar, Trade Show, Public Relations, Advertisement, Banner Ads, Telemarketing. Status defaults to "Planned". Dates use YYYY-MM-DD. budgetedCost is the planned spend. Returns the created campaign with its Salesforce ID. Create a new marketing campaign in Salesforce with name, type, status, dates, description, and budget

06

sf_search_campaigns

Returns campaign name, status (Planned/In Progress/Completed/Aborted), type (Email/Conference/Webinar/Advertisement), start/end dates, number of leads generated, contacts converted, budgeted cost, and actual cost. Use when the user asks about marketing initiatives, campaign performance, or budget spend. Search Salesforce marketing campaigns by name to find initiatives with status, type, budget, and lead/contact conversion metrics

Example Prompts for Salesforce Marketing Cloud in LangChain

Ready-to-use prompts you can give your LangChain agent to start working with Salesforce Marketing Cloud immediately.

01

"What is the conversion rate of our Email campaigns?"

02

"Create a new webinar campaign for Q2 product launch"

03

"Show me all in-progress campaigns"

Troubleshooting Salesforce Marketing Cloud MCP Server with LangChain

Common issues when connecting Salesforce Marketing Cloud to LangChain through the Vinkius, and how to resolve them.

01

MultiServerMCPClient not found

Install: pip install langchain-mcp-adapters

Salesforce Marketing Cloud + LangChain FAQ

Common questions about integrating Salesforce Marketing Cloud MCP Server with LangChain.

01

How does LangChain connect to MCP servers?

Use langchain-mcp-adapters to create an MCP client. LangChain discovers all tools and wraps them as native LangChain tools compatible with any agent type.
02

Which LangChain agent types work with MCP?

All agent types including ReAct, OpenAI Functions, and custom agents work with MCP tools. The tools appear as standard LangChain tools after the adapter wraps them.
03

Can I trace MCP tool calls in LangSmith?

Yes. All MCP tool invocations appear as traced steps in LangSmith, showing input parameters, response payloads, latency, and token usage.

Connect Salesforce Marketing Cloud to LangChain

Get your token, paste the configuration, and start using 6 tools in under 2 minutes. No API key management needed.