Skip to main content

flomo MCP Server

PyPI version License: MIT Python

MCP server for flomo - 让 AI 工具(如 Claude Code、ChatGPT)能够快速向 flomo 添加笔记。

什么是 MCP?

MCP (Model Context Protocol) 是 Anthropic 推出的开放协议,让 AI 模型能够与外部工具和服务进行交互。通过这个 server,你可以让 Claude 等AI 工具直接帮你记录想法到 flomo。

功能

  • ✅ 向 flomo 添加笔记
  • ✅ 支持 Markdown 格式
  • ✅ 支持 #标签
  • ✅ 通过环境变量配置 API URL
  • ✅ 完善的错误处理

安装

使用 uvx(推荐,无需预安装)

uvx --from flomo-mcp-server flomo-mcp

使用 pip

pip install flomo-mcp-server
flomo-mcp

使用 uv

uv pip install flomo-mcp-server
flomo-mcp

配置

Claude Code

在 Claude Code 的 settings.json 中添加:

{
  "mcpServers": {
    "flomo": {
      "command": "uvx",
      "args": ["--from", "flomo-mcp-server", "flomo-mcp"],
      "env": {
        "FLOMO_API_URL": "https://flomoapp.com/iwh/你的专属URL/"
      }
    }
  }
}

其他 MCP 客户端

同样配置 FLOMO_API_URL 环境变量即可使用。

获取 flomo API URL

  1. 登录 flomo 网页版
  2. 进入 设置 → API
  3. 复制你的专属 API URL

使用示例

在 Claude Code 中:

"帮我记录一条 flomo:今天学到了 MCP 协议的基本原理 #学习"

Claude 会调用 add_flomo 工具,将内容添加到你的 flomo。

工具说明

add_flomo

向 flomo 添加一条笔记。

参数:

  • content (必填): 要记录的内容,支持 Markdown 格式,可使用 #标签

返回:

  • 成功: "已成功添加到 flomo"
  • 失败: 错误描述信息

API 限制

通过 API 每天最多发布 100 条,此限制由 flomo API 自动处理。

开发

# 克隆仓库
git clone https://github.com/Jiraiya8/flomo-mcp-server.git
cd flomo-mcp-server

# 安装开发依赖
uv sync

# 运行测试
uv run pytest tests/ -v

# 本地运行
FLOMO_API_URL="https://flomoapp.com/iwh/你的URL/" uv run flomo-mcp

Links

License

MIT License - 详见 LICENSE 文件

Metadata

Release files for flomo-mcp-server 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flomo-mcp-server 0.1.1
File Size Uploaded Provenance
flomo_mcp_server-0.1.1.tar.gz 60.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for flomo-mcp-server 0.1.1
File Interpreter ABI Platform
flomo_mcp_server-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 66.3 kB

Release files / flomo_mcp_server-0.1.1.tar.gz

Download URL flomo_mcp_server-0.1.1.tar.gz
Size 60.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0238ff7adfd8ebd24ea10025d9f96549432cff9056b888b746043a04f8762ad0
BLAKE2b-256 checksum
How to use checksums
db46df05c2c27302dd64f1effd261f11c719efd3b8ddcb7c2352dfacafcdebfb
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / flomo_mcp_server-0.1.1-py3-none-any.whl

Download URL flomo_mcp_server-0.1.1-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae4fbc68104d2721d3778f8d7efac3843fb422ffcea074d6babdc5246470f5cb
BLAKE2b-256 checksum
How to use checksums
4a8cf45d7f676024418de4251a724e687c4dbd4244879cf046bada8f676e7084
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for flomo-mcp-server 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page