Claude and AI
Grok API with remote MCP: using Vazante inside your own workflow
How to pass Vazante as a remote MCP tool in the xAI API: parameters, the Vazante API key, allowed_tools for read-only use and what you cannot do.
Also available in: Português · Español
Developers can use Vazante straight from the xAI API, without the connectors screen: you pass the server as a remote MCP tool. It is the path for an automated report, an internal bot or a routine that asks Grok about the campaigns every morning. The interface connection is in how to connect Vazante to Grok; this is the code-side version.
What xAI's documentation asks for
The remote MCP tool is available in the native xAI SDK, the OpenAI-compatible Responses API and the Vercel AI SDK. The main parameters:
| Parameter | Required | What it is for |
|---|---|---|
server_url | Yes | The MCP server address. Only Streamable HTTP and SSE are accepted |
server_label | Yes | A label, used as a prefix on tool calls |
server_description | No | Describes what the server offers |
allowed_tools | No | List of permitted tools (empty allows all) |
authorization | No | Token sent in the Authorization header |
headers | No | Extra headers |
In the native xAI SDK the names are allowed_tool_names and extra_headers; in the Vercel AI SDK, the same parameters in camelCase. In the Responses API, require_approval and connector_id are not supported today, according to the documentation.
The values for Vazante
server_url:https://vazante.app/api/mcpserver_label:vazanteauthorization: an API key created under Account and team in Vazante
With no login screen there is no interactive OAuth flow, so the API key replaces the click on Authorize. It goes in the Authorization header. Treat it like a password: keep it out of repositories, front-end code and screenshots.
Read-only, the right way
xAI's documentation explains that, without allowed_tools, every tool definition from the server enters the model's context. For an integration that only queries, list only the read tools. Two advantages: the context gets smaller, and the model has no way to call a write tool even if malicious text tries to steer it.
Vazante's read tools are the query ones (Meta Ads, Google Ads, TikTok Ads, Instagram, Facebook Pages, available fields, creatives, forms and history). The list with exact names is at /grok-connector. Copy from there, not from memory.
The server's guards still apply
Even when you allow writes, Vazante's guardrails live on the server: per-action cap, creation always paused, history logging and the account owner's write key. The confirmation the interface shows a user does not exist in a routine with no human: if you automate write actions, the per-action cap becomes your main protection. Set it low and keep writes off for integrations that don't need them.
When to use the API and when to use the screen
| Situation | Best path |
|---|---|
| You chat and ask for actions | Grok's connectors screen |
| A report goes out every day without you | API with a key and read-only allowed_tools |
| A team uses Grok day to day | Grok Business with the admin registering it |
| A flow in n8n, Zapier or Make | Vazante's MCP connector or REST API |
To decide between MCP and classic automation, see MCP vs Zapier. For the standard underneath, what MCP is.
Next step
Create an API key under Account and team, set allowed_tools to reads only, run a test question and check the numbers against the ad manager. Plans are on the pricing page. Vazante's REST API sits on the Agency and Scale plans; the MCP connector works on all, and the first 7 days cost US$ 2.99.
Frequently asked questions
How do I use Vazante through the xAI API?
Pass a tool of type mcp with server_url set to https://vazante.app/api/mcp and a server_label, in the xAI SDK, the OpenAI-compatible Responses API or the Vercel AI SDK.
How do I authenticate without the login screen?
Create an API key under Account and team in Vazante and send it in the tool's authorization field. It goes in the Authorization header.
How do I keep the integration read-only?
Use allowed_tools (allowed_tool_names in the native xAI SDK) listing only the read tools. The model then sees only those tools.
Which transports does the API accept?
Streamable HTTP and SSE. Vazante's server uses streamable HTTP.