Grok MCP

Generate a Grok Bot connector from OpenAPI.

Sourced turns an OpenAPI spec into a Grok-ready remote MCP connector pack: server scaffold, allowlist, safety report, xAI SDK example, OpenAI-compatible Responses API example, cURL snippet, and hosted deployment checklist.

  • InputOpenAPI spec
  • LanguagesTS + Python
  • DocsPreview + llms.txt
  • ReleaseLaunch checks

01Outputs

What Sourced generates

01

A TypeScript MCP server scaffold with one generated, classified tool per OpenAPI operation.

02

A Grok connector JSON file using server_url, server_label, server_description, and allowed_tools.

03

xAI native SDK and OpenAI-compatible SDK examples for the same remote MCP endpoint.

04

A cURL example against https://api.x.ai/v1/responses for teams that want to test outside an SDK.

05

A safety report that separates read, sensitive read, write, and destructive operations before Grok sees them.

02Details

The UX target

01

Upload the OpenAPI spec once.

02

Review the generated safe allowlist and deployment checklist in the same page.

03

Download the deployable pack, commit it to your own repo, and keep every external write owner-approved.

04

When a remote host needs a URL, paste only the deployed HTTPS /mcp endpoint. The connector files are generated for you.

03Details

Grok-specific safety rule

01

xAI remote MCP does not currently support OpenAI's require_approval or connector_id fields.

02

That means allowed_tools is the primary guardrail for Grok.

03

Sourced blocks the Grok config if the spec has OAuth/OpenID Connect setup gaps, an insecure authenticated base URL, or no safe read-only default tools.

04

Write and destructive operations stay out of the default Grok allowlist until an owner explicitly reviews them.

04Details

When to use it

01

Your customers are asking whether Grok Bot can call your API.

02

You already have OpenAPI and want a connector without hand-writing MCP handlers.

03

You want a generated package that can later be pushed into your own GitHub repo, not a random PR against xAI-owned repos.

04

You need a safety report before making a public remote MCP server reachable.