In this demo we ask Claude to post a simple python code snippet. The MCP server reaches out via unix domain socket to have the event signed so Claude nor the MCP server needs to know the private key. This will allow you to have Claude post code snippets that you like on your behalf without needed to expose your private key/nsec.
@grownostr
Chris
chris@nostrings.news
npub1ygzj...60k2
Working on nostr stuff
- notestack.com
- transmit.fm
- notebin.io
- relayrunner.org
- relaywizard.com
- comet.md
NIP-C0 author
How does Primal show reply count, zap sums, like counts and repost counts so fast?
Simple example for NIP-C0 code snippet Mode Context Protocol Server:

GitHub
GitHub - nodetec/nostr-code-snippet-mcp: 🤖 code snippet mcp server
🤖 code snippet mcp server. Contribute to nodetec/nostr-code-snippet-mcp development by creating an account on GitHub.
I wrote a simple MCP server for fetching recent code snippets, this one just gets recent ones but you can imagine how useful this could be if you're running your own relay with a curated list of composable code snippets that already work.
This would be even cooler if you were using a search relay and could have claude search for public code snippets that match what you're trying to do by filetype and function name.
This is just scratching the surface.
I pretty much only find new people on here when accounts I already follow repost content. So we should probably be abusing reposts.
There must be something interesting we can do with this code snippet kind and the new MCP stuff but I have no idea how it works yet.
NIP-C0: Code Snippets is merged
NIP: https://github.com/nostr-protocol/nips/blob/master/C0.md
Reference implementation:
Repo: 

Notebin.io
Notebin.io - Modern Code Sharing Platform
Share and collaborate on code snippets easily with Notebin.io. A modern, fast, and secure platform for developers.
GitHub
GitHub - nodetec/notebin: ✂️ Decentralized code snippets w/ ⚡ lightning tips
✂️ Decentralized code snippets w/ ⚡ lightning tips - nodetec/notebin
I think it’s better to just read from one relay at a time.
Can we ask relays for counts yet?
A new version of Comet is available
This update includes a fix so that Comet is more compliant with existing long form clients.
When publishing, the title (the first line that starts with a single hashtag) will be stripped from the content
Also you must choose a cover image when publishing if you want one to be present.
you can download the new version at
Comet
Capture locally transmit globally
Code Snippet NIP proposal:
reference implementation at 
GitHub
NIP-C0: Code snippets by ChristianChiarulli · Pull Request #1852 · nostr-protocol/nips
Reference implementations:
https://notebin.io
https://snipsnip.dev

Notebin.io
Notebin.io - Modern Code Sharing Platform
Share and collaborate on code snippets easily with Notebin.io. A modern, fast, and secure platform for developers.
Some new update to
a platform for sharing code snippets
https://notebin.io/nevent1qvzqqqq98ypzqgs9ytpvx2em72gqdvn4ugjt9pwkfwce77da4yrfjx7t8ps7rr95qy28wumn8ghj7un9d3shjtnyv9kh2uewd9hsz8nhwden5te0wfjkccte9e3ksunfwdshgmtpvd5xjmn99e3k7mgqyzzr7zupcwn896pm5cxn82v32frsy98hfn2u2zk2wvtrrmpfh85q5n0q7hp
you can find the code here:
#grownostr

Notebin.io
Notebin.io - Modern Code Sharing Platform
Share and collaborate on code snippets easily with Notebin.io. A modern, fast, and secure platform for developers.
GitHub
GitHub - nodetec/notebin: ✂️ Decentralized code snippets w/ ⚡ lightning tips
✂️ Decentralized code snippets w/ ⚡ lightning tips - nodetec/notebin
A new version of ☄️ comet is available at
Updates:
- improved search highlight
- improved publish dialog
- cross platform note sync (requires you to setup your own couchdb server)
Comet
Capture locally transmit globally
Live Sync your notes cross platform with Comet 0.7.0
Note: This requires you to setup your own CouchDB server for now, I chose to set it up this way first rather than provide sync as a service to start for technical users to maintain maximum sovereignty over their notes. I will provide an encrypted live sync as a service in a future update, likely paid through lightning if possible.
This videos shows two instances of comet on the same machine but i've tested it and it works well across mac and linux on separate machines.