Skip to main content
Glama

NWC MCP Server

by getAlby
get_wallet_service_info.ts599 B
import { nwc } from "@getalby/sdk"; import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; export function registerGetWalletServiceInfoTool( server: McpServer, client: nwc.NWCClient ) { server.tool( "get_wallet_service_info", "Get NWC capabilities, supported encryption and notification types of the connected lightning wallet", async () => { const info = await client.getWalletServiceInfo(); return { content: [ { type: "text", text: JSON.stringify(info, null, 2), }, ], }; } ); }

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/getAlby/nwc-mcp-server'

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