Silverbullet Model Context Protocol Server

Hey guys!

I made a Model Context Protocol (MCP) server for SilverBullet, this lets you connect your instance to different clients to let LLMs list, search, read and update your notes through tool calls.

retirement-smaller

Here I ask Claude how long it’ll take me to retire, so it lists out my notes then searches for and reads notes relating to my income, promotions, age and career. Before creating a new retirement projection note.

The server interacts with your notes through the SilverBullet HTTP API, rather than modifying files directly (so read-only is respected). Of course, please create back-ups before using this.

I’ve found this useful for organisation and tagging, as well as doing research on my to-dos.

11 Likes

Cool!

Would you be interested in having this integrated into SilverBullet?

Here’s a first shot:

1 Like

I’d really prefer to keep this outside SB itself.

@Ahmad-A0 I try to install mcp server. Is it compatible with SB 2.0 HTTP API.
It seams to not fetch data from right endpoint:
“Error: Error: Failed to parse JSON response from SilverBullet API:”
I have created a github ticket

I have created a PR for SP HTTP API v2. Currenlty, it works fine.

This is nice!

Wondering if someone would care to educate me on the advantages of using an MCP with notes over pointing the LLM directly at the markdown files? Especially given all the interesting things happen on the client side in silver bullet and not on the server side.

MCP acts as a direct bridge between the LLM and your notes in SilverBullet, allowing it to read, search, and interact with your notes in a much more native way. You can think of the Model Context Protocol as a standardized API for LLMs.

Depending on the permissions you grant, the MCP server allows the LLM to dynamically search, read or even modify your notes based on your requests using natural language. This removes the friction of manual work, as you no longer need to manually copy and paste Markdown content into the LLM’s chat window.

I’m familiar with MCPs, but my main curiosity was how an MCP could be helpful in the context of SB because it only interacts with the server, which is just a file server which doesn’t do indexing, linking or anything related to the PKM or a note taking system.

I’m not seeing how this would be better than a basic filesystem/markdown MCP that gives the LLM access to the raw markdown files.

:man_shrugging:

haven’t looked exactly in the code or used this specific MCP. sorry for missunderstading. my explanation was only in general terms not specific to this MCP.

1 Like