open-index/open-npm huggingface dataset:
npm package: @james-mcp/mcp-server-flomo-james
Description: record notes to flomo
Latest version: 0.1.0

# 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

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

### 2. Configure MCP Client

Add the following to your MCP client configuration file:

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

### 3. Start the Server

```bash
mcp-server-flomo-james
```

## Usage

### Create a Note

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

<!-- ### List Notes

```javascript
const notes = await client.resources.list("note://");
```

### Get Note Details

```javascript
const note = await client.resources.get("note://note-id");
```

### Generate Note Summary

```javascript
const summary = await client.prompts.summarize_notes();
``` -->

## Development

Install dependencies:

```bash
npm install
```

Build the server:

```bash
npm run build
```

For development with auto-rebuild:

```bash
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

```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:

```bash
npm run inspector
```

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