Grok Build tutorial series

Wire MCP into Grok Build

Only connect a capability the repo does not already have, and start read-only. inspect immediately. Do not add ten servers.

When you actually need MCP

Files and commands inside the repo are already enough. MCP is for issues, docs sites, a browser, or a read-only database—hands outside the tree.

Wiring tools so the setup “looks like AI” is the usual waste and a common secret leak.

If a skill plus one shell command finishes the job, skip MCP.

How to add the first server

Put the server in config as official docs show, or use the TUI MCP panel. Field names follow that day.

Pick one read-only, preferably local server whose docs or source you can read.

Run inspect, confirm the name, then try one read-only tool call.

On failure, check process start, working directory, and permissions before switching models.

  1. Choose one read-only server.
  2. Write config or use the panel.
  3. Confirm with inspect.
  4. Try one read-only task.
Diagram of instructions and skills inside the repo, with MCP as an outer hand.
MCP is the outer layer. Instructions and skills first, then one read-only server.

Use inspect to see if MCP is really there

inspect lists MCP discovered for this directory. A checkbox in a panel that inspect cannot see is not in this session.

TUI MCP slash commands usually open the same extensions modal on a different tab.

  • inspect before you complain the tool is missing.
  • Write down the server name so prompts do not invent one.

Just enough transport

Local stdio or remote HTTP. You own the local process working directory and env.

Remote endpoints add auth and timeouts. This site has shorter transport notes; here you only need to name which one you use.

  • Local process: command and directory.
  • Remote: URL, auth, timeout.

Where secrets go

Environment variables or a system vault. Not json, toml, or skill files in the repo.

Replace placeholders with variable names, not real tokens.

Shared team config shares names and launch commands only.

  • Secrets stay out of git.
  • Config keeps variable names.
  • Restart the session after you rotate a token.

Keep it one server

One MCP, one task. Huge tool results shove your instructions out of context.

A read-only database can be fine. Writes need a separate review.

Directory pages on this site will not install anything in your browser.

  • One at a time.
  • Read-only first.
  • Switch to a narrower tool if results are huge.

Marketplace and plugin MCP

A marketplace may recommend servers. Still filter on source, permissions, and read-only.

Enterprises follow an internal allowlist, not a popularity chart.

  • Review, then install.
  • inspect after.
  • Disable what you do not need.

MCP mistakes to block

Browser, mail, and a writable database on day one.

Checking a token into project config and opening a PR.

  • Skipping inspect.
  • Practicing on a writable server.
  • Ten servers at once.

Done looks like this

One read-only server appears in inspect, and you have seen one tool result.

  1. Instructions say when it may be used.
  2. The key is in the environment.
  3. You only ran a read-only trial.
  4. You know how to turn it off.

Next: compare with Codex

The comparison chapter helps you decide what stays on Grok Build versus Codex or another tool.

If MCP is stuck, skip to troubleshooting.

FAQ

Is MCP required to use Grok Build?

No. Many repos are fine with instructions and skills.

How does this relate to the MCP directory on this site?

The directory is metadata. Install and wiring still happen in your client.

stdio or HTTP?

Local tools usually stay on a local process; shared remote services use HTTP.

Can I attach production data?

Start with a read-only replica or docs. Production writes need their own review.

Must I approve every tool call?

That follows your permission mode. Week one should stay on ask.

inspect shows no server

Check config path, project root, and whether the process starts.

Can one server serve both Codex and Grok?

The protocol is related; the config files are not the same. Do not assume one toml is read by both.

All chapters in this series

  1. 1. What Grok Build is: TUI, headless, and ACP
  2. 2. How to install Grok Build (CLI, login, headless)
  3. 3. Finish your first reviewable Grok Build task
  4. 4. Grok Build config, inspect, and AGENTS.md
  5. 5. Grok Build skills, /skillify, and plugins
  6. 6. Wire MCP into Grok Build
  7. 7. Grok Build versus Codex: how to choose
  8. 8. Grok Build troubleshooting: login, inspect, MCP, plan latch