mcp-server-flomo

mcp-server-flomo

0

This project is a TypeScript-based MCP server designed for recording notes to flomo. It allows users to create, access, and summarize notes, complete with metadata and a plain text mime type for easy content access.

mcp-server-flomo-james MCP Server

Record notes to flomo

This is a TypeScript-based MCP server that implements a simple notes system. It demonstrates core MCP concepts by providing:

  • Resources representing text notes with URIs and metadata
  • Tools for creating new notes
  • Prompts for generating summaries of notes

Features

Resources

  • List and access notes via note:// URIs
  • Each note has a title, content and metadata
  • Plain text mime type for simple content access

Tools

  • create_note - Create new text notes
    • Takes title and content as required parameters
    • Stores note in server state

Prompts

  • summarize_notes - Generate a summary of all stored notes
    • Includes all note contents as embedded resources
    • Returns structured prompt for LLM summarization

MCP Client Configuration

1. Install MCP Server

npm install -g /path/to/mcp-server-flomo-james

2. Configure MCP Client

Add the following to your MCP client configuration file:

{
  "servers": {
    "flomo": {
      "type": "mcp-server-flomo-james",
      "config": {
        "apiUrl": "https://flomoapi.com" // Replace with actual flomo API URL
      }
    }
  }
}

3. Start the Server

mcp-server-flomo-james

Usage

Create a Note

const response = await client.tools.create_note({
  title: "My Note",
  content: "This is a flomo note created via MCP server",
});

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Installation

To use with Cursor Desktop, add the server config:

On MacOS: ~/Library/Application Support/Cursor/cursor_desktop_config.json On Windows: %APPDATA%/Cursor/cursor_desktop_config.json

"mcp-server-flomo": {
  "command": "node",
  "args": [
    "/Users/xxx/Desktop/ai/mcp/mcp-server-flomo/build/index.js"
  ],
  "env": {
    "FLOMO_API_URL": "https://flomoapp.com/iwh/xxx/xxx/"
  }
}

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector , which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.