Back to MCP Directory
Connections & Capabilities
Connects To
GitHub
Capabilities
readwrite
Quickstart
Install
npx -yConfig
{
"mcpServers": {
"nwc": {
"command": "npx",
"args": ["-y", "@getalby/nwc-mcp-server"],
"env": {
"NWC_CONNECTION_STRING": "YOUR NWC CONNECTION STRING HERE"
}
}
}
}Exposed MCP Tools (4)
moderate
nwc_invoiceCreates a Lightning invoice for payment.
Involves creating financial requests.
moderate
nwc_payPays a Lightning invoice.
Directly executes financial transactions.
safe
nwc_get_balanceRetrieves the balance of the connected Lightning wallet.
Read-only operation.
safe
nwc_get_infoRetrieves information about the connected Lightning wallet.
Read-only operation.
Safety Assessment
The NWC MCP Server's safety depends heavily on the configuration of the NWC connection and the permissions granted. It's relatively safe for read-only operations or when user approval is strictly enforced for all transactions. However, it becomes risky if the NWC connection string is exposed or if the agent is granted broad permissions without sufficient oversight.
- Relies on NWC, which provides a degree of user control over permissions.
- Wallet interaction requires user approval via NWC.
- MCP framework provides a layer of abstraction and control.
- Can be configured in read-only mode.
- Improperly configured NWC permissions could lead to unintended financial transactions.
- Exposure of the NWC connection string could compromise wallet security.
- Server runs with access to a lightning wallet, enabling fund transfers.
- Potential for replay attacks if NWC implementation is flawed.
