4,500+ servers built on MCP Fusion
Vinkius
Campinas Open Data logo
Vinkius
Mastra AI logo

How to Use the Campinas Open Data MCP in Mastra AI

Build resilient, automated data pipelines for Campinas public data using Mastra AI's workflow engine.

See Vinkius in Action

Works with every AI agent you already use

…and any MCP-compatible client

Campinas Open Data MCP on Cursor AI Code Editor MCP Client Campinas Open Data MCP on Claude Desktop App MCP Integration Campinas Open Data MCP on OpenAI Agents SDK MCP Compatible Campinas Open Data MCP on Visual Studio Code MCP Extension Client Campinas Open Data MCP on GitHub Copilot AI Agent MCP Integration Campinas Open Data MCP on Google Gemini AI MCP Integration Campinas Open Data MCP on Lovable AI Development MCP Client Campinas Open Data MCP on Mistral AI Agents MCP Compatible Campinas Open Data MCP on Amazon AWS Bedrock MCP Support
MCP Servers - Free for Subscribers
Mastra AI

Connect Campinas Open Data MCP to Mastra AI

Create your Vinkius account to connect Campinas Open Data 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.

GDPR Free for Subscribers

Automate Data Discovery Workflows

Set up a Mastra AI agent to monitor the Campinas data portal on a schedule. Your workflow can run `search_packages` every night, looking for new datasets tagged with 'finance' or 'transport'. When it finds one, it can automatically use `get_package` to pull the details and save them to your database. This is a hands-off way to keep your own systems in sync with public data sources. You define the workflow once, and Mastra's engine runs it for you. It's scheduled, automated data gathering.

Create Conditional Data Pipelines

Mastra AI's real strength is conditional logic. You can build a workflow that tries to find a specific dataset with `search_resources`. If that search comes up empty, your workflow can branch, call `list_tags` to find related terms, and then run a new, broader search. This lets you build smarter agents that don't just fail when something isn't found. They can adapt their strategy based on the results of previous tool calls, making your data pipelines more robust.

Resilient Syncing with this MCP Server

Public data portals can be flaky. Mastra AI's built-in retry logic solves that problem. You can build an agent that uses `list_packages` to get every dataset, then loops through them with `get_package` to fetch all metadata. If a network error or API timeout occurs, Mastra automatically retries the call. Your job doesn't crash. The workflow pauses and tries again, using exponential backoff to avoid hammering the server. This makes the Campinas data MCP server a reliable source for your production workflows.

Setup guide

Set up Campinas Open Data MCP in Mastra AI

Prerequisites

  • Node.js 18+ and a TypeScript project
  • @mastra/mcp + @mastra/core packages
  • Active Vinkius subscription with a valid endpoint token
  1. 1

    Install dependencies

    Run npm install @mastra/mcp @mastra/core plus your preferred model provider (e.g. @ai-sdk/openai).

  2. 2

    Configure the MCPClient

    Create an MCPClient with your Vinkius endpoint as a URL object. Replace [YOUR_TOKEN_HERE] with your token from cloud.vinkius.com.

  3. 3

    Discover and inject tools

    Call mcpClient.listTools() and spread the result into your agent's tools object. All Campinas Open Data tools become native Mastra tools.

  4. 4

    Run with any model

    Swap openai("gpt-4o") for any AI SDK-compatible provider. Call agent.generate() and the agent routes tool calls through MCP automatically.

agent.ts
import { MCPClient } from "@mastra/mcp";
import { Agent } from "@mastra/core/agent";
import { openai } from "@ai-sdk/openai";

const mcpClient = new MCPClient({
  id: "campinas-open-data-mcp-client",
  servers: {
    "campinas-open-data-mcp": {
      url: new URL(
        "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
      ),
    },
  },
});

const agent = new Agent({
  name: "Campinas Open Data Agent",
  model: openai("gpt-4o"),
  instructions: "You have access to Campinas Open Data tools.",
  tools: {
    ...(await mcpClient.listTools()),
  },
});

const result = await agent.generate(
  "List recent Campinas Open Data 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 Campinas Open Data Portal. 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 Campinas Open Data MCP in Mastra AI

You define an agent with a cron trigger in your Mastra workflow configuration. That agent can then use the `search_packages` tool with a date filter to find new datasets published since its last run.
Yes, automatically. Mastra AI has built-in support for retries with exponential backoff. If a call to `get_package` fails due to a temporary network issue, your agent will wait and try again without you writing any extra code.
You just chain the tool calls. For instance, an agent can first call `list_organizations`, pass that output to a step that decides which organization to focus on, and then call `search_packages` filtered by that organization ID. Each step's output can be the next step's input.
Yes. You can configure `requireToolApproval` on the MCP Client. When your agent wants to use a tool like `get_package`, the workflow will pause and wait for a person to approve the action before it proceeds.
Absolutely. The server only processes public data identifiers and metadata; no sensitive information is ever involved. Your agent's connection is authenticated with a unique token, and every operation runs in a separate, sandboxed Vinkius environment.

Start using the Campinas Open Data MCP today

We host it, we monitor it, we maintain it. You just paste one token.

Built & Managed by Vinkius 30s setup 8 tools

We've already built the connector for Campinas Open Data. Just plug in your AI agents and start using Vinkius.

No hosting. No infrastructure. No complex setup.
All 8 tools are live and waiting. You're up and running in seconds.

Claude Claude
ChatGPT ChatGPT
Cursor Cursor
Gemini Gemini
Windsurf Windsurf
VS Code VS Code
JetBrains JetBrains
Vercel Vercel
+ other MCP clients

Vinkius gives your AI agents access to the full catalog of app connectors, all fully managed, secure, and enterprise-ready. One subscription, every tool you need.

Zero hosting required Full MCP catalog included Enterprise-grade security Auto-updated by Vinkius

Built, hosted, and secured by Vinkius. You just connect and go.