Amplenote Cache MCP Server

Amplenote Cache MCP Server

Provides access to your Amplenote SQLite database cache, enabling search and retrieval of notes and tasks, including full-text search, bidirectional references, task filtering by priority and due dates, and recently modified content tracking.

Category
访问服务器

README

Amplenote MCP Server

A Model Context Protocol (MCP) server that provides access to your Amplenote SQLite database cache.

Features

Note Operations

  • search_notes: Search notes using full-text search (FTS4)
  • get_note_by_uuid: Retrieve complete note content by UUID
  • get_note_by_name: Find notes by name (partial match)
  • list_notes: List all notes with pagination
  • get_recently_modified_notes: Get the most recently modified notes
  • get_note_references: Get bidirectional note references

Task Operations

  • search_tasks: Search tasks by description/body text with duration, dates, and priority
  • list_tasks: List and filter tasks (by priority, due date, etc.)
  • get_recently_modified_tasks: Get the most recently modified tasks
  • get_tasks_by_note: Find tasks associated with a specific note

Installation

The solution uses nix, so you just need to use nix to develop.

nix develop --no-pure-eval

Running commands

There are two different commands to help, one for starting mcp and one for Running tests.

nix develop --no-pure-eval --command mcp-start
nix develop --no-pure-eval --command run-tests

Configuration

The database path can be configured via environment variable. By default, it uses: ~/.config/ample-electron/amplenote.db which is not a valid database file, update with your local configuration.

Automatic Setup for Claude Desktop

The easiest way to configure Claude Desktop is to use the built-in setup script:

# Use default database path
nix develop --no-pure-eval --command setup-claude-desktop

# Or specify a custom database path
nix develop --no-pure-eval --command setup-claude-desktop /path/to/your/amplenote.db

This will automatically:

  • Detect your OS and locate the Claude Desktop config directory
  • Create or update the MCP server configuration
  • Configure the server to use nix for running
  • Set the database path

After running the setup script, restart Claude Desktop for the changes to take effect.

Manual Configuration

If you prefer to configure manually, add to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Linux: ~/.config/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "amplenote_cache": {
      "command": "nix",
      "args": ["develop", "--no-pure-eval", "--command", "mcp-start"],
      "cwd": "/path/to/amplenote_cache_mcp",
      "env": {
        "AMPLENOTE_DB_PATH": "~/.config/ample-electron/<some-file>.db"
      }
    }
  }
}

Available Tools

Note Tools

search_notes

Search your notes using full-text search.

  • query (str): Search query
  • limit (int): Max results (default: 10)

Example: Search for notes containing "project planning"

get_note_by_uuid

Get complete note content by UUID.

  • uuid (str): Remote or local UUID

Example: Retrieve the full content of a specific note

get_note_by_name

Find a note by name (case-insensitive partial match).

  • name (str): Note name to search for

Example: Find a note with "Meeting" in its title

list_notes

List all notes with pagination.

  • limit (int): Max results (default: 20)
  • offset (int): Skip N notes (default: 0)

Example: Get the first 20 notes sorted alphabetically

get_recently_modified_notes

Get the most recently modified notes.

  • limit (int): Max results (default: 20)

Example: See what notes were updated recently

get_note_references

Get bidirectional references for a note.

  • uuid (str): Note UUID

Example: Find all notes that link to or from a specific note

Task Tools

search_tasks

Search tasks by description/body text.

  • query (str): Search query to match in task body
  • limit (int): Max results (default: 20)
  • include_deleted (bool): Include deleted tasks (default: false)

Returns: Tasks with duration, due dates, priority (urgent/important level), and other details

Example: Find all tasks related to "documentation"

list_tasks

List tasks with filtering options.

  • limit (int): Max results (default: 20)
  • include_deleted (bool): Include deleted tasks (default: false)
  • priority (int): Filter by priority level (0-3, where higher is more important)
  • has_due_date (bool): Filter tasks with/without due dates

Example: Get all high-priority tasks with due dates

get_recently_modified_tasks

Get the most recently modified tasks.

  • limit (int): Max results (default: 20)
  • include_deleted (bool): Include deleted tasks (default: false)

Returns: Recently updated tasks with all details including timestamps

Example: See what tasks were recently updated

get_tasks_by_note

Get tasks associated with a specific note.

  • note_uuid (str): Note UUID

Example: Find all tasks mentioned in a specific note

Database Schema

The server reads from these Amplenote tables:

  • notes: Note content and metadata (including updated_at timestamp)
  • tasks: Task details (including priority, duration, due dates, and updated_at timestamp)
  • note_references: Note-to-note references
  • notes_search_index: FTS4 full-text search index

Testing

The project includes a comprehensive test suite. To run tests:

nix develop --no-pure-eval --command run-tests
poetry run pytest

To run tests with coverage:

poetry run coverage run -m pytest
poetry run coverage report

Development

This project follows idiomatic Python practices:

  • Modular architecture with separate files for database, models, notes, and tasks
  • Type hints throughout the codebase
  • Comprehensive docstrings
  • Small, focused functions with single responsibilities
  • Proper error handling

Code Style

The project uses ruff for linting and formatting:

poetry run ruff format app/
poetry run ruff check app/

Architecture

The codebase is organized into focused modules:

  • app/database.py: Database connection and configuration
  • app/models.py: TypedDict models for data structures
  • app/notes.py: Note-related functionality
  • app/tasks.py: Task-related functionality
  • app/__main__.py: FastMCP server and tool registration

This modular design makes the code easier to maintain, test, and extend.

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选