Skip to main content
Glama
bigjeager

Bear App MCP Server

by bigjeager

bear_create_note

Create and customize notes in Bear App with titles, content, tags, attachments, and options to pin, timestamp, or open in new windows. Integrates via MCP Server for streamlined note management.

Instructions

Create a new note in Bear

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clipboardNoGet text from clipboard
editNoPlace cursor in note editor
fileNoFile path to add to note
filenameNoCustom filename for attached file
floatNoFloat note window
new_windowNoOpen in new window
open_noteNoOpen note after creation
pinNoPin note to top of list
show_windowNoShow Bear window
tagsNoComma-separated list of tags
textNoNote content
timestampNoPrepend current date and time
titleNoNote title
typeNoNote type
urlNoURL to include in note

Implementation Reference

  • The handler function that executes the bear_create_note tool logic. It maps input arguments to Bear URL parameters and invokes the 'create' action via executeWithCallback, returning the note data.
    private async createNote(args: any) { const params: Record<string, string | boolean> = {}; if (args.title) params.title = args.title; if (args.text) params.text = args.text; if (args.tags) params.tags = args.tags; if (args.pin) params.pin = "yes"; if (args.timestamp) params.timestamp = "yes"; if (args.clipboard) params.clipboard = "yes"; if (args.file) params.file = args.file; if (args.filename) params.filename = args.filename; if (args.open_note) params.open_note = "yes"; if (args.new_window) params.new_window = "yes"; if (args.float) params.float = "yes"; if (args.show_window) params.show_window = "yes"; if (args.edit) params.edit = "yes"; if (args.type) params.type = args.type; if (args.url) params.url = args.url; const noteData = await this.executeWithCallback("create", params); return { content: [ { type: "text", text: JSON.stringify({ message: `Created new note in Bear${args.title ? ` with title: ${args.title}` : ""}`, note: noteData }, null, 2) } ] }; }
  • The input schema and metadata for the bear_create_note tool, defining parameters like title, text, tags, etc.
    { name: "bear_create_note", description: "Create a new note in Bear", inputSchema: { type: "object", properties: { title: { type: "string", description: "Note title" }, text: { type: "string", description: "Note content" }, tags: { type: "string", description: "Comma-separated list of tags" }, pin: { type: "boolean", description: "Pin note to top of list" }, timestamp: { type: "boolean", description: "Prepend current date and time" }, clipboard: { type: "boolean", description: "Get text from clipboard" }, file: { type: "string", description: "File path to add to note" }, filename: { type: "string", description: "Custom filename for attached file" }, open_note: { type: "boolean", description: "Open note after creation" }, new_window: { type: "boolean", description: "Open in new window" }, float: { type: "boolean", description: "Float note window" }, show_window: { type: "boolean", description: "Show Bear window" }, edit: { type: "boolean", description: "Place cursor in note editor" }, type: { type: "string", description: "Note type" }, url: { type: "string", description: "URL to include in note" } } } },
  • src/index.ts:707-708 (registration)
    The switch case that registers and dispatches bear_create_note calls to the createNote handler.
    case "bear_create_note": return await this.createNote(args);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bigjeager/bear-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server