MCP server for flomo - 快速记录想法到 flomo
Project description
flomo MCP Server
MCP server for flomo - 让 AI 工具(如 Claude Code)能够快速向 flomo 添加笔记。
安装
使用 pip
pip install flomo-mcp-server
使用 uv(推荐)
uv pip install flomo-mcp-server
或者从源码安装:
uv sync
配置
Claude Code
方式 1: 已安装后运行
{
"mcpServers": {
"flomo": {
"command": "flomo-mcp",
"args": [],
"env": {
"FLOMO_API_URL": "https://flomoapp.com/iwh/你的专属URL/"
}
}
}
}
方式 2: 使用 uv run(无需预安装)
{
"mcpServers": {
"flomo": {
"command": "uv",
"args": ["run", "flomo-mcp"],
"env": {
"FLOMO_API_URL": "https://flomoapp.com/iwh/你的专属URL/"
}
}
}
}
注意:使用
uv run方式需要先克隆仓库并进入目录,或指定完整路径。
获取 API URL
- 登录 flomo 网页版 (https://flomoapp.com)
- 进入设置 -> API
- 复制你的专属 API URL
使用示例
在 Claude Code 中:
"帮我记录一条 flomo:今天学到了 MCP 协议的基本原理 #学习"
Claude 会调用 add_flomo 工具,将内容添加到你的 flomo。
工具说明
add_flomo
向 flomo 添加一条笔记。
参数:
content(必填): 要记录的内容,支持 Markdown 格式,可使用 #标签
返回:
- 成功: "已成功添加到 flomo"
- 失败: 错误描述信息
API 限制
通过 API 每天最多发布 100 条,此限制由 flomo API 自动处理。
开发
使用 pip
安装开发依赖:
pip install -e ".[dev]"
运行测试:
pytest tests/ -v
使用 uv(推荐)
安装开发依赖:
uv sync
运行测试:
uv run pytest tests/ -v
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flomo_mcp_server-0.1.0.tar.gz.
File metadata
- Download URL: flomo_mcp_server-0.1.0.tar.gz
- Upload date:
- Size: 60.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce20a0493d19d9a642b16d120397cd5b74375f83145cbb6665f7aa6eb40a6040
|
|
| MD5 |
5d5433aebb3c051ef0a07ed434ba8888
|
|
| BLAKE2b-256 |
f6926fa2b29da52b7958e0fbdd563e8b7aeb9dd53be905e414dc1dd368de5bcc
|
File details
Details for the file flomo_mcp_server-0.1.0-py3-none-any.whl.
File metadata
- Download URL: flomo_mcp_server-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
565572ebc94bcbe1eb750aa2372d4fc79c89b26ebc7acca0f7275a0232f57112
|
|
| MD5 |
3ced045f19ed41abe51df806af533917
|
|
| BLAKE2b-256 |
d0f2a3a6e65d6e3dc930cd32c22b01e1ed945623357d6f5b1165327f64696731
|