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.
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-brayRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"bray": {
"env": {
"NOSTR_RELAYS": "YOUR_NOSTR_RELAYS",
"NOSTR_SECRET_KEY": "YOUR_NOSTR_SECRET_KEY"
},
"args": [
"-y",
"nostr-bray"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"bray": {
"env": {
"NOSTR_RELAYS": "YOUR_NOSTR_RELAYS",
"NOSTR_SECRET_KEY": "YOUR_NOSTR_SECRET_KEY"
},
"args": [
"-y",
"nostr-bray"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"bray": {
"env": {
"NOSTR_RELAYS": "YOUR_NOSTR_RELAYS",
"NOSTR_SECRET_KEY": "YOUR_NOSTR_SECRET_KEY"
},
"args": [
"-y",
"nostr-bray"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add bray --env NOSTR_SECRET_KEY=YOUR_NOSTR_SECRET_KEY --env NOSTR_RELAYS=YOUR_NOSTR_RELAYS -- npx -y nostr-bray{
"mcpServers": {
"bray": {
"env": {
"NOSTR_RELAYS": "YOUR_NOSTR_RELAYS",
"NOSTR_SECRET_KEY": "YOUR_NOSTR_SECRET_KEY"
},
"args": [
"-y",
"nostr-bray"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add bray npx -y nostr-brayGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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
| Setting | Needed | What it is |
|---|---|---|
NOSTR_Environment variable, secret | Required | Nostr secret key (nsec, hex, or BIP-39 mnemonic) |
NOSTR_Environment variable | Required | Comma-separated list of Nostr relay WebSocket URLs |
NWC_Environment variable, secret | Optional | Nostr 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
ANo 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 →Jitsu MCP server lets AI assistants configure and operate Jitsu data pipelines. It covers destinations, streams, connections and functions, plus Live Events and connector syncs. It is aimed at teams that run event data pipelines.
Vexa sends a bot into Google Meet, Microsoft Teams, Zoom and Jitsi calls to capture speaker-labelled transcripts live or after the call. It suits teams that want meeting transcripts they can self-host.
Gives Claude and other MCP-compatible AI agents access to LinkedIn through your own browser session. It reads profiles, researches companies, finds jobs, and manages messages and connection requests.
Runs a NetSapiens phone system from Claude, ChatGPT, or any MCP client. Each person signs in as themselves, and their assistant gets role-aware tools for calls, voicemail, queues, and provisioning.
Resend MCP Server connects AI assistants to the Resend email platform. It lets them send and receive emails and manage contacts, broadcasts, templates, and domains. It suits developers and teams who use MCP clients such as Claude or Cursor.
The source does not describe labelhead-artist-momentum. It is a README for Paperclip, an open-source orchestration app for teams of AI agents.
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.
