Nostr Tools for AI Agents
23 tools for AI agents working with Nostr Open source. No API key. No account. NIP-46 remote signing Publish notes, reply, react, repost Encrypted DMs (NIP-04 + NIP-44) Fetch events, profiles, social graph
README
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:
- Open any Nostr client (Amethyst, Primal, Damus, etc.)
- DM this npub:
npub16pg5zadrrhseg2qjt9lwfcl50zcc8alnt7mnaend3j04wjz4gnjqn6efzc - Send the message:
register yourname - Pay the Lightning invoice that arrives in reply (1,000 sats)
- Done —
yourname@jorgenclaw.airesolves 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_URIonce, all signing routes through your bunker - Direct key mode — Pass
privateKeyper-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.
Bunker mode (recommended)
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
| Tool | Description |
|---|---|
postNote |
Create, sign, and publish a text note |
createNote |
Create unsigned text note |
signNote |
Sign a note event |
publishNote |
Publish signed note to relays |
createNostrEvent |
Create unsigned event of any kind |
signNostrEvent |
Sign any unsigned event |
publishNostrEvent |
Publish signed event to relays |
createProfile |
Create Nostr profile (kind 0) |
updateProfile |
Update existing profile |
follow |
Follow a pubkey |
unfollow |
Unfollow a pubkey |
reactToEvent |
React to event (kind 7) |
repostEvent |
Repost event (kind 6) |
deleteEvent |
Delete events (kind 5) |
replyToEvent |
Reply with NIP-10 threading |
encryptNip04 / decryptNip04 |
NIP-04 encryption |
sendDmNip04 |
Send NIP-04 DM |
encryptNip44 / decryptNip44 |
NIP-44 encryption |
sendDmNip44 |
Send NIP-44 DM |
setRelayList |
Publish relay list (NIP-65) |
getSignerInfo |
Check signing mode and pubkey |
fetchProfile |
Fetch a Nostr profile |
fetchEvents |
Fetch 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 frameworkws— WebSocket for Node.js relay connectionszod— Input validation
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.