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.
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.
Set it up
- Run npm install @mastra/tavily @tavily/core zod.
- Create the tools with apiKey set to your SpecStream key and apiBaseURL set to https://api.specstream.ai/tavily.
- Pass them to your Agent's tools and ask with generate.
The full setup guide has every step, with what to do if something doesn’t arrive.
Live web data, in Mastra.
Ask in your own words for companies, places, people, filings or anything else the web lists.