Skip to main content
Glama

Nostr MCP Server

by AustinKelsay

convertNip19

Transform NIP-19 entities like npub, nsec, note, nprofile, nevent, and naddr into desired formats, including hex, for Nostr network operations.

Instructions

Convert any NIP-19 entity (npub, nsec, note, nprofile, nevent, naddr) to another format

Input Schema

NameRequiredDescriptionDefault
authorNoOptional author pubkey (hex format) for nevent/naddr
identifierNoRequired identifier for naddr conversion
inputYesThe NIP-19 entity or hex string to convert
kindNoOptional event kind for nevent/naddr
relaysNoOptional relay URLs for complex entities (nprofile, nevent, naddr)
targetTypeYesThe target format to convert to

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "author": { "description": "Optional author pubkey (hex format) for nevent/naddr", "type": "string" }, "identifier": { "description": "Required identifier for naddr conversion", "type": "string" }, "input": { "description": "The NIP-19 entity or hex string to convert", "type": "string" }, "kind": { "description": "Optional event kind for nevent/naddr", "type": "number" }, "relays": { "description": "Optional relay URLs for complex entities (nprofile, nevent, naddr)", "items": { "type": "string" }, "type": "array" }, "targetType": { "description": "The target format to convert to", "enum": [ "npub", "nsec", "note", "hex", "nprofile", "nevent", "naddr" ], "type": "string" } }, "required": [ "input", "targetType" ], "type": "object" }

Other Tools from Nostr MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AustinKelsay/nostr-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server