@dzkjza/flomo-mcp
v0.0.6
Published
A Model Context Protocol server for flomo app
Readme
flomo-mcp MCP Server
A Model Context Protocol server
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:
npm installBuild the server:
npm run buildFor development with auto-rebuild:
npm run watchInstallation
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
{
"mcpServers":{
"flomo-mcp":{
"command":"npx",
"args":["-y","@dzkjza/flomo-mcp"],
"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 inspectorThe Inspector will provide a URL to access debugging tools in your browser.
用户修改~/.cursor/mcp.json文件,配置FLOMO_API_URL:"https://flomoapp.com/iwh/xxx/xxxx/" 配置args为flomo-mcp本地文件夹下/build/index.js路径即可,cursor会自动启动mcp服务器,在Agent模式下,发布”我今天开发了一个MCP服务器,感觉很开心,帮我记录一下吧“内容在大模型理解优化后可由用户确认完成后即可成功上传至flomo
