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
notebin.io (a site and relay for code snippets) supports profile pages for users now, you can also update your profile information by clicking on the user dropdown and selecting "account"
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: