nostr-mcp-server
The Nostr MCP Server is a Model Context Protocol server that provides Nostr network capabilities to language model interfaces like Claude. It allows fetching and interacting with user profiles, notes, and financial transactions such as zaps, offering advanced functionality like anonymous payments and NIP searches.
Nostr MCP Server
A Model Context Protocol (MCP) server providing Nostr capabilities to LLMs such as Claude.
Features
- Fetch user profile and notes from the Nostr network.
- Handle zaps received and sent, with detailed payment information.
- Search Nostr Implementation Possibilities (NIPs) and send anonymous zaps.
- Supports hex public keys and npub format.
Installation
Clone the repository, install dependencies, and build the project.
Usage
Configure servers like Claude and Cursor to interact with Nostr tools through this MCP server. Enable querying profiles, notes, zaps, and related activities on Nostr.
Advanced Usage
Specify custom relays and the number of notes or zaps to fetch. Send anonymous zaps with optional comments and validate NIP-57 elements.
Limitations
Default timeout is set to 8 seconds for queries and only supports a subset of relays.
Development
Modify and build the server using defined structure and documentation for tools and utilities.
Testing
The project includes a comprehensive test suite using Jest for unit and integration tests.