Quickstart: Claude
Claude reaches Guardyx over MCP. Which way you connect depends on where you use Claude:
| You use… | It connects with… | Needs Node.js? |
|---|---|---|
| Claude Desktop (macOS or Windows) | A JSON config entry and an API key | Yes, 18+ |
| Claude.ai in the browser | A custom connector that signs in over OAuth. There’s no API key | No |
| Claude Code | claude mcp add or a .mcp.json file, and an API key |
Yes, 18+ |
All three take about five minutes. You need a Guardyx workspace.
1. Create the agent in Guardyx
Section titled “1. Create the agent in Guardyx”- In the Guardyx portal, open My Agents and choose Connect new agent.
- Under Which app will you chat with?, pick Claude Desktop or Claude.ai (web). For Claude Code, pick Custom MCP (Another app that supports custom connections).
- Choose the apps it should use and what it may do, then connect your accounts.
- On the last step, leave the page open. It shows what to paste into Claude and the connection status, which turns to Connected once Claude reaches Guardyx.
2. Connect Claude
Section titled “2. Connect Claude”Claude Desktop
Section titled “Claude Desktop”Claude Desktop runs the mcp-remote bridge, which
forwards its local MCP calls to Guardyx over HTTPS.
-
Open Settings → Developer → Edit Config, or open the file directly:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
-
Paste the snippet from the portal. If the file already has other servers, add the
guardyxentry undermcpServersand keep the others.{"mcpServers": {"guardyx": {"command": "npx","args": ["-y", "mcp-remote","https://app.guardyx.ai/v1/mcp","--header", "X-API-Key:gx_live_YOUR_KEY"]}}} -
Fully quit Claude Desktop and reopen it. Closing the window isn’t enough, because Claude Desktop loads MCP servers only at startup.
-
Open the tools menu in the composer. guardyx appears there.
Claude.ai (web)
Section titled “Claude.ai (web)”Claude.ai connects straight to Guardyx over HTTPS and signs in with OAuth 2.1, so there’s no config file and no API key. You give it a client ID and secret, and then you approve the connection on a Guardyx consent screen. That approval is what grants access, and it ties the connection to one agent.
- From the portal’s last step, copy the Server URL, Client ID, and Client secret.
- In Claude.ai, open Settings → Connectors → Add custom connector.
- Set the URL to
https://app.guardyx.ai/v1/mcp. - Open Advanced settings and paste the Client ID and Client secret.
- Choose to connect. Claude.ai sends you to Guardyx: sign in, pick your agent, check the tools it grants, and choose Allow.
Registering the connector doesn’t connect it. If you stop before Allow, the connector looks set up in Claude.ai, but every call fails.
The consent expires after 90 days by default. When it does, Claude.ai sends you through Allow again. To cut the connection sooner, open the agent in Guardyx and revoke it under Authentication.
Claude Code
Section titled “Claude Code”Claude Code uses the same mcp-remote bridge as Claude Desktop. Keep the key in an environment
variable (add the export to your shell profile), then register the server from your project
root:
export GUARDYX_API_KEY=gx_live_YOUR_KEYclaude mcp add -s project guardyx -- \ npx -y mcp-remote https://app.guardyx.ai/v1/mcp --header 'X-API-Key:${GUARDYX_API_KEY}'The single quotes keep ${GUARDYX_API_KEY} as written, so the config holds the variable’s name,
not your key. Claude Code fills it in each time it starts the server.
-s project writes the entry to .mcp.json at the repo root. Use -s user instead to register
it for all your projects. Leaving the flag out registers it for this project only, without
writing .mcp.json. Run claude mcp list to confirm that guardyx connects.
You can commit that .mcp.json: it has no key in it. Each teammate exports their own
GUARDYX_API_KEY, so each one stays a separate agent in the trace.
3. Check that calls are governed
Section titled “3. Check that calls are governed”-
Look at the portal’s last step. Its status changes to Connected.
-
Ask Claude to do something with one of your connected apps, for example “What’s on my calendar today?”
If Claude answers that no calendar is connected, it didn’t look in Guardyx. Your apps sit behind Guardyx’s search tool, so Claude doesn’t see them on its own. Name Guardyx in the request: “Use Guardyx to check what’s on my calendar today.”
-
Open Runs in Guardyx. The call is there, with its inputs, the policy decision, and the outcome.
-
Ask for something your policy holds for review. Claude waits while the request appears in Approvals. If you don’t decide within about 25 seconds, Claude gets a retry message, and the same call picks up your decision when it is retried.
Claude’s tool list shows three tools: guardyx_search_tools, guardyx_describe_tool, and
guardyx_execute_tool. That is expected. Claude searches your toolbox through them, so the
list stays short however many apps you connect.
Troubleshooting
Section titled “Troubleshooting”| What you see | What to do |
|---|---|
| 401 when Claude connects | The key is wrong, or the agent is turned off. If it’s off, turn it back on from its page in Guardyx. If the key is wrong or lost, rotate it under Authentication → Rotate, paste the new one, and restart Claude. |
| Claude Code warns “Missing environment variables: GUARDYX_API_KEY” | The shell that started Claude Code doesn’t have your key. Add export GUARDYX_API_KEY=gx_live_… to your shell profile, open a new terminal, and start Claude Code again. |
npx or mcp-remote fails to start |
Install Node.js 18 or later. Or run npm i -g mcp-remote, set "command": "mcp-remote", and delete "-y" and "mcp-remote" from the start of args. They’re arguments for npx, not for the bridge. |
| “This agent has no bound tools” | Bind a toolbox to the agent on its page in Guardyx. |
A tool shows not_connected |
Connect that app’s account from the agent page, then retry. |
| Claude.ai’s connector looks set up, but calls fail | You haven’t finished the consent screen yet. Reconnect from Settings → Connectors and choose Allow. |
What happens next
Section titled “What happens next”Every AI action passes through Guardyx. Each tool call Claude makes is checked against your policy, sensitive ones wait for your approval, and each request, decision, and outcome is recorded in a tamper-evident run trace.