Nostr MCP Server
The Nostr MCP Server enables interaction with the Nostr network through various tools:
Fetch User Profiles: Retrieve profile information by public key (hex or npub format) using
getProfileFetch Text Notes: Get text notes (kind 1) authored by a user with
getKind1Notes, customizable with limitsFetch Long-form Content: Retrieve kind 30023 content authored by users
Fetch Zaps: Get zaps sent (
getSentZaps), received (getReceivedZaps), or both (getAllZaps) with validation optionsNIP Search: Search through Nostr Implementation Possibilities with relevance scoring
Anonymous Zaps: Generate lightning invoices for anonymous zaps to profiles or events
Custom Relays: Specify preferred relays for any query
User-Friendly Formats: Support for both hex public keys and npub format
Validation Options: NIP-57 compliance checking for zap receipts
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Nostr MCP Server get profile for npub1sg6plzptd64u62a878hep2kev88swjh3tw00gjsfl8f237lmu63q0uf63m"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Nostr MCP Server
⚠️ This project is no longer maintained. It has been superseded by nostr-agent-interface — a newer, improved version with additional Blossom file storage support and an expanded tool set.
For the full MCP server with 48 tools, see:
https://github.com/AustinKelsay/nostr-agent-interface
What changed?
The nostr-agent-interface (NAI) builds on this project and adds:
Blossom file storage — 8 new tools for uploading, downloading, listing, deleting, and mirroring blobs
Expanded tool count — 48 MCP tools covering profile, notes, relays, DMs, zaps, and now blob storage
Cleaner architecture — improved module organization and signing via
snstrBuilt-in budget monitoring — optional Plaid-connected budget tracking for personal finance
Migrating
If you're using nostr-mcp-server, switch to:
npm install -g nostr-agent-interfaceOr point to the source:
git clone https://github.com/AustinKelsay/nostr-agent-interface.git
cd nostr-agent-interface
npm install && npm run buildOld tool count
This repo contains 40 tools (documented in the git history).
The active repo (nostr-agent-interface) has 48 tools.
Available Tools
18 toolsanalyzeNip19C
Analyze any NIP-19 entity or hex string to understand its type and contents
Inputs: input (required).
convertNip19B
Convert any NIP-19 entity (npub, nsec, note, nprofile, nevent, naddr) to another format
Inputs: input (required), targetType (required), relays, author, +2 more.
createKeypairC
Generate a new Nostr keypair
Inputs: format.
createNoteC
Create a new kind 1 note event (unsigned)
Inputs: privateKey (required), content (required), tags.
createProfileC
Create a new Nostr profile (kind 0 event)
Inputs: privateKey (required), name, about, picture, +5 more.
getAllZapsB
Get all zaps (sent and received) for a public key
Inputs: pubkey (required), limit, relays, validateReceipts, +1 more.
getKind1NotesC
Get text notes (kind 1) by public key
Inputs: pubkey (required), limit, relays.
getLongFormNotesC
Get long-form notes (kind 30023) by public key
Inputs: pubkey (required), limit, relays.
getProfileB
Get a Nostr profile by public key
Inputs: pubkey (required), relays.
getReceivedZapsC
Get zaps received by a public key
Inputs: pubkey (required), limit, relays, validateReceipts, +1 more.
getSentZapsC
Get zaps sent by a public key
Inputs: pubkey (required), limit, relays, validateReceipts, +1 more.
postAnonymousNoteA
Post an anonymous note to the Nostr network using a temporary keypair
Inputs: content (required), relays, tags.
postNoteC
Post a note using an existing private key (authenticated posting)
Inputs: privateKey (required), content (required), tags, relays.
publishNoteC
Publish a signed note to Nostr relays
Inputs: signedNote (required), relays.
searchNipsC
Search through Nostr Implementation Possibilities (NIPs)
Inputs: query (required), limit, includeContent.
sendAnonymousZapC
Prepare an anonymous zap to a profile or event
Inputs: target (required), amountSats (required), comment, relays.
signNoteC
Sign a note event with a private key
Inputs: privateKey (required), noteEvent (required).
updateProfileC
Update an existing Nostr profile (kind 0 event)
Inputs: privateKey (required), name, about, picture, +5 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Most tools have distinct purposes, but there is some overlap between createNote, postNote, publishNote, and signNote that could cause confusion about the note creation/publishing workflow. Tools like getAllZaps, getReceivedZaps, and getSentZaps are clearly differentiated, and other tools target specific resources or actions.
The naming is mixed with camelCase (e.g., analyzeNip19, convertNip19) and snake_case (e.g., get_long_form_notes, post_anonymous_note), and verb styles vary (e.g., 'create', 'get', 'post', 'publish', 'sign'). While readable, it lacks a consistent pattern throughout the set.
With 18 tools, the count is slightly high but reasonable for a Nostr server covering key management, note handling, profiles, zaps, and NIP utilities. It feels comprehensive without being overwhelmingly bloated, though it borders on the upper limit of typical scope.
The tool set provides complete coverage for the Nostr domain, including keypair creation, note creation/posting/publishing/signing, profile management (create, get, update), zap handling (send, get all/received/sent), NIP analysis/conversion/search, and anonymous operations. No obvious gaps are present for core workflows.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Model Context Protocol server for Studex tools, notifications, and profile integrations
Managed cloud RSS and Atom feed reader with a remote Model Context Protocol (MCP) endpoint. Zero server setup required — enables AI agents like Claude to instantly subscribe to feeds, search full-text articles, extract readable content, and access curated AI editions ("Your Newspaper") over secure streamable HTTP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server enabling AI models to interact with the Nostr network, facilitating note posting and interaction with the freedom of speech protocol.38 npm39MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that allows Claude to interact with Warpcast accounts, enabling actions like posting casts, reading content, searching by keywords, and managing channel interactions through natural language.3MIT
- AlicenseCqualityDmaintenanceAn extensible Model Context Protocol server that provides standardized access to social platform data (currently Farcaster) and onchain data for LLMs.1013MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI assistants to interact with Bluesky/ATProtocol, providing authentication, timeline access, post creation, and social features like likes and follows.2151MIT