Nostr MCP Server

مجتمعي أخرى

Sign and publish Nostr events, paid per call in sats over Lightning.

ماذا يمكنك أن تفعل مع Nostr MCP Server؟

  • NIP-46 bunker mode — Set NOSTR_BUNKER_URI once, all signing routes through your bunker
  • Direct key mode — Pass privateKey per-tool call (backwards compatible)
  • 23 tools — Notes, profiles, social actions, DMs (NIP-04/44), relay lists, zaps, fetch
  • MCP native — Works with any MCP-compatible client

التثبيت

خطوات التثبيت موجودة في التوثيق أدناه. التوثيق

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. nostr-mcp-server
  2. Live Endpoint
  3. NIP-05 Identity Service
  4. Features
  5. Quick Start
  6. Tools
  7. NIP-46 Bunker URI
  8. Also Available: Sovereign MCP (Paid)
  9. Dependencies
  10. License

nostr-mcp-server

A Nostr MCP (Model Context Protocol) server with NIP-46 remote signing support. Private keys never need to touch the AI context window.

Live Endpoint

Connect directly without running locally:

https://nostr.jorgenclaw.ai/mcp

Transport: Streamable HTTP (MCP spec 2025-03-26) — compatible with Claude Desktop, Cursor, Glama, Smithery, and any MCP client.

Legacy SSE endpoint (backward compat): https://nostr.jorgenclaw.ai/sse


NIP-05 Identity Service

Get a yourname@jorgenclaw.ai verified Nostr identity — registered by an AI agent over Lightning.

How to register:

  1. Open any Nostr client (Amethyst, Primal, Damus, etc.)
  2. DM this npub: npub16pg5zadrrhseg2qjt9lwfcl50zcc8alnt7mnaend3j04wjz4gnjqn6efzc
  3. Send the message: register yourname
  4. Pay the Lightning invoice that arrives in reply (1,000 sats)
  5. Done — yourname@jorgenclaw.ai resolves immediately on all Nostr clients

Uses NIP-17 gift-wrapped DMs. Works with all modern Nostr clients.


Features

  • NIP-46 bunker mode — Set NOSTR_BUNKER_URI once, all signing routes through your bunker
  • Direct key mode — Pass privateKey per-tool call (backwards compatible)
  • 23 tools — Notes, profiles, social actions, DMs (NIP-04/44), relay lists, zaps, fetch
  • MCP native — Works with any MCP-compatible client

Quick Start

npm install
npm run build
Direct key mode (no bunker)
node dist/index.js

Tools require privateKey parameter on each signing call.

NOSTR_BUNKER_URI="bunker://<pubkey>?relay=wss://relay.example.com&secret=abc" node dist/index.js

All signing tools use the bunker. privateKey parameter becomes optional.

Tools

ToolDescription
postNoteCreate, sign, and publish a text note
createNoteCreate unsigned text note
signNoteSign a note event
publishNotePublish signed note to relays
createNostrEventCreate unsigned event of any kind
signNostrEventSign any unsigned event
publishNostrEventPublish signed event to relays
createProfileCreate Nostr profile (kind 0)
updateProfileUpdate existing profile
followFollow a pubkey
unfollowUnfollow a pubkey
reactToEventReact to event (kind 7)
repostEventRepost event (kind 6)
deleteEventDelete events (kind 5)
replyToEventReply with NIP-10 threading
encryptNip04 / decryptNip04NIP-04 encryption
sendDmNip04Send NIP-04 DM
encryptNip44 / decryptNip44NIP-44 encryption
sendDmNip44Send NIP-44 DM
setRelayListPublish relay list (NIP-65)
getSignerInfoCheck signing mode and pubkey
fetchProfileFetch a Nostr profile
fetchEventsFetch events from relays

NIP-46 Bunker URI

Format: bunker://<bunker-hex-pubkey>?relay=wss://relay.com&secret=optional

Compatible with: nsecbunker, Amber, any NIP-46 signer.

Also Available: Sovereign MCP (Paid)

For agents that need verifiable signed actions with a Lightning-gated audit trail:

https://mcp.jorgenclaw.ai/mcp

9 tools, sats per call, LCS-1 action receipts. No signup.

Dependencies

  • nostr-tools — Nostr protocol library (signing, encryption, NIP-46)
  • @modelcontextprotocol/sdk — MCP server framework
  • ws — WebSocket for Node.js relay connections
  • zod — Input validation

License

MIT

الأسئلة الشائعة

ما هو Nostr MCP Server؟

Sign and publish Nostr events, paid per call in sats over Lightning.

كيف أثبّت Nostr MCP Server؟

اتبع خطوات التثبيت في توثيقه المعروض في هذه الصفحة وفي مستودعه.

هل Nostr MCP Server مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون Nostr MCP Server؟

ينشره jorgenclaw. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من القوائم المجتمعية awesome-mcp-servers ومستودع المشروع على GitHub. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.