Configure Stack Auth MCP in Cursor IDE for enhanced code assistance.

CAdd to Cursor

Manual Installation

Add the following to your mcp.json file:

mcp.json
{
  "mcpServers": {
    "stack-auth": {
      "url": "https://mcp.stack-auth.com/mcp"
    }
  }
}

Configure Stack Auth MCP in VS Code for enhanced code assistance.

VSAdd to VS Code

Manual Installation

Open a terminal and run the following command:

Terminal
code --add-mcp '{"type":"http","name":"stack-auth","url":"https://mcp.stack-auth.com/mcp"}'

Then, from inside VS Code, open the .vscode/mcp.json file and click "Start server".

Configure Stack Auth MCP in Codex CLI and the Codex IDE extension. The configuration is shared between both.

Open a terminal and run the following command:

Terminal
codex mcp add stack-auth --url https://mcp.stack-auth.com/mcp

Verify it is configured:

Terminal
codex mcp list

Manual Installation

Alternatively, add the following to ~/.codex/config.toml:

config.toml
[mcp_servers.stack-auth]
url = "https://mcp.stack-auth.com/mcp"

Open a terminal and run the following command:

Terminal
claude mcp add --transport http stack-auth https://mcp.stack-auth.com/mcp

From within Claude Code, you can use the /mcp command to get more information about the server.

Open Claude Desktop and navigate to Settings > Connectors > Add Custom Connector.

Enter the name as stack-auth and the remote MCP server URL as https://mcp.stack-auth.com/mcp.

Copy the following JSON to your Windsurf MCP config file:

mcp.json
{
  "mcpServers": {
    "stack-auth": {
      "serverUrl": "https://mcp.stack-auth.com/mcp"
    }
  }
}
In Team, Enterprise, and Edu workspaces, only workspace owners and admins have permission to set this.

Navigate to Settings > Connectors.

Add a custom connector with the server URL: https://mcp.stack-auth.com/mcp

After this, it should be visible in Composer > Deep Research Tool.

Connectors can only be used with Deep Research.

Add the following JSON to your Gemini CLI configuration file (~/.gemini/settings.json):

settings.json
{
  "mcpServers": {
    "stack-auth": {
      "httpUrl": "https://mcp.stack-auth.com/mcp",
      "headers": {
        "Accept": "application/json, text/event-stream"
      }
    }
  }
}
Markdown Instructions If you want to include instructions for all clients in your project's README.md file, feel free to copy the following markdown:
<details name="mcp-install-instructions">
<summary>Cursor</summary>

#### Installation Link
[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](cursor://anysphere.cursor-deeplink/mcp/install?name=stack-auth&config=eyJ1cmwiOiJodHRwczovL21jcC5zdGFjay1hdXRoLmNvbS9tY3AifQ)

#### Manual Installation
Add the following to your `mcp.json` file:

```json
{
  "mcpServers": {
    "stack-auth": {
      "url": "https://mcp.stack-auth.com/mcp"
    }
  }
}
```
</details>

<details name="mcp-install-instructions">
<summary>VSCode</summary>

#### Installation Link
[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Server-0098FF?style=for-the-badge&logo=visual-studio-code&logoColor=white)](https://insiders.vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522type%2522%253A%2522http%2522%252C%2522name%2522%253A%2522stack-auth%2522%252C%2522url%2522%253A%2522https%253A%252F%252Fmcp.stack-auth.com%252Fmcp%2522%257D)

#### Manual Installation
Open a terminal and run the following command:

```
code --add-mcp '{"type":"http","name":"stack-auth","url":"https://mcp.stack-auth.com/mcp"}'
```

Then, from inside VS Code, open the .vscode/mcp.json file and click "Start server".
</details>

<details name="mcp-install-instructions">
<summary>Codex</summary>

Open a terminal and run the following command:
```
codex mcp add stack-auth --url https://mcp.stack-auth.com/mcp
```

Verify it is configured:
```
codex mcp list
```

Alternatively, add the following to `~/.codex/config.toml`:
```toml
[mcp_servers.stack-auth]
url = "https://mcp.stack-auth.com/mcp"
```
</details>

<details name="mcp-install-instructions">
<summary>Claude Code</summary>

Open a terminal and run the following command:
```
claude mcp add --transport http stack-auth https://mcp.stack-auth.com/mcp
```
From within Claude Code, you can use the `/mcp` command to get more information about the server.
</details>

<details name="mcp-install-instructions">
<summary>Claude Desktop</summary>

Open Claude Desktop and navigate to Settings > Connectors > Add Custom Connector.

Enter the name as `stack-auth` and the remote MCP server URL as `https://mcp.stack-auth.com/mcp`.
</details>

<details name="mcp-install-instructions">
<summary>Windsurf</summary>

Copy the following JSON to your Windsurf MCP config file:
```json
{
  "mcpServers": {
    "stack-auth": {
      "serverUrl": "https://mcp.stack-auth.com/mcp"
    }
  }
}
```
</details>

<details name="mcp-install-instructions">
<summary>ChatGPT</summary>

*Note: In Team, Enterprise, and Edu workspaces, only workspace owners and admins have permission*

- Navigate to **Settings > Connectors**
- Add a custom connector with the server URL: `https://mcp.stack-auth.com/mcp`
- It should then be visible in the Composer > Deep Research tool
- You may need to add the server as a source

*Connectors can only be used with **Deep Research***
</details>

<details name="mcp-install-instructions">
<summary>Gemini CLI</summary>

Add the following JSON to your Gemini CLI configuration file (`~/.gemini/settings.json`):
```json
{
  "mcpServers": {
    "stack-auth": {
      "httpUrl": "https://mcp.stack-auth.com/mcp",
      "headers": {
        "Accept": "application/json, text/event-stream"
      }
    }
  }
}
```
</details>

Features

The Stack Auth MCP server exposes ask_stack_auth, which answers questions using live documentation retrieval and the docs-site AI assistant. It can help with: