How to Use the BCB Economia — PIB, Dívida, Reservas, PIX e SGS MCP in Vercel AI SDK
Stream live Brazilian economic data straight into your React apps with Vercel AI SDK.
Works with every AI agent you already use
…and any MCP-compatible client
Connect BCB Economia — PIB, Dívida, Reservas, PIX e SGS MCP to Vercel AI SDK
Create your Vinkius account to connect BCB Economia — PIB, Dívida, Reservas, PIX e SGS to Vercel AI SDK and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Build Live PIX Dashboards with Vercel AI SDK
`get_pix_estatisticas` and `get_pib` pull direct transaction volumes and monthly IBC-Br metrics from the Central Bank of Brazil. You wire these endpoints into your Next.js frontend to show end-users exactly how fast the payment system is growing. Streaming responses mean the charts populate instantly while the LLM generates the context. Your users never look at a loading spinner. The AI client grabs the raw JSON payload and pipes it through the HTTP transport directly to the browser. This setup turns static financial reports into live interactive views.
Stream Fiscal Sustainability Metrics
`get_divida_pib` combined with `get_reservas` gives your application immediate access to Brazil's public debt ratios and USD reserves. Developers building sovereign risk tools need this data hitting the UI the second the user asks for it. The Vinkius MCP Server handles the connection so your code just calls the tool and renders the result. We built this for speed. Passing these endpoints to `streamText` lets your Vue or Svelte components react to the data feed in real time. The moment the Central Bank updates their numbers, your dashboard reflects the change.
Access 20,000+ Time Series Live
`get_serie_bcb` taps directly into the Sistema Gerenciador de Séries Temporais, letting you pull everything from Selic rates to IPCA inflation. Add `get_balanca_comercial` and `get_desemprego` to the mix to round out the macroeconomic picture. You just feed the series code to the agent, and the data flows back as a continuous text stream. Building custom economic screeners used to require writing custom scrapers. Now you pass the MCP client to your generation function and let the LLM figure out which SGS code the user wants. Close the client when the stream finishes, and you have a production-ready financial tool.
Set up BCB Economia — PIB, Dívida, Reservas, PIX e SGS MCP in Vercel AI SDK
Prerequisites
- Node.js 18+ and a TypeScript project
-
ai+@modelcontextprotocol/sdkpackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
npm install ai @modelcontextprotocol/sdkplus your preferred model provider (e.g.@ai-sdk/openai). - 2
Create the Streamable HTTP transport
Use
StreamableHTTPClientTransportwith your Vinkius endpoint URL. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 3
Discover and use tools
Call
mcpClient.tools()to auto-discover all BCB Economia — PIB, Dívida, Reservas, PIX e SGS tools. Pass them directly togenerateText()orstreamText()— no manual schema definitions needed. - 4
Works with any model provider
Swap
openai("gpt-4o")for any AI SDK provider — Anthropic, Google, Mistral. The MCP tools work identically across all supported models.
import { experimental_createMCPClient as createMCPClient } from "ai";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp";
import { generateText } from "ai";
import { openai } from "@ai-sdk/openai";
const transport = new StreamableHTTPClientTransport(
new URL("https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp")
);
const mcpClient = await createMCPClient({ transport });
const tools = await mcpClient.tools();
const { text } = await generateText({
model: openai("gpt-4o"),
tools,
prompt: "List recent BCB Economia — PIB, Dívida, Reservas, PIX e SGS transactions",
});
console.log(text);
await mcpClient.close(); Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Banco Central do Brasil. 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 BCB Economia — PIB, Dívida, Reservas, PIX e SGS MCP in Vercel AI SDK
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the BCB Economia — PIB, Dívida, Reservas, PIX e SGS MCP today
We host it, we monitor it, we maintain it. You just paste one token.