notebin.io now has a remote mcp server at https://notebin.io/mcp that you can use with your Coding agent to fetch your NIP-C0 code snippets.
Example MCP config:
"mcp": {
"servers": {
"notebin.io": {
"url": "https://notebin.io/mcp"
}
}
}
The minimum you need to provide is your npub, but you can also provide a limit, a programming language and tags
Make sure to create a few code snippets first at
You can now sort by last edited, created at and title in Comet.
Title is particularly useful if you're writing a book or course where you can number the titles.
Each notebook should have it's own sort state.
I refactored the code snippet MCP code to use typescript and be simpler to understand, if you're just learning how to integrate nostr with MCP I recommend checking out the tools directory:
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
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.
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