Mcp Parallel
Groq + Parallel Web Search: Fast AI Research with Real-Time Data
What You'll Learn
In this notebook, you'll discover how to combine:
- Groq's fast AI inference (1000+ tokens/second perfect for function calling/tool use for LLMs)
- Parallel's web search tool (live web searches and data via Parallel's Model Context Protocol (MCP) server)
Together, they enable fast and accurate AI research on current events, product launches, and real-time information.
Why This Approach Works
Traditional LLMs have a knowledge cutoff and can't access current information. Web search tools are often slow and sequential. This demo shows how to get:
- Speed: Groq delivers responses in seconds, not minutes
- Accuracy: Live web data ensures up-to-date information
- Efficiency: Parallel searches happen simultaneously
- Transparency: See exactly what sources were used
Prerequisites
Before we start, you'll need:
- Groq API Key - Get yours at console.groq.com
- Parallel API Key - Get yours at platform.parallel.ai
Setup: Import Libraries & Configure API Keys
First, let's import the necessary libraries and set up our API keys.
API keys configured successfully!
Core Function: Web Research with Groq's Responses API
Set Up Different Clients for Comparison
Now let's configure different LLM clients that we can use with our research company. This allows us to compare OpenAI vs Groq performance and latency on the same research tasks.
✅ Added groq_cloud client with model openai/gpt-oss-120b ✅ Added openai_gpt5 client with model gpt-5 🎯 Research company configured with 2 clients: • groq_cloud: groq - openai/gpt-oss-120b • openai_gpt5: openai - gpt-5
Demo 1: Research a Company with a Specific Client
Let's test our research company with a specific client to see how it performs.
🚀 DEMO 1: Research with Groq Client
==================================================
🔍 Researching Parallel Web Systems using groq_cloud...
Provider: groq
Model: openai/gpt-oss-120b
Base URL: https://api.groq.com/openai/v1
================================================================================
RESEARCH RESULTS
================================================================================
Client: groq_cloud (groq)
Model: openai/gpt-oss-120b
Company: Parallel Web Systems
Response Time: 10.48s
MCP Calls: 1
================================================================================
## Parallel Web Systems – What the company does
Parallel Web Systems (often shortened to **Parallel**) is a Palo‑Alto‑based AI‑infrastructure startup founded in 2023 by former Twitter CEO Parag Agrawal. Its mission is to **re‑engineer the open web for artificial‑intelligence agents** – the “second user” of the internet – by providing **high‑accuracy, enterprise‑grade APIs that let AI models retrieve, rank, reason over, and synthesize web data at scale**【5†L1-L4】【31†L1-L4】.
Key capabilities
| Capability | How it works | Why it matters |
|------------|--------------|----------------|
| **Deep Research API** – a structured web‑search and data‑extraction service built for AI agents, delivering multi‑hop reasoning results with verifiable sources and confidence scores. | The platform crawls, indexes and ranks the open web, then runs declarative queries (e.g., “give me the latest 2024‑2025 earnings data for XYZ”) and returns JSON or markdown reports. | Enables AI assistants, coding agents, and enterprise workflows to obtain trustworthy, up‑to‑date information without hallucinations, outperforming GPT‑5 and other leading models on benchmark suites such as BrowseComp and DeepResearch Bench【0†L1-L6】【0†L21-L28】. |
| **Task API** – a higher‑level “research‑as‑a‑service” layer that orchestrates multiple search/retrieval steps, performs synthesis, and can stream progress via Server‑Sent Events (SSE). | Users declare the desired insight; Parallel’s engine decides the optimal sequence of web queries, extracts data, and formats the answer. | Reduces the engineering effort needed to embed web‑research capabilities inside AI products. |
| **Programmatic‑Web Model** – a set of “research engines” (e.g., Ultra1x, Ultra8x) that expose a SQL‑like declarative interface for AI agents to query the web programmatically. | The API abstracts away crawling and ranking; agents simply state *what* they need, not *how* to fetch it. | Aligns the economics of web usage with machine consumption (cost‑per‑request, attribution, value‑based markets). |
| **Developer SDKs (TypeScript, Python, etc.)** – typed client libraries that wrap the APIs, provide error handling and make integration trivial. | The TypeScript SDK, for example, supplies strong‑type interfaces for the Task and Search APIs. | Accelerates adoption by developers building AI‑first applications. |
In short, Parallel builds the **infrastructure that lets AI agents treat the web as a reliable data store**, turning raw pages into structured, citation‑rich knowledge that can be consumed by downstream models or applications.
---
## Recent product launches (last 12 months)
| Launch (date) | Product / Feature | What it adds / why it’s notable |
|---------------|-------------------|---------------------------------|
| **Apr 24 2025** – *Parallel Task API* | First public product – a “research‑as‑a‑service” API for automated web research. | Provides a robust, scalable way for developers to request structured insights, replacing bespoke AI + human pipelines【34†L1-L4】. |
| **Aug 7 2025** – *Server‑Sent Events (SSE) for Task Runs* | Real‑time streaming of task progress, model reasoning and status updates. | Removes polling overhead, enabling responsive UI/UX for long‑running research tasks【33†L1-L4】. |
| **Aug 14 2025** – *Deep Research API performance announcement* (public benchmark results) | Demonstrates >48 % accuracy on BrowseComp and DeepResearch Bench, beating GPT‑5, Claude, Exa, etc. | Positions Parallel as the leading provider of “deep web research” for AI agents【0†L1-L6】【0†L21-L28】. |
| **Early August 2025** – *Parallel Deep Research Reports* (markdown report generation) | Task API can now output fully‑formatted markdown reports with inline citations and source excerpts. | Turns raw JSON research results into publication‑ready documents automatically【36†L1-L4】. |
| **2 days ago (mid‑Aug 2025)** – *TypeScript SDK* (generally available) | Typed client library for all Parallel APIs (Task, Search, etc.). | Gives developers compile‑time safety and easier integration across Node.js, Deno, browsers【7†L1-L4】. |
| **July 31 2025** – *Parallel Search MCP Server* (state‑of‑the‑art search API built for agents) | A dedicated, cost‑effective search layer that outperforms native LLM browsing implementations by up to 50 % cheaper while delivering higher accuracy. | Targets AI agents that need fast, cheap, high‑quality web retrieval【2†L1-L4】. |
| **Oct 2024** – *Stealth emergence & “Programmatic Web” vision release* (first public mention of the platform) | Announcement that Parallel is building a “programmatic web” for AI, introducing the concept of declarative interfaces and value‑based attribution. | Sets the strategic direction that underpins all later product releases【30†L1-L4】. |
> **Note:** All dates are taken from the timestamps displayed on Parallel’s official blog or press articles; the company’s release cadence shows a steady stream of new API features and SDKs throughout 2024‑2025.
---
## Sources
1. **Company overview & mission** – Parallel’s “About” page & blog post “Introducing Parallel” (Aug 14 2025).【5†L1-L4】【31†L1-L4】
2. **Deep Research API benchmark results** – Blog “Introducing Parallel” (performance claim).【0†L1-L6】【0†L21-L28】
3. **Parallel Task API launch** – Blog “Introducing the Parallel Task API” (Apr 24 2025).【34†L1-L4】
4. **SSE for Task Runs** – Blog “Introducing SSE for Task Runs” (Aug 7 2025).【33†L1-L4】
5. **Deep Research Reports** – Blog “Introducing Parallel Deep Research reports” (early Aug 2025).【36†L1-L4】
6. **TypeScript SDK** – Blog “Introducing the Typescript SDK” (mid‑Aug 2025).【7†L1-L4】
7. **Search MCP Server** – Blog “A state‑of‑the‑art search API purpose‑built for agents” (Jul 31 2025).【2†L1-L4】
8. **Programmatic Web vision** – “About Parallel” section (Oct 2024 emergence).【30†L1-L4】
9. **Media coverage & company background** – Various news articles (e.g., Economic Times, Entrepreneur, Bloomberg) confirming focus on AI‑first web infrastructure and funding.【0†L1-L4】【31†L1-L4】
*(All links were retrieved via a single parallel‑web search that aggregated recent web results.)*
================================================================================
SEARCH DETAILS: Found 1 parallel web searches:
--------------------------------------------------
Search #1
Type: mcp
Tool Name: web_search_preview
Server: parallel_web_search
Arguments: {'include_domains': [], 'objective': 'Gather information about Parallel Web Systems company, its business activities, and any product launches or announcements made in the past year (2023-2024/2025).', 'search_queries': ['Parallel Web Systems company', 'Parallel Web Systems product launch 2024', 'Parallel Web Systems new product 2023'], 'search_type': 'list'}
Sources found: 30 URLs
1. https://parallel.ai/blog/introducing-parallel
2. https://parallel.ai/
3. https://parallel.ai/blog/search-api-benchmark
4. https://builtin.com/company/parallel-web-systems
5. https://parallel.ai/blog?tag=product-release
... and 25 more sources
Demo 2: Compare OpenAI vs Groq Latency
Now let's compare the latency and performance between different providers on the same research task. This will show you the speed differences between OpenAI and Groq.
⚡ DEMO 2: OpenAI vs Groq Latency Comparison ============================================================ ⚖️ COMPARING CLIENTS: groq_cloud, openai_gpt5 ============================================================
🔍 Researching Anthropic using groq_cloud... Provider: groq Model: openai/gpt-oss-120b Base URL: https://api.groq.com/openai/v1
🔍 Researching Anthropic using openai_gpt5... Provider: openai Model: gpt-5 Base URL: https://api.openai.com/v1
📊 DETAILED LATENCY BREAKDOWN: ---------------------------------------- 1. groq_cloud (groq) Model: openai/gpt-oss-120b Response Time: 11.15s Content Length: 5263 chars MCP Calls: 1 Chars/sec: 472.2 2. openai_gpt5 (openai) Model: gpt-5 Response Time: 88.38s Content Length: 3711 chars MCP Calls: 1 Chars/sec: 42.0 💾 Detailed comparison saved to latency_comparison_anthropic_20250918_164358.json
Next Steps & Advanced Usage
Production Integration
# Example: Batch research multiple companies
companies_to_research = ["OpenAI", "Anthropic", "Google", "Microsoft"]
all_results = {}
for company in companies_to_research:
print(f"Researching {company}...")
all_results[company] = research_company(company)
# Now you have comprehensive intelligence on all companies!
Customization Options
You can modify the research function for different use cases:
- Financial Analysis: Ask about quarterly results, stock performance, market position
- Technology Research: Focus on patents, R&D, technical capabilities
- Competitive Intelligence: Compare multiple companies side-by-side
- News Monitoring: Track recent announcements, press releases, partnerships
Additional Resources
- Groq Documentation: console.groq.com/docs
- Parallel API: docs.parallel.ai
- MCP: modelcontextprotcol.io
Pro Tips
- Use streaming (
stream=True) for real-time responses as they generate - Batch requests for multiple companies to maximize efficiency
- Cache results for repeated queries to save API costs
- Customize search objectives for domain-specific research needs
Summary
You've just experienced fast AI-powered research that combines:
- Fast responses (3-10 seconds)
- Real-time web data with current information
- Source transparency with full citation details
This approach enables you to build applications that need both speed and accuracy for real-time research tasks.