# Connect Gryz MCP in Cursor

Source: https://www.gryz.ai/docs/guides/setup/cursor-mcp-walkthrough/
Updated: 2026-09-09

## Before you start [#before-you-start]

You need a free Gryz account and Cursor with MCP enabled. This guide is **complete on its own**: follow every step below even if you skip the video.

<Note>
  **Video walkthrough:** The embed above demonstrates the same flow. Use it after reading the steps if you prefer to watch first.
</Note>

Watch the full video on YouTube: [Connect Gryz MCP in Cursor](https://www.youtube.com/watch?v=Umsmq5XdPEw).

## Prerequisites [#prerequisites]

* Gryz account ([sign up](https://www.gryz.ai/login/))
* Cursor desktop (MCP support)
* MCP server URL (always use `www`):

```text
https://www.gryz.ai/api/mcp
```

## Step 1: Open MCP settings in Cursor [#step-1-open-mcp-settings-in-cursor]

1. Open **Cursor Settings**
2. Go to **MCP** (or **Features → MCP** depending on your Cursor version)
3. Choose **Add MCP server** or edit `~/.cursor/mcp.json` manually

## Step 2: Add OAuth config (recommended) [#step-2-add-oauth-config-recommended]

OAuth avoids storing an API key on disk. Add this block:

```json
{
  "mcpServers": {
    "gryz": {
      "url": "https://www.gryz.ai/api/mcp"
    }
  }
}
```

<McpCursorInstall />

Save the file and restart Cursor if it does not pick up the change immediately.

## Step 3: Sign in with OAuth [#step-3-sign-in-with-oauth]

1. Cursor opens a browser window to Gryz
2. Sign in with Google, GitHub, an email code, or password
3. Approve access on the Allow screen
4. Return to Cursor. The server should show as connected

<Tip>
  Complete OAuth on the **same desktop** where Cursor is running. Opening the sign-in link on your phone breaks the short-lived cookie handoff.
</Tip>

## Step 4: API key alternative [#step-4-api-key-alternative]

If OAuth is unavailable in your environment, generate a key on the [API keys page](https://www.gryz.ai/account/api-keys/):

```json
{
  "mcpServers": {
    "gryz": {
      "url": "https://www.gryz.ai/api/mcp",
      "headers": {
        "Authorization": "Bearer gryz_YOUR_KEY_HERE"
      }
    }
  }
}
```

Replace `gryz_YOUR_KEY_HERE` with your key. Never commit this file to git.

## Step 5: Verify the connection [#step-5-verify-the-connection]

Try these prompts in Cursor:

* `List my Gryz documents`
* `Publish this markdown to Gryz as a private doc titled "Cursor MCP test"`

A successful publish returns a URL in the assistant reply. Open it to confirm the document rendered.

## Example prompts [#example-prompts]

* `Publish this spec to Gryz as a public doc titled "Q3 roadmap"`
* `Get my Gryz document with slug "q3-roadmap"`
* `Delete my Gryz test document with slug "cursor-mcp-test"`

## Troubleshooting [#troubleshooting]

| Issue                          | Fix                                                                                                           |
| ------------------------------ | ------------------------------------------------------------------------------------------------------------- |
| Unknown client / OAuth error   | Remove the Gryz connector, re-add `https://www.gryz.ai/api/mcp`, complete sign-in in the browser Cursor opens |
| Sign-in link on another device | Start OAuth on desktop; open the email link on the same machine                                               |
| Stuck on "Finishing sign-in…"  | Wait a few seconds; do not refresh manually                                                                   |
| 401 / connection failed        | Confirm `www` and no trailing slash; apex redirects strip auth headers                                        |
| Tools not appearing            | Restart Cursor after editing `mcp.json`                                                                       |

## Reference [#reference]

For the tools table, ChatGPT and Claude setup, and API details, see the [MCP setup reference](/docs/mcp/setup/).

## Related reading [#related-reading]

* [Shared context for AI agents](/topics/shared-context/)
* [How do I share context between Claude Code and Cursor?](/gryzle/share-context-between-claude-code-and-cursor/)
* [Shared context for AI coding agents, over MCP](/gryzle/shared-context-for-ai-coding-agents/)
