# Bray

> Bray is an open-source MCP server. Trust-aware Nostr for AI agents -- 235 tools covering social, DMs, zaps, trust, and identity. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/forgesworn/bray
- **MCP Registry name:** dev.forgesworn/bray
- **Listing updated:** 2026-11-13

## About

Trust-aware Nostr for AI agents -- 235 tools covering social, DMs, zaps, trust, and identity

## Install

### Claude Code (Terminal)

```sh
claude mcp add bray --env NOSTR_SECRET_KEY='<NOSTR_SECRET_KEY>' --env NOSTR_RELAYS='<NOSTR_RELAYS>' --env NWC_URI='<NWC_URI>' -- npx -y nostr-bray
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "bray": {
      "command": "npx",
      "args": [
        "-y",
        "nostr-bray"
      ],
      "env": {
        "NOSTR_SECRET_KEY": "<NOSTR_SECRET_KEY>",
        "NOSTR_RELAYS": "<NOSTR_RELAYS>",
        "NWC_URI": "<NWC_URI>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "bray": {
      "command": "npx",
      "args": [
        "-y",
        "nostr-bray"
      ],
      "env": {
        "NOSTR_SECRET_KEY": "<NOSTR_SECRET_KEY>",
        "NOSTR_RELAYS": "<NOSTR_RELAYS>",
        "NWC_URI": "<NWC_URI>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "bray": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "nostr-bray"
      ],
      "env": {
        "NOSTR_SECRET_KEY": "<NOSTR_SECRET_KEY>",
        "NOSTR_RELAYS": "<NOSTR_RELAYS>",
        "NWC_URI": "<NWC_URI>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "bray": {
      "command": "npx",
      "args": [
        "-y",
        "nostr-bray"
      ],
      "env": {
        "NOSTR_SECRET_KEY": "<NOSTR_SECRET_KEY>",
        "NOSTR_RELAYS": "<NOSTR_RELAYS>",
        "NWC_URI": "<NWC_URI>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "bray": {
      "command": "npx",
      "args": [
        "-y",
        "nostr-bray"
      ],
      "env": {
        "NOSTR_SECRET_KEY": "<NOSTR_SECRET_KEY>",
        "NOSTR_RELAYS": "<NOSTR_RELAYS>",
        "NWC_URI": "<NWC_URI>"
      }
    }
  }
}
```

## FAQ

### Is Bray free?

Yes. Bray is open source, so you can use and self-host it for free.

### How do I add Bray to Claude Code?

Run this command in your terminal: claude mcp add bray --env NOSTR_SECRET_KEY='<NOSTR_SECRET_KEY>' --env NOSTR_RELAYS='<NOSTR_RELAYS>' --env NWC_URI='<NWC_URI>' -- npx -y nostr-bray

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/bray
