curstom-mcp-service
v0.0.8
Published
This is a Node.js service for interacting with the LnFi API.
Downloads
28
Readme
LnFi MCP Node Service
This is a Node.js service for interacting with the LnFi API.
Installation
- Make sure you have Node.js installed (version 16 or higher recommended)
- Clone this repository
- Install dependencies:
npm installBuilding the Project
To compile TypeScript files to JavaScript:
npm run buildThis will:
- Compile TypeScript files using
tsc - Make the built files executable
Usage
After building, you can start the service with:
npm startnpx
Please replace with your Nostr private key: xxxxxxxxxxxxxxxxxxxx
{
"mcpServers": {
"lnfi-mcp-node-service-test": {
"command": "npx",
"args": [
"-y",
"lnfi-mcp-node-service-test"
],
"env": {
"LNFI_PRIVATE_KEY": "xxxxxxxxxxxxxxxxxxxx", // Required: Nostr private key
"LNFI_ENV": "production", // Optional: 'development' | 'production'
"LNFI_RELAY": "wss://relay01.lnfi.network", // Optional: single relay URL or array of relays
"LNFI_BASE_URL": "https://market-api.lnfi.network" // Optional: API base URL
}
}
}
}Dependencies
- @lnfi-network/lnfi-sdk - LnFi API client
- zod - TypeScript-first schema validation
- @modelcontextprotocol/sdk - Model Context Protocol SDK
