Bear 2.8 Beta: Official CLI, Claude Connector, and MCP Server

Bear CLI is fantastic news! This unlocks a bunch of workflows I’ve wanted for a while.

One small “might be useful to someone” note: a while back I built a hobby project called mde, a terminal Markdown preview/editor. It can pair nicely with bearcli if you ever want to quickly view or lightly edit note content without leaving the terminal (or prepare Markdown to send into Bear).

Example:

bearcli cat AB48059-EE35-4E68-CCE6-8C85DDED8BA6 | mde

It’s just a lightweight terminal editor. If anyone tries it, I’d genuinely appreciate feedback :slight_smile:
Here’s the repo: GitHub - michelefenu/mde: Edit and preview markdown files without leaving the terminal · GitHub

1 Like

Which API are you referring to? And what would would you like to have there? :slight_smile:

Any plans to add HTTP transport to the MCP server, as my AI app of choice doesn’t support stdio?

It was a little tricky to get Claude Connector setup, because the “save” button was greyed out with the suggested path to bearcli. But once I added a space and then backspace, the save button was available and everything connected fine.

I’m really liking this. I’m not a super-techy guy but it’s simply to get working.

I just extended my Bear subscription for another year.

1 Like

@matteo the way Agenda handles this is they ship an HTTP MCP built into the app. This may be useful if there’s enough demand: Agenda Support for Model Context Protocol (MCP) - Shortcuts - Agenda Community

@matteo any chance that you add a backup function to bearcli to create a backup with it?

Besides that I would like to know if there are any plans to add an automatic backup feature for the Bear apps on iOS and MacOS. To think about manually backing up my precious data drives me crazy.

Probably not. Bear is local first and also private-oriented. Safely exposing your notes over HTTP is not trivial. We would have to add authentication, and if you want to access it on ChatGPT, you would also need to expose it to the world through a tunnel like NGrok. That said, we follow how the field develops, and there might be other solutions coming up.

We have considered it, but it is technically a bit complicated, so we are starting without. We have also considered adding export (to different formats), and syncing with iCloud. This is a first version, and we want to learn more about how it will be used.

1 Like

My request is for localhost-only HTTP (like 127.0.0.1:6190), not remote access. According to the chat app I use (FlowDown) iOS/macOS app sandboxing blocks stdio, so HTTP is the only viable transport for sandboxed MCP clients like FlowDown.

Would you consider a small helper app that bridges stdio to HTTP locally?

Sounds like a fair use case. I will make a note about it and await more user feedback.

1 Like

This is already possible using Shortcuts Automation on OS 26.

It’s not nearly as good as proper file versioning. But it does work.

Hi,

it would be great to have a bearcli export / backup command. To be able to cron for daily backup for example. I prefer cli to shortcuts…

thx

@matteo I was asking about the x-callback API you have – wondering if you have any plans to update it. But I guess now you have more :smiley: Technically, the CLI becomes an API too.

This returns each note as a separate JSON object, one after another. Since the output isn’t wrapped in a JSON array, it’s not valid JSON as a whole, which makes it awkward to process.

Would it make more sense to return the results as a single JSON array of notes instead? That way the output would be valid, parseable JSON out of the box.

1 Like

Yes, this seems wrong. Will investigate!

Thanks for the response. Personally I would prefer if the native app could handle that. Having a consistent and permanent backup of the data outside of Bear on iOS and Mac is a feature that I deem as necessary before putting a lot of valuable data inside Bear.

Bear.App should have a setting and should manage the Backup automatically. Currently I wouldn’t know where to look for my Bear data if something goes wrong. Unregularly, I think about backups and do a manual backup. But this isn’t ideal.