About 🤖 nostr-code-snippet-mcp
nostr-code-snippet-mcp is an MCP server for code snippets. Its README shows how to configure it in Claude and provide NSEC and RELAYS environment variables.
Key features
- 01MCP server for code snippets
- 02Connect through Claude configuration
- 03Configure NSEC and RELAYS
Use cases
- 01Add the server to Claude configuration
- 02Set Nostr key and relay addresses
MCP support
This code snippet MCP server can be configured in Claude using the setup shown in its README.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project README🤖 nostr-code-snippet-mcp
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
Development
Install dependencies:
npm install
Build the project:
npm run build
Run the inspector:
npm run inspect
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.