Parallel provides a web search MCP server that gives AI models access to real-time web data. Combined with Groq's industry-leading inference speeds (1000+ tokens/second), you can build research agents that find and analyze current information in seconds, not minutes.
Key Features:
pip install openai python-dotenvexport GROQ_API_KEY="your-groq-api-key"
export PARALLEL_API_KEY="your-parallel-api-key"import os
from openai import OpenAI
from openai.types import responses as openai_responses
client = OpenAI(
base_url="https://api.groq.com/api/openai/v1",
api_key=os.getenv("GROQ_API_KEY")
)
tools = [
openai_responses.tool_param.Mcp(
server_label="parallel_web_search",
server_url="https://mcp.parallel.ai/v1beta/search_mcp/",
headers={"x-api-key": os.getenv("PARALLEL_API_KEY")},
type="mcp",
require_approval="never",
)
]
response = client.responses.create(
model="openai/gpt-oss-120b",
input="What does Anthropic do? Find recent product launches from past year.",
tools=tools,
temperature=0.1,
top_p=0.4,
)
print(response.output_text)Compare multiple companies side-by-side:
companies = ["OpenAI", "Anthropic", "Google AI", "Meta AI"]
for company in companies:
response = client.responses.create(
model="openai/gpt-oss-120b",
input=f"""Research {company}:
- Main products
- Latest announcements (6 months)
- Company size and funding
- Key differentiators""",
tools=tools,
temperature=0.1,
)
print(f"{company}:\n{response.output_text}\n")Get current financial information:
stocks = ["GOOGL", "MSFT", "NVDA", "TSLA"]
for ticker in stocks:
response = client.responses.create(
model="openai/gpt-oss-120b",
input=f"Current stock price of {ticker}? Include today's change and 52-week range.",
tools=tools,
temperature=0.1,
)
print(f"{ticker}: {response.output_text}")Track developing stories:
topics = [
"artificial intelligence breakthroughs",
"quantum computing developments",
"renewable energy innovations"
]
for topic in topics:
response = client.responses.create(
model="openai/gpt-oss-120b",
input=f"Latest breaking news about {topic} from today?",
tools=tools,
temperature=0.1,
)
print(f"{topic}:\n{response.output_text}\n")Real comparison from testing:
Groq is 8x faster due to LPU architecture, instant tool call decisions, and fast synthesis of search results.
Challenge: Build a real-time market intelligence platform that monitors news, tracks competitor activities, analyzes trends, compares products, and generates daily briefings!