Bray
Trust-aware Nostr for AI agents -- 235 tools covering social, DMs, zaps, trust, and…
- Pricing
- Open source
- Runs
- Locally
- Version
- 1.27.7
- Listing updated
- 5 days ago
About Bray
Bray is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Trust-aware Nostr for AI agents -- 235 tools covering social, DMs, zaps, trust, and identity
Install
Run in a 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-brayAdd to claude_desktop_config.json
{
"mcpServers": {
"bray": {
"command": "npx",
"args": [
"-y",
"nostr-bray"
],
"env": {
"NOSTR_SECRET_KEY": "<NOSTR_SECRET_KEY>",
"NOSTR_RELAYS": "<NOSTR_RELAYS>",
"NWC_URI": "<NWC_URI>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"bray": {
"command": "npx",
"args": [
"-y",
"nostr-bray"
],
"env": {
"NOSTR_SECRET_KEY": "<NOSTR_SECRET_KEY>",
"NOSTR_RELAYS": "<NOSTR_RELAYS>",
"NWC_URI": "<NWC_URI>"
}
}
}
}Add to .vscode/mcp.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>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"bray": {
"command": "npx",
"args": [
"-y",
"nostr-bray"
],
"env": {
"NOSTR_SECRET_KEY": "<NOSTR_SECRET_KEY>",
"NOSTR_RELAYS": "<NOSTR_RELAYS>",
"NWC_URI": "<NWC_URI>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"bray": {
"command": "npx",
"args": [
"-y",
"nostr-bray"
],
"env": {
"NOSTR_SECRET_KEY": "<NOSTR_SECRET_KEY>",
"NOSTR_RELAYS": "<NOSTR_RELAYS>",
"NWC_URI": "<NWC_URI>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
NOSTR_SECRET_KEYNostr secret key (nsec, hex, or BIP-39 mnemonic)RequiredNOSTR_RELAYSComma-separated list of Nostr relay WebSocket URLsRequiredNWC_URINostr Wallet Connect URI for Lightning zaps
Pricing
Open source
Bray 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.