Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

bray

MCP server by forgesworn Verified · forgesworn.dev

Trust-aware Nostr MCP server that lets AI assistants post, read feeds, send DMs, check trust and manage identity on Nostr. The source lists 261 tools across 29 groups. It is aimed at developers and AI users who want an assistant to work on Nostr.

  • Score 89
  • 1 stars
  • 1.7k a week
  • MIT
  • Updated

Install bray

Built from the published package, never by AI.

claude mcp add bray -e NOSTR_SECRET_KEY=YOUR_NOSTR_SECRET_KEY -e NOSTR_RELAYS=YOUR_NOSTR_RELAYS -- npx -y nostr-bray

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install bray in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the bray block.

About

nostr-bray is a trust-aware Nostr MCP server, CLI and TypeScript SDK. It exposes its tools to MCP clients such as Claude, ChatGPT, Gemini, Cursor and Windsurf. The source says it has 261 tools across 29 groups, covering identity, social posts, direct messages, zaps, trust, relays, groups, marketplace and dispatch.

The server runs over stdio by default, or over HTTP with TRANSPORT=http. It signs with a Nostr key, a NIP-46 bunker, an NIP-49 encrypted key or a key file. With no key or bunker it runs read-only and offers only lookup tools. The source describes it for AI and human users, and says its auth tiers go from a signing appliance down to an inline secret meant for development.

Written from the project's README and checked against it.

Tools it gives your assistant

  • whoamiShows the account the server is signing as, used to verify the setup works.
  • social-postPublishes a Nostr note from the configured account.
  • social-feedReads a Nostr feed.
  • dm-sendSends a direct message, encrypted with NIP-44 or NIP-17 gift wrap.
  • dm-readReads direct messages.
  • trust-scoreReturns a trust score for a Nostr identity.
  • verify-personVerifies a person's identity through the trust workflow.
  • zap-sendSends a zap payment through an NWC Lightning wallet.
  • relay-queryQueries events from Nostr relays.
  • search-notesSearches Nostr notes.

What you need

  • Node.js 24 or later
  • Nostr relays
  • A Nostr key or NIP-46 bunker (read-only mode needs only a public key)
  • An NWC Lightning wallet for the optional zap tools
SettingNeededWhat it is
NOSTR_SECRET_KEYEnvironment variable, secretRequiredNostr secret key (nsec, hex, or BIP-39 mnemonic)
NOSTR_RELAYSEnvironment variableRequiredComma-separated list of Nostr relay WebSocket URLs
NWC_URIEnvironment variable, secretOptionalNostr Wallet Connect URI for Lightning zaps

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Call whoami to check that the Nostr setup works
  • Show my latest social feed from Nostr
  • Send a direct message to alice and confirm it was sent

Good to know

  • With no key or bunker, the server is read-only and cannot post, sign, send or read DMs.
  • Dispatch tools are registered only when DISPATCH_IDENTITIES points to an identities file.
  • Tools that spend are not promoted to the MCP tool list, so they must be run through execute-action.
  • A key set in NOSTR_SECRET_KEY is visible in the process environment and is meant for development only.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to bray

All alternatives →

Compare with Jitsu, Vexa or Linkedin MCP server

bray: common questions

Does nostr-bray work with any MCP client?

The source says it is model-agnostic and works with Claude, ChatGPT, Gemini, Cursor, Windsurf, or any MCP client.

Can I use nostr-bray without a private key?

Yes. Started with no key or bunker, it runs read-only and offers lookup tools such as feeds, profiles, search, and relay and trust checks.

How does the assistant find the other tools?

Most tools are catalogued rather than promoted. The assistant uses search-actions to find a tool by keyword and execute-action to run it.

How do I install bray?

In Claude Code run claude mcp add bray -e NOSTR_SECRET_KEY=YOUR_NOSTR_SECRET_KEY -e NOSTR_RELAYS=YOUR_NOSTR_RELAYS -- npx -y nostr-bray. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is bray the official server?

bray is published by forgesworn.dev from its verified domain in the official MCP Registry.

Is bray free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is bray safe to use?

It scores 89 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to bray?

Similar MCP servers: Jitsu, Vexa, Linkedin MCP server, Netsapiens MCP.

Does bray work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Add to stack

Loading.