mcpField
E
exa-research

exa-research

github.com/ejirocodesProductivity6244 installsUpdated 18w ago
Repository

About exa-research

exa-research is a skill for using Exa’s Answer API, Deep Search, and research features. It helps developers build cited answers, expanded search results, and long-form reports.

Key features

  1. 01Cited answers with source URLs
  2. 02Streaming answer output
  3. 03Deep Search with query expansion
  4. 04Long-form research reports

Use cases

  1. 01Answering questions with verifiable sources
  2. 02Streaming long responses
  3. 03Finding and summarizing recent developments

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/ejirocodes/agent-skills --skill exa-research

After installing, type/exa-researchin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
answer-api.md
citations.md
deep-search.md

Details

From the project README

Exa Research & Answer API

Quick Reference

TopicWhen to UseReference
Answer APIQ&A with citations, grounded responsesanswer-api.md
Deep SearchSmart query expansion, high-quality summariesdeep-search.md
CitationsSource attribution, verificationcitations.md

Essential Patterns

Answer API (Python)
from exa_py import Exa

exa = Exa()

response = exa.answer(
    "What are the key features of Python 3.12?",
    text=True
)

print(response.answer)
for citation in response.citations:
    print(f"Source: {citation.url}")
Streaming Answers
stream = exa.answer(
    "Explain the benefits of microservices architecture",
    stream=True
)

for chunk in stream:
    print(chunk.text, end="", flush=True)

# Access citations after streaming
print("\nSources:", stream.citations)
Deep Search with Summaries
results = exa.search_and_contents(
    "latest developments in quantum computing",
    type="neural",
    num_results=10,
    summary=True,
    use_autoprompt=True  # Smart query expansion
)

for result in results.results:
    print(f"{result.title}")
    print(f"Summary: {result.summary}")

When to Use

FeatureUse CaseOutput
Answer APIDirect Q&A needing citationsAnswer + source URLs
Deep SearchQuery expansion + summariesEnhanced search results
Exa ResearchLong-form async reportsStructured JSON/Markdown

Common Mistakes

  1. Not using streaming for long answers - Use stream=True for better UX on complex questions
  2. Ignoring citations - Always include response.citations for verifiable responses
  3. Missing text=True - Answer API needs content access; include text=True
  4. Over-complex queries - Answer API works best with clear, focused questions
  5. Not validating citations - Check citation.url exists before displaying to users

Comments

Markdown supported