Set up CrewAI

Multi-agent orchestration framework. Add Agentcy as an MCP tool so your CrewAI agents can pull marketing data during autonomous research, analysis, and content creation tasks.

SETUP
6 STEPS
  1. 01

    Sign up at app.goagentcy.com and create an API key

  2. 02

    Install CrewAI and the MCP package: pip install crewai mcp

  3. 03

    Import MCPServerHTTP from crewai.mcp (NOT crewai_tools)

  4. 04

    Pass mcps=[MCPServerHTTP(url=..., headers=..., streamable=True)] directly to your Agent constructor

  5. 05

    Replace YOUR_AGENTCY_API_KEY with your actual key

  6. 06

    No context manager needed — the new API handles connection lifecycle automatically

CONFIG

path: pip install crewai mcp

python
# Python — CrewAI with MCP (canonical, April 2026)
# pip install crewai mcp

from crewai import Agent, Task, Crew
from crewai.mcp import MCPServerHTTP

agent = Agent(
    role="Marketing Analyst",
    goal="Analyze marketing performance data",
    backstory="Expert digital marketing analyst with access to live marketing data",
    mcps=[
        MCPServerHTTP(
            url="https://data.goagentcy.com/mcp",
            headers={"Authorization": "Bearer YOUR_AGENTCY_API_KEY"},
            streamable=True,          # default — streamable HTTP transport
            cache_tools_list=True,    # cache tool list for performance
        )
    ],
)

task = Task(
    description="Analyze this month's GA4 traffic and top search queries for example.com",
    expected_output="A concise marketing performance summary with actionable recommendations",
    agent=agent,
)

crew = Crew(agents=[agent], tasks=[task])
result = crew.kickoff()
print(result)
Last verified: April 9, 2026Official docs
TIPS

CANONICAL API CHANGED IN 2026: The new path is `from crewai.mcp import MCPServerHTTP` (lives inside the core crewai package) and `mcps=[MCPServerHTTP(...)]` passed directly to the Agent constructor. The old `MCPServerAdapter` from `crewai_tools` still works but is now labeled “Advanced / For Complex Scenarios” in CrewAI’s docs — use the canonical path above instead. Note that `streamable=True` is a boolean field on the new MCPServerHTTP class, NOT a transport string. Current stable: crewai 1.14.1 (released April 8, 2026). The crewAI-tools repo at github.com/crewAIInc/crewAI-tools was archived November 10, 2025 — source now lives in the crewAI monorepo at github.com/crewAIInc/crewAI under lib/. For multi-server setups (Agentcy + other MCPs), pass multiple MCPServerHTTP instances in the mcps list.

REFERENCES
4 SOURCES

Stuck or want to verify these instructions yourself? These are the documentation sources we used. If something here doesn't match what you see in your client, the vendor may have updated their UI — and we'll get this page updated.

EXPLORE DATA SOURCES

After connecting CrewAI and configuring your data sources in the portal, ask questions about any of them in natural language:

View all data sources →

v1.0Need help?