MCP Server Studio

Bray MCP server

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

Registry name: dev.forgesworn/bray

Publisher
forgesworn.dev
Runs
Runs locally
Package
npm
Version
1.27.7
Category
AI & agents
Updated
2026-04-07

Source code on GitHub

Set up Bray (run locally)

Claude Desktop

Add to claude_desktop_config.json:

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

Claude Code

Run in your terminal:

claude mcp add bray -e NOSTR_SECRET_KEY='<NOSTR_SECRET_KEY>' -e NOSTR_RELAYS='<NOSTR_RELAYS>' -e NWC_URI='<NWC_URI>' -- npx -y nostr-bray@1.27.7

Cursor

Add to .cursor/mcp.json:

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

VS Code

Add to .vscode/mcp.json:

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

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

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

Settings

NameRequiredWhat it is
NOSTR_SECRET_KEYYesNostr secret key (nsec, hex, or BIP-39 mnemonic)
NOSTR_RELAYSYesComma-separated list of Nostr relay WebSocket URLs
NWC_URINoNostr Wallet Connect URI for Lightning zaps

More ai & agents MCP servers