How to Use the Clearscope MCP in Mastra AI
Build unstoppable SEO automation workflows on Clearscope with Mastra AI. Handle failures, chain jobs, and deploy with one command.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Clearscope MCP to Mastra AI
Create your Vinkius account to connect Clearscope 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.
Automate Content Briefs
Create workflows that automatically generate content briefs for your team. A Mastra AI agent can start by running `get_keyword_research`, then use conditional logic to decide the next step. If the keyword has high potential, it proceeds to `create_report` and `get_outline` to build a complete brief. If a step fails—say, a report doesn't generate correctly—Mastra's engine can automatically retry the `create_report` call with exponential backoff. You build a process that runs on its own and reliably delivers results, notifying you only when it's done.
Build Resilient SEO Audits
Auditing a whole site's worth of content is tedious and prone to failure. With Mastra AI, you can build an agent that fetches a list of URLs and then calls `grade_content` for each one in a loop. It's a simple, powerful automation. The real advantage is resilience. If one of the grading calls times out or fails, the workflow doesn't just crash. Mastra AI can be configured to catch the error, log the problematic URL, and continue with the rest of the audit. That's how you build automation you can actually trust.
Chain SEO Operations in Mastra AI
This Clearscope MCP Server lets you connect SEO tasks into a single, cohesive workflow. For instance, an agent can `list_reports`, pick the most recent one, and then use `get_report_details` to extract its core properties. From there, it can fetch competitor data with `list_competitors`. Finally, the agent can synthesize this information and send a summary to a Slack channel. Mastra AI excels at managing these multi-step processes, passing context from one tool to the next to execute a complex job without any manual intervention.
Set up Clearscope 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 Clearscope 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: "clearscope-mcp-client",
servers: {
"clearscope-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "Clearscope Agent",
model: openai("gpt-4o"),
instructions: "You have access to Clearscope tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent Clearscope 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 Clearscope. 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 Clearscope MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Clearscope MCP today
We host it, we monitor it, we maintain it. You just paste one token.