How to Use the Amazon DSP MCP in CrewAI
Deploy specialized CrewAI agents to monitor and analyze your Amazon DSP campaigns autonomously.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Amazon DSP MCP to CrewAI
Create your Vinkius account to connect Amazon DSP to CrewAI and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Autonomous Media Buying Crews
This Amazon DSP MCP server lets your CrewAI agents pull ad performance autonomously. You assign a Researcher agent to monitor the exchange by calling `list_campaigns` and `list_ad_groups` to find active line items. That agent passes the active IDs to an Analyst agent. The Analyst hits `request_report` and tracks the output via `get_report_status`. They share memory, meaning the Analyst knows exactly which campaigns the Researcher flagged without asking twice.
Deep Audience Inspection
Display advertising demands constant creative rotation. Spin up an Auditor agent specifically tasked with matching assets to targets. It runs `list_audiences` to grab the demographic segments currently in use across your account. Next, it pulls the assigned banners using `list_creatives`. The agent evaluates whether the creative messaging aligns with the audience parameters, outputting a summary report for your media planners. It happens entirely in the background.
Secure MCP Server Integration
Connecting this to your Python environment takes seconds. Pass your Vinkius endpoint into the `mcps` array when defining your agent. CrewAI handles the HTTP transport and exposes the DSP functions instantly. For advanced setups, you establish strict boundaries. Import `MCPServerHTTP` and apply a `tool_filter`. You restrict your Junior Analyst agent so it only accesses `get_campaign_details`, preventing it from triggering heavy reporting tasks.
Set up Amazon DSP MCP in CrewAI
Prerequisites
- Python 3.10+ installed
-
crewaipackage (pip install crewai) - Active Vinkius subscription with a valid endpoint token
- 1
Install CrewAI
Run
pip install crewaito install the framework. MCP support is built-in via themcpsparameter. - 2
Add the MCP URL to your agent
Pass your Vinkius endpoint directly to the
mcpslist. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. CrewAI handles tool discovery and caching automatically. - 3
Kick off your crew
Create a
Crewwith your agent and tasks. Callcrew.kickoff()— the agent will automatically invoke Amazon DSP tools as needed.
from crewai import Agent, Task, Crew
agent = Agent(
role="Amazon DSP Analyst",
goal="Access and analyze Amazon DSP data via MCP.",
backstory="Expert analyst with direct Amazon DSP access.",
mcps=[
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
],
)
task = Task(
description="List recent Amazon DSP transactions",
agent=agent,
expected_output="A summary of recent activity",
)
crew = Crew(agents=[agent], tasks=[task])
result = crew.kickoff()
print(result) Prerequisites
- Python 3.10+ installed
-
crewai+crewai-toolspackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
pip install crewai crewai-tools. TheMCPServerAdapterhandles lifecycle management and tool conversion. - 2
Connect with MCPServerAdapter
Use
MCPServerAdapteras a context manager withSseServerParameterspointing to your Vinkius endpoint. The adapter automatically manages connection lifecycle. - 3
Assign tools and run
Pass the returned
mcp_toolsto your agent'stoolsparameter. The adapter converts MCP tools to nativeBaseToolobjects compatible with all CrewAI agents.
from crewai import Agent, Task, Crew
from crewai_tools import MCPServerAdapter
from mcp import SseServerParameters
server_params = SseServerParameters(
url="https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
)
with MCPServerAdapter(server_params) as mcp_tools:
agent = Agent(
role="Amazon DSP Analyst",
goal="Access and analyze Amazon DSP data via MCP.",
backstory="Expert analyst with direct Amazon DSP access.",
tools=mcp_tools,
)
task = Task(
description="List recent Amazon DSP transactions",
agent=agent,
expected_output="A summary of recent activity",
)
crew = Crew(agents=[agent], tasks=[task])
result = crew.kickoff()
print(result) Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Amazon DSP. 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 Amazon DSP MCP in CrewAI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Amazon DSP MCP today
We host it, we monitor it, we maintain it. You just paste one token.