Exa is an AI-native search engine built specifically for LLMs. Unlike keyword-based search, Exa understands meaning and context, returning high-quality results that AI models can process. Combined with Groq's fast inference through MCP, you can build intelligent search applications that find exactly what you need in seconds.
Key Features:
pip install openai python-dotenvexport GROQ_API_KEY="your-groq-api-key"
export EXA_API_KEY="your-exa-api-key"import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.groq.com/api/openai/v1",
api_key=os.getenv("GROQ_API_KEY")
)
tools = [{
"type": "mcp",
"server_url": f"https://mcp.exa.ai/mcp?exaApiKey={os.getenv('EXA_API_KEY')}",
"server_label": "exa",
"require_approval": "never",
}]
response = client.responses.create(
model="openai/gpt-oss-120b",
input="Find recent breakthroughs in quantum computing research",
tools=tools,
temperature=0.1,
top_p=0.4,
)
print(response.output_text)Deep dive into a company:
response = client.responses.create(
model="openai/gpt-oss-120b",
input="""Research Anthropic:
- What they do
- Main products
- Recent news and announcements
- Company size and funding
Use company_research tool""",
tools=tools,
temperature=0.1,
)
print(response.output_text)Extract and analyze article content:
response = client.responses.create(
model="openai/gpt-oss-120b",
input="""Extract content from these AI inference articles:
- https://example.com/article1
- https://example.com/article2
Summarize key points and trends""",
tools=tools,
temperature=0.1,
)
print(response.output_text)Find companies in specific industries:
response = client.responses.create(
model="openai/gpt-oss-120b",
input="""Find AI infrastructure startups on LinkedIn:
- 50-200 employees
- SF or NYC
- Founded last 3 years
Use linkedin_search for detailed profiles""",
tools=tools,
temperature=0.1,
)
print(response.output_text)| Tool | Description |
|---|---|
web_search_exa | Semantic web search understanding meaning and context |
company_research | Research companies by crawling official websites |
crawling | Extract complete content from specific URLs |
linkedin_search | Search LinkedIn with specific criteria |
deep_researcher_start | Begin comprehensive multi-hop research |
deep_researcher_check | Check status and retrieve completed reports |
Challenge: Build an automated market intelligence system that monitors your industry for competitors, tracks technology trends, identifies customers, and generates weekly reports!