Use Metix AI Platform with Grok
Grok Build and the xAI API both connect to remote MCP servers with a header, so the same key works in the terminal and in code.
Grok BuildWorks today
xAI APISupported
Grok on the web and Grok BotSupported
Free plan: 100 API Credits once, no card.
>Find five machine learning engineers in San Francisco, then read the records behind the ids.
●metixmetix_search_people
{"text": "machine learning engineers in San Francisco", "size": 5}
↳ 5 profile_ids · 6 API Credits
●metixmetix_get_profiles
{"profile_ids": [5 ids]}
↳ 5 found, 0 missing · 1 API Credit
Five ML engineers in San Francisco, all five records loaded:
- ML EngineerAI platform startup · since 2023
- ML EngineerEnterprise AI startup · since 2025
- ML EngineerLarge US bank · since 2024
- ML EngineerCloud content company · since 2025
- ML EngineerRide-hailing company · since 2021
7 API Credits · real run in Grok Build, 2026-09-24, names removed
Keep the single quotes: Grok Build expands ${METIX_KEY} itself when it connects, so the key stays in your environment and out of ~/.grok/config.toml. Grok Build also reads servers you registered for Claude Code or Cursor, so you may already have it.
grok mcp add --transport http metix \
https://mira-api.metix.ai/mcp \
--header 'Authorization: Bearer ${METIX_KEY}'Then
grok mcp doctor should show metix with the handshake OK and 10 tools. Then ask for what you want; Grok Build picks the tools. Grok Build runs tools without asking when you pass --always-approve, so give the key a cap first.
Ask it first
Find five machine learning engineers in San Francisco, then read the records behind the ids.The xAI SDK sends the key as the Authorization header on each call to the server.
import os
from xai_sdk import Client
from xai_sdk.chat import user
from xai_sdk.tools import mcp
client = Client(api_key=os.environ["XAI_API_KEY"])
chat = client.chat.create(
model="grok-4",
tools=[mcp(
server_url="https://mira-api.metix.ai/mcp",
server_label="metix",
authorization=os.environ["METIX_KEY"],
)],
)
chat.append(user("Find three open data engineer roles in Austin."))
print(chat.sample().content)Then
The model calls the tools server side and returns its answer.
In the apps
These apps add tools through their own connector settings. The quickest start is the tool beside each, which takes your key directly.
- Grok on the web and Grok Bot · quickest with Grok BuildSupported
Questions
Can I add it on grok.com or to Grok Bot?
Both add tools in their own connector settings. The quickest start is Grok Build or the xAI API, which take your key directly.
What does it cost?
The same as any other use of the API. A search costs one API Credit per 25 results and reading records costs one per 5; natural-language search adds a 5 API Credit base. The free plan includes 100 API Credits once, with no card.
Can I limit what an agent spends?
Yes. On the API keys page, give the key the agent uses a cap in API Credits. Many agents call tools without asking you each time, and a capped key stops at the cap. Revoking a key stops it on the next call.
Why did one question cost hundreds of API Credits?
Questions that rank or count across everything, such as "which companies posted the most data engineer roles", have no single call that answers them, so an agent may read every match to count it. In one test, Grok Build pulled all 8,799 matching postings for that question and used about 390 API Credits. Ask for a handful instead ("five recent data engineer postings"), keep a cap on the key, and ask the agent to tell you before a call returns more than 100 results.
Can it find email addresses or phone numbers?
Yes, for any account that has paid, a plan or a top-up, billed per value found: 3 API Credits for a work email, 8 for a personal email, 15 for a phone. Unlock is a REST call, not an MCP tool, so install the skills and the agent makes the call for you. The Platform does not send outreach or book interviews; for that, use Mira at metix.ai.
Mira Credits or API Credits?
API Credits. They are the Metix AI Platform's usage unit. Mira Credits, sold with hiring plans on metix.ai, are a different unit, and the two are not interchangeable.
Claude and Claude Code are trademarks of Anthropic. ChatGPT, Codex and OpenAI are trademarks of OpenAI. Grok is a trademark of xAI. Muse and Meta are trademarks of Meta Platforms. The Metix AI Platform is not affiliated with, sponsored by or endorsed by any of them.