Add this to your claude config file:
{
"mcpServers": {
"nostr-code-snippet-mcp": {
"command": "node",
"args": ["/Users/<path to>/nostr-code-snippet-mcp/dist/index.js"],
"env": {
"NSEC": "<some nsec>",
"RELAYS": "wss://relay.damus.io,wss://relay.snort.social"
}
}
}
}
NOTE: be sure to replace <path to>
with the path to wherever you cloned the repo
The configuration file location depends on your operating system:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Linux:
~/.config/Claude/claude_desktop_config.json
- Windows:
%APPDATA%/Claude/claude_desktop_config.json
Install dependencies:
npm install
Build the project:
npm run build
Run the inspector:
npm run inspect