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

# Cursor

> Add Stophy to Cursor in one config file. Start without an API key, then sign in with your browser or add an API key to use every tool.

Add Stophy to [Cursor](https://cursor.com). Put this in `~/.cursor/mcp.json`.

```json theme={null}
{
  "mcpServers": {
    "stophy": {
      "url": "https://api.stophy.dev/mcp"
    }
  }
}
```

Restart Cursor, and its agent can call the free endpoints.

## Sign in with your browser

Use this URL instead. Cursor opens your browser to sign in, and then every tool works.

```json theme={null}
{
  "mcpServers": {
    "stophy": {
      "url": "https://mcp.stophy.dev/mcp"
    }
  }
}
```

## Use an API key

[Get an API key](https://stophy.dev/signup) and set it as `STOPHY_API_KEY`. Cursor reads the variable into the header, so the key stays out of the file.

```json theme={null}
{
  "mcpServers": {
    "stophy": {
      "url": "https://api.stophy.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${env:STOPHY_API_KEY}"
      }
    }
  }
}
```

## Try it

Open **Customize** in Cursor and check that `stophy` is on. Then ask the agent this.

```text theme={null}
Use Stophy to find coffee shops near Austin, TX with their ratings.
```


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