flomo-mcp
by TaylorChen
README.md
# flomo-mcp MCP Server
## flomo-mcp
一个基于 MCP(Model Context Protocol)的服务,将文本快速发布到 flomo。
### 功能特性
- 提供 `write_note` 工具:把文本作为一条 flomo 笔记发布
- 提供资源/提示示例:示例 notes 资源、`summarize_notes` 提示
### 安装与构建
1. 克隆仓库
2. 安装依赖:`npm install`
3. 构建:`npm run build`
### 配置
- 以环境变量或启动参数设置 Flomo Webhook:
- 环境变量:`FLOMO_API_URL="https://flomoapp.com/iwh/xxx/yyy/"`
- 启动参数:`--flomo_api_url=https://flomoapp.com/iwh/xxx/yyy/`
### 在 Cursor 中使用
1. 打开 `~/.cursor/mcp.json`,新增:
```json
{
"mcpServers": {
"flomo-mcp": {
"command": "/absolute/path/to/node",
"args": ["/absolute/path/to/flomo-mcp/build/index.js"],
"env": {
"FLOMO_API_URL": "https://flomoapp.com/iwh/xxx/yyy/"
}
}
}
}
```
2. 在 Cursor 侧边栏 MCP 中启用 `flomo-mcp`
3. 调用工具 `write_note`,传入:
```json
{ "content": "今天开发了一个 MCP 服务器,很开心记录一下" }
```
### 本地调试(可选)
- 运行 Inspector:`npm run inspector`
- 交互测试资源、提示与工具
### 许可协议
- 本项目使用 MIT License,详见 `LICENSE`
### 贡献
- 欢迎 PR/Issue,提交前请:
- 代码通过 `npm run build`
- 不要提交 `build/`、`node_modules/`、私密信息
write 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
## 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 Claude Desktop, add the server config:
On MacOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
On Windows: `%APPDATA%/Claude/claude_desktop_config.json`
```json
{
"mcpServers": {
"flomo-mcp": {
"command": "/path/to/flomo-mcp/build/index.js"
}
}
}
```
### Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/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.
TDQS
B3.2/5.0
Scored across 1 tool
Disambiguation5/5
Only one tool exists, so there is no possibility of overlap or confusion between tools. The intent is unambiguous.
Naming Consistency5/5
The single tool name 'write_note' follows a clear verb_noun pattern, which is consistent and predictable even with only one tool present.
Tool Count2/5
With only one tool, the server feels very thin for a Flomo integration. A typical note-taking service would require multiple operations (e.g., read, update, delete), so the small count is likely a limitation rather than a deliberate scope.
Completeness1/5
The tool surface is severely incomplete for the stated purpose. Only 'write_note' (create) is available, with no way to retrieve, update, list, or delete notes, leaving obvious dead ends for any real workflow.