How to Use the RentCast MCP in Mastra AI
Build resilient, multi-step real estate valuation workflows with Mastra AI and live property data.
Works with every AI agent you already use
…and any MCP-compatible client
Connect RentCast MCP to Mastra AI
Create your Vinkius account to connect RentCast to Mastra AI — we handle the hosting, security, and runtime updates so you don't have to. No server setup required.
Key Capabilities
Trigger valuation retries automatically with Mastra AI
The `get_rental_valuation` tool calculates rental pricing estimates for any property address. If the source API rate limit triggers, Mastra's engine catches the failure and retries with exponential backoff. This means your agent continues evaluating properties without crashing mid-run. Your workflow handles the error state silently, returning data once the connection succeeds.
Branch your real estate analysis based on live metrics
The `get_property_details` tool extracts deep property specifications like square footage, year built, and construction type. You can write conditional logic that routes older buildings to specialized inspectors. If the property details meet your criteria, Mastra triggers `get_sale_valuation` to estimate the market value. This logic runs entirely on your server, keeping your agent's execution path clean and predictable.
Approve high-value RentCast property deals before executing
The `get_sale_comparables` tool identifies recently sold homes in the immediate area to validate pricing. For multi-million dollar assets, you can pause the agent workflow until a human reviews the comps. Mastra holds the execution state until you approve or reject the data in your admin panel. Once approved, the system automatically triggers the next step to draft an offer letter.
Set up RentCast MCP in Mastra AI
Prerequisites
- Node.js 18+ and a TypeScript project
-
@mastra/mcp+@mastra/corepackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
npm install @mastra/mcp @mastra/coreplus your preferred model provider (e.g.@ai-sdk/openai). - 2
Configure the MCPClient
Create an
MCPClientwith your Vinkius endpoint as aURLobject. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 3
Discover and inject tools
Call
mcpClient.listTools()and spread the result into your agent'stoolsobject. All RentCast tools become native Mastra tools. - 4
Run with any model
Swap
openai("gpt-4o")for any AI SDK-compatible provider. Callagent.generate()and the agent routes tool calls through MCP automatically.
import { MCPClient } from "@mastra/mcp";
import { Agent } from "@mastra/core/agent";
import { openai } from "@ai-sdk/openai";
const mcpClient = new MCPClient({
id: "rentcast-mcp-client",
servers: {
"rentcast-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "RentCast Agent",
model: openai("gpt-4o"),
instructions: "You have access to RentCast tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent RentCast transactions"
);
console.log(result.text); Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by RentCast. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about RentCast MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the RentCast MCP today
We host it, we monitor it, we maintain it. You just paste one token.