> SpecStream is the live web data engine for teams and agents. This is the Markdown copy of https://specstream.ai/integrations/mastra. Every page, with what SpecStream does and costs: https://specstream.ai/llms.txt

# SpecStream for Mastra

SpecStream is the live web data engine for teams and agents. Point @mastra/tavily at SpecStream's address, and a Mastra agent's search and extract tools answer from the live web on your SpecStream key.

[Read the guide](https://specstream.ai/docs/integrations/mastra.md)

## What you get

Two options to change

Pass apiKey and apiBaseURL to createTavilySearchTool and createTavilyExtractTool. The tools, their IDs and their output stay as they were.

Search, then read

The search tool returns titles, links and text in Tavily's shape, and the extract tool returns each page's full text.

Or the MCP server

MCPClient with https://api.specstream.ai/mcp adds Deep Search for structured lists, priced before they run.

Status

Live

Category

[Agent frameworks & builders](https://specstream.ai/integrations.md#frameworks)

Built by

SpecStream

You need

A Mastra project and a SpecStream API key.

Pricing

[You pay for the matches](https://specstream.ai/pricing.md)

Setup guide

[Read the guide](https://specstream.ai/docs/integrations/mastra.md)

Help

[Talk to a human](https://specstream.ai/talk-to-a-human.md)

## Set it up

1.  Run npm install @mastra/tavily @tavily/core zod.
2.  Create the tools with apiKey set to your SpecStream key and apiBaseURL set to https://api.specstream.ai/tavily.
3.  Pass them to your Agent's tools and ask with generate.

[The full setup guide](https://specstream.ai/docs/integrations/mastra.md) has every step, with what to do if something doesn’t arrive.

## Also in Agent frameworks & builders

The same live web data, in the other tools of this kind.

-   [OpenAI API](https://specstream.ai/integrations/openai.md)
-   [OpenAI Agents SDK](https://specstream.ai/integrations/openai-agents-sdk.md)
-   [LangChain](https://specstream.ai/integrations/langchain.md)
-   [LlamaIndex](https://specstream.ai/integrations/llamaindex.md)
-   [CrewAI](https://specstream.ai/integrations/crewai.md)
-   [Vercel](https://specstream.ai/integrations/vercel.md)
-   [Haystack](https://specstream.ai/integrations/haystack.md)
-   [See all](https://specstream.ai/integrations.md#frameworks)

## Live web data, in Mastra.

Ask in your own words for companies, places, people, filings or anything else the web lists.

[Read the guide](https://specstream.ai/docs/integrations/mastra.md)[Talk to a human](https://specstream.ai/talk-to-a-human.md)
