How to Use the ChangeDetection.io MCP in Mastra AI
Build self-healing website monitoring workflows using Mastra AI and the ChangeDetection.io MCP Server.
Works with every AI agent you already use
…and any MCP-compatible client
Connect ChangeDetection.io MCP to Mastra AI
Create your Vinkius account to connect ChangeDetection.io to Mastra AI and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Automated Change Verification Workflows with Mastra AI
This ChangeDetection.io MCP Server integrates with Mastra AI workflows to automate multi-step verification runs. When a watch triggers, your workflow uses `get_snapshot` to fetch the latest HTML. Mastra AI evaluates the content and, if a critical change is detected, branches to run `get_snapshot_diff`. This lets your system isolate the exact edit before notifying your team.
Self-Healing Watch Management
This server provides `update_watch` to modify tracking parameters dynamically when errors occur. If a target site changes its structure, your Mastra AI agent catches the failure and updates the watch configuration. The workflow engine uses automatic retries with exponential backoff if the target site rate-limits the checker. You don't write custom retry loops; Mastra AI handles the network hiccups while managing your watch list via `list_watches`.
Human-in-the-Loop Tag Organization
This toolset uses `create_tag` and `list_tags` to categorize monitored URLs. Mastra AI agents sort new targets into tags based on content analysis. You configure `requireToolApproval` in Mastra AI before executing `delete_watch`. This ensures an operator manually confirms any deletion request generated by the autonomous agent.
Set up ChangeDetection.io 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 ChangeDetection.io 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: "changedetectionio-mcp-client",
servers: {
"changedetectionio-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "ChangeDetection.io Agent",
model: openai("gpt-4o"),
instructions: "You have access to ChangeDetection.io tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent ChangeDetection.io 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 ChangeDetection.io. 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 ChangeDetection.io MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the ChangeDetection.io MCP today
We host it, we monitor it, we maintain it. You just paste one token.