CrewAI Integration
Integrate Talordata MCP Server with CrewAI to give AI agents access to real-time SERP data and structured search results.
Hosted MCP
2
Configure your MCP server
from crewai import Agent, Task, Crew
from crewai_tools import MCPServerAdapter
import os
server_params = {
"url": "https://mcp.talordata.net/API_TOKEN/mcp",
"transport": "http"
}
try:
with MCPServerAdapter(server_params) as mcp_tools:
print(f"Available tools: {[tool.name for tool in mcp_tools]}")
my_agent = Agent(
role="Web Scraping Specialist",
goal="Extract data from websites using TalorData tools",
backstory="I am an expert at web scraping and data extraction using MCP tools.",
tools=mcp_tools,
verbose=True,
llm="gpt-4o-mini",
)
task = Task(
description="Search for flights from New York to San Francisco and provide a summary of what you found. Use the search_engine tool to find flight information and return the results in a clear format.",
expected_output="A clear summary of available flights from New York to San Francisco, including key details like airlines, times, and prices if available.",
agent=my_agent
)
crew = Crew(
agents=[my_agent],
tasks=[task],
verbose=True
)
result = crew.kickoff()
print("\n=== RESULT ===")
print(result)
except Exception as e:
print(f"Error connecting to MCP server: {e}")Last updated