Add servers from the terminal
protogridctl finds MCP servers in the protogrid registry and adds them to your MCP client in one command.
It needs Node.js 20 or later and no account.
npx protogridctl search send emailnpx protogridctl add io.github.owner/server --client cursorWhat add does
Section titled “What add does”- It checks the server first and shows its quality score, its connection class and whether its owner is verified.
If the server hides text in its tools, holds instructions aimed at the model, or depends on a package with a known vulnerability, it says so and asks before going on.
--min-quality 80refuses any server scoring under 80, with no question. A server that charges per call is named as such, since your client then needs a wallet that pays x402. - It asks the registry for the entry in your client’s own format, the same one the connection endpoint returns.
- When the server needs a key or token, it asks for it without showing what you type and writes it only to your client’s config file.
Nothing you type is sent to protogrid.
With
--no-prompt, or without a terminal, it writes a${NAME}placeholder and tells you what to fill in. - It adds the entry and keeps everything else in the file as it was.
The previous file is kept next to it as
<file>.bak, and a file that now holds a secret is made readable by you only. If a server of the same name is already there, it asks before replacing it (or replaces it with--yes).
A file with comments, which VS Code allows, is never rewritten: add stops and you add the entry by hand.
Clients
Section titled “Clients”--client |
Writes to (--scope user, the default) |
--scope project |
|---|---|---|
cursor |
~/.cursor/mcp.json |
.cursor/mcp.json |
vscode |
the user mcp.json of VS Code |
.vscode/mcp.json |
claude-code |
runs claude mcp add-json |
.mcp.json |
claude-desktop |
claude_desktop_config.json, local servers only |
none |
gemini |
~/.gemini/settings.json |
.gemini/settings.json |
codex |
~/.codex/config.toml (or $CODEX_HOME) |
none |
opencode |
~/.config/opencode/opencode.json |
opencode.json |
goose |
prints the entry for ~/.config/goose/config.yaml |
none |
npx protogridctl clients shows the exact paths on your machine.
Claude Desktop adds remote servers as connectors in the app, so for those add tells you the URL to paste there.
Codex reads bearer tokens from an environment variable: add names the variable to set.
Options
Section titled “Options”| Option | Meaning |
|---|---|
--client, -c |
The client to configure. |
--scope user|project |
Your user configuration (default) or the current project’s. |
--yes, -y |
Install even when a check failed, and replace an entry of the same name. A score under --min-quality is still refused. |
--no-prompt |
Never ask for secrets; write placeholders. |
--min-quality N |
Refuse servers scoring under N. |
--dry-run |
Show what would change and write nothing. |
protogridctl remove <server> --client <client> takes the entry out again, by registry name or by the key it has in the file.
Settings
Section titled “Settings”PROTOGRID_API_KEY: an API key, for higher limits. Not needed for occasional use.PROTOGRID_API_URL: another API address, for testing.
Exit codes: 0 done, 1 error, 2 wrong usage, 3 not installed because of the checks.