Mcp Exa
Groq + Exa MCP: Real-Time Web Search
This notebook shows Python developers how to connect Groq with Exa MCP's web search tools. Exa MCP helps AI models get current information from the internet. Exa provides smart web search that can find relevant content.
We will do this in three simple steps:
- Set up Groq client for fast AI responses.
- Set up Exa MCP server for web search and content crawling.
- Connect them together using the Responses API.
Getting Started
Follow these steps to set up:
- Sign up for Exa at dashboard.exa.ai to get your free API key.
- Sign up for Groq at console.groq.com to get your free API key.
- Copy your API keys from your Exa and Groq account dashboards.
- Paste your API keys into the cell below and run the cell.
Choose the AI model for our responses. We'll use OpenAI's gpt-oss-120b model, which runs very fast on Groq.
Step 1: Set up the Groq client
Step 2: Set up Exa's remote MCP server
Step 3: Connect Groq to the Exa MCP through Groq's OpenAI-compatible Responses API
Let's create a helper function to show what tools were used and their results. This helps us see exactly what Exa did behind the scenes.
Available Exa Tools
Exa MCP provides several powerful tools for different types of research and search:
| Tool | Description |
|---|---|
web_search_exa | Smart web search that finds relevant content using AI |
company_research | Research companies by crawling their official websites |
crawling | Extract content from specific URLs (articles, PDFs, web pages) |
linkedin_search | Search LinkedIn for companies and people |
deep_researcher_start | Start an AI researcher for complex questions with multiple sources |
deep_researcher_check | Check if deep research is complete and get the report |
Demo 1: Web Search
Let's display the agent's response in markdown format.
Let's examine the agent's intermediate steps, including how it uses Exa's search capabilities.
Demo 2: Try it Yourself
Now it's your turn! Replace the query with some real-time information you want to discover using Exa's search capabilities.
Summary
You've just experienced the power of combining Groq's fast responses with the Exa Web Search MCP.
🔍 Exa Web Search MCP
Description: Exa MCP is a powerful web search and web crawling MCP. It lets you do real-time web searches, extract content from any URL, and even run deep research for detailed reports.
Resources:
- 📖 Documentation: https://docs.exa.ai/reference/exa-mcp
- 🔧 Open Source: https://github.com/exa-labs/exa-mcp-server/
Available Tools:
web_search_exa- Web search for realtime and correct infocompany_research- Business research by crawling websitescrawling- Extract content from specific URLslinkedin_search- Professional network researchdeep_researcher_start- Start comprehensive research reportdeep_researcher_check- Get the completed research report
Resources:
- Explore the Exa MCP documentation
- View the Exa MCP opensource code
- Check out the Exa website