> ## Documentation Index
> Fetch the complete documentation index at: https://docs.struct.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect to Struct MCP

> Configure your MCP client, obtain workspace access and verify a tool call.

Connect your current MCP client to Struct so you can query production evidence and use the enabled tools directly. MCP uses its own sign-in and can run alongside the CLI.

## Install the server configuration

Choose the client you are actually using:

```bash theme={null}
struct mcp install --client claude
struct mcp install --client cursor
struct mcp install --client codex
```

Run only the matching command. Add `--print` to inspect the configuration instead of changing it. For another MCP client, use `struct mcp url` and its documented remote-server configuration.

For Capy, follow [Set up Capy with Struct](https://docs.struct.ai/mcp/capy.md) to connect the server in Capy's settings and verify access from Slack.

## Request workspace access

The configuration contains the server URL, not a copied CLI credential. The MCP client performs its own sign-in. For Codex, run `codex mcp login struct`; in Claude Code, use `/mcp`. Relay the sign-in link to the person and have them approve the intended workspace and scope.

## Verify discovery and access

Refresh tool discovery in the client and run a suitable read-only tool with bounded input, such as listing existing monitors when observability is enabled. Inspect the response, not just whether the server connected. Follow [authentication recovery](https://docs.struct.ai/mcp/authentication.md) for expired grants, missing scope or activation requirements.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.