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

# Cursor setup

> Configure Cursor to use Synthbrew through the MCP server.

Use the Synthbrew MCP server in Cursor Agent to create realistic demo data sources while coding your app.

## Prerequisites

* Cursor installed
* A Synthbrew public API key

## Configure Cursor

Create `.cursor/mcp.json` in your project, or `~/.cursor/mcp.json` for a global setup:

```json theme={null}
{
  "mcpServers": {
    "synthbrew": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@synthbrew/agent"],
      "env": {
        "SYNTHBREW_API_KEY": "sb_api_...",
        "SYNTHBREW_API_URL": "https://api.synthbrew.com/api"
      }
    }
  }
}
```

Restart Cursor or reload MCP servers after changing the file.

## Try a product prompt

Open Cursor Agent and ask:

```text theme={null}
Use Synthbrew to create a marketplace dataset with sellers, buyers, products, orders, reviews, and refunds. Generate realistic data, create the source, and show me how to connect to it from this app.
```

Cursor should validate the schema before creating resources.
