ppdiary

ppdiary

Enables AI-assisted diary management through natural language, allowing you to create, read, update, delete, and search diary entries stored locally in SQLite.

Category
访问服务器

README

ppdiary - A Diary System Powered by MCP Server

ppdiary is a diary management system built on the Model Context Protocol (MCP). Operating as an MCP server, it enables diary creation and management through MCP-compatible clients like Claude.

Concept

Built with the concept of "A diary system that works exclusively through MCP Server", it provides simple yet powerful diary management capabilities. This lightweight system runs entirely locally using SQLite for data persistence.

Why ppdiary? - The Zero UI Philosophy

ppdiary represents a paradigm shift in personal software design. In an era where every app demands your attention with complex interfaces, ppdiary takes a radically different approach:

No UI. No app. No website. Just conversation.

This is what we call the Zero UI Philosophy - software that exists purely through natural language interaction with AI assistants. You don't "use" ppdiary; you simply talk about your day with Claude, and your diary writes itself.

AI-Native Design

Unlike traditional apps with AI features bolted on, ppdiary was designed from the ground up for the AI era:

  • Invisible by design - No cognitive overhead of learning a new interface
  • Context-aware - Your AI assistant understands intent, not just commands
  • Naturally integrated - Diary writing happens within your existing AI workflow
  • Locally stored - Your data stays on your machine with SQLite

The Future of Personal Software

ppdiary isn't just a diary - it's a glimpse into the future where personal software dissolves into conversation. No more app switching, no more UI friction, just natural interaction with an AI that understands you.

This is what AI-native software looks like.

Features

  • 📝 Create, edit, and delete diary entries
  • 🔍 Full-text keyword search
  • 📄 Pagination support
  • 🗄️ Local SQLite database storage
  • 🐳 Docker containerization

Who is this for?

ppdiary is designed for:

  • Developers and tech enthusiasts comfortable with Docker and command-line tools
  • Privacy-conscious users who want full control over their personal data
  • AI early adopters exploring new paradigms of human-computer interaction
  • Minimalists seeking distraction-free journaling without traditional apps

Limitations & Considerations

Zero UI Trade-offs

While revolutionary, the Zero UI approach has limitations:

  • No visual browsing - You must know what you're looking for
  • AI interpretation required - Natural language can sometimes be ambiguous
  • No rich media - Text-only entries (no images, drawings, or formatting)
  • Learning curve - Requires familiarity with conversational AI patterns

MCP Protocol Status

  • Experimental technology - MCP is new and evolving
  • Limited client support - Currently only works with Claude Desktop and compatible clients
  • API changes possible - Future updates may require adjustments

Security & Privacy Notes

While ppdiary prioritizes local storage:

  • Unencrypted SQLite - Database is stored in plain text (no encryption at rest)
  • File system dependent - Security relies on your OS file permissions
  • Docker volume access - Anyone with Docker access can read the database
  • No authentication - No user accounts or access control

⚠️ Important: For sensitive diary entries, consider additional encryption layers or secure your system appropriately.

Requirements

  • Node.js 24.7.0 or higher (for local installation)
  • Docker (if using Docker)

Installation with Claude CLI

claude mcp add ppdiary --scope user --env TZ=Asia/Tokyo -- \
  docker run -i --rm -e TZ -v ~/ppdiary-data:/app/data ghcr.io/ppworks/ppdiary:latest

Adjust TZ=Asia/Tokyo to your timezone.

Manual Configuration

Claude Desktop Configuration

If you prefer manual configuration, add the following to your Claude Desktop configuration file (claude_desktop_config.json):

{
  "mcpServers": {
    "ppdiary": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-v",
        "/Users/USERNAME/ppdiary-data:/app/data",
        "ghcr.io/ppworks/ppdiary:latest"
      ]
    }
  }
}

Important:

  • Replace USERNAME with your actual username
  • The ppdiary-data directory will be created automatically
  • SQLite database files will be saved in this directory

To add timezone support, include the TZ environment variable in the env section (e.g., "TZ": "Asia/Tokyo"). Without configuration, timestamps default to UTC.

Usage

With ppdiary configured in Claude Desktop, you can perform these operations:

Write a Diary Entry

"I want to write today's diary in ppdiary"
"Create a diary entry with title: Wonderful Day, content: Today was..."

Search Diary Entries

"Search for diary entries with the keyword 'travel' in ppdiary"
"Show me the 10 most recent diary entries"

Read a Diary Entry

"Show me the diary entry with ID: xxx in ppdiary"

Edit a Diary Entry

"Change the title of diary entry ID: xxx in ppdiary"

Delete a Diary Entry

"Delete the diary entry with ID: xxx in ppdiary"

API Reference

ppdiary provides the following MCP tools:

Tool Name Description Parameters
get_diary_list Retrieve list of diary entries query?, order?, page?, perPage?
get_diary Fetch a specific diary entry id
create_diary Create a new diary entry title, content
update_diary Update an existing diary entry id, title, content
delete_diary Delete a diary entry id

Data Storage Location

  • When using Docker: Mounted volume (e.g., /Users/USERNAME/ppdiary-data/ on macOS)
  • When running locally: data/ folder in the project directory

The database file (diary.db) is saved in SQLite format.

Development

Development Environment Setup

# Install dependencies
npm install

# Run tests
npm test

# Run tests with coverage
npm run test:coverage

# Lint
npm run lint

# Type check
npm run type-check

Build

npm run build

Build Docker Image

docker build -t ppdiary .

Troubleshooting

Database File Not Found

  • When using Docker, verify that the volume mount path is correct
  • Check for file system permission issues

MCP Server Won't Start

  • Ensure Node.js version is 24.7.0 or higher
  • For Docker, verify that the container is running correctly

Docker Image Not Updating

Add --pull always to the docker run command to force pulling the latest image:

docker run -i --rm --pull always -v ~/ppdiary-data:/app/data ghcr.io/ppworks/ppdiary:latest

License

MIT

Author

@ppworks

Contributions

Issues and Pull Requests are welcome!

Support

If you encounter any issues or have questions, please report them on GitHub Issues.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选