nostr-read-mcp

nostr-read-mcp

A read-only MCP server for AI agents to access Nostr profiles, notes, search, and relay lists through user-chosen relays, without requiring an account or keys.

Category
Visit Server

README

nostr-read-mcp

A small, read-only Nostr MCP server for local AI agents (Claude Code and any other MCP client). It lets your agent read the Nostr network — profiles, notes, full-text search, and relay lists — through relays you choose. No account, no keys, no third-party API.

Built on nostr-tools, Bun-native, ~210 lines.

Read-only by construction

There is no signing, publishing, zapping, DM, or private-key code in this server. It cannot write to Nostr and reads no secrets — so there's nothing to leak and no deny-list to maintain. The only configuration is which relays to read from.

Tools

Tool What it does
nostr_get_profile Kind-0 metadata (name, nip05, lud16, about) for a pubkey
nostr_get_notes Recent notes (kind 1 by default) for a pubkey, newest first
nostr_query Generic filter — authors, kinds, ids, tags (#e/#p/#t), since/until, limit
nostr_search NIP-50 full-text search across search-capable relays
nostr_get_relay_list NIP-65 (kind 10002) read/write relays for a pubkey
nostr_nip19 Decode/encode npub/nprofile/note/nevent (pure local, no network)

Pubkeys may be given as hex, npub…, or nprofile….

Install

Requires Bun.

git clone <this-repo> nostr-read-mcp
cd nostr-read-mcp
bun install

Register with an MCP client

Add to your client's MCP server config. For Claude Code (~/.claude.jsonmcpServers):

"nostr": {
  "command": "bun",
  "args": ["/path/to/nostr-read-mcp/index.ts"],
  "env": {}
}

Then restart the client so it loads the server.

Configuration (optional env)

Var Default Purpose
NOSTR_RELAYS damus, nostr.band, nos.lol, primal, purplepag.es Comma-separated read relays
NOSTR_SEARCH_RELAYS search.nos.today, relay.nostr.band, relay.noswhere.com NIP-50 search relays
NOSTR_TIMEOUT_MS 8000 Per-query timeout

Multiple search relays are configured for redundancy — any single one is often down, and the pool aggregates across whichever answer.

License

MIT — see LICENSE.

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured