Sponsored by Deepsite.site

Hoarder MCP Server

Created By
VTFLAB8 months ago
Content

Hoarder MCP Server

Model Context Protocol (MCP) サーバーの実装で、Hoarder API と統合されています。LLMから直接Hoarderのブックマーク、ハイライト、タグ、リストにアクセスすることができます。

機能

  • ブックマークの取得とフィルタリング
  • ブックマークの検索
  • ハイライトの取得
  • タグの取得
  • リストの取得
  • ユーザー統計の取得

必要条件

  • Node.js 18以上
  • Hoarder APIアカウントとAPIキー

クイックスタート

GitHubリポジトリから直接実行するには:

# GitHubから直接実行
npx -y github:yourusername/hoarder-mcp-server --stdio

または、ローカルインストール後:

# ローカルインストール
npm install -g github:yourusername/hoarder-mcp-server

# 実行
hoarder-mcp-server --stdio

環境変数は以下の方法で設定できます:

# 環境変数の直接設定
HOARDER_API_URL=https://api.karakeep.app HOARDER_API_KEY=your_api_key npx -y github:yourusername/hoarder-mcp-server --stdio

セットアップ

  1. リポジトリをクローンする:
git clone <repository-url>
cd hoarder-mcp-server
  1. 依存関係をインストールする:
npm install
  1. 環境変数を設定する:

.env.exampleファイルを.envにコピーし、必要な値を設定します:

cp .env.example .env

.envファイルを編集してAPIキーとURLを設定します:

HOARDER_API_URL=https://api.karakeep.app
HOARDER_API_KEY=your_api_key_here

使用方法

ビルドと実行

# TypeScriptをJavaScriptにコンパイルする
npm run build

# サーバーを起動する
npm start

開発モード

npm run dev

MCPクライアントとの接続

このサーバーは標準的なModel Context Protocol (MCP) クライアントと互換性があります。例えば、Claude.app、Anthropic API、またはカスタムMCPクライアントから接続できます。

Claude.appでの使用方法

  1. Claude.appにアクセスします
  2. 右下の「+」ボタンをクリックし、「Add model context」を選択します
  3. 「Connect server」を選択し、以下のコマンドを入力します:
npx -y github:yourusername/hoarder-mcp-server --stdio
  1. 「Connect」をクリックすると、Claudeが自動的にHoarder APIと接続します
  2. これでClaudeから「Show me my bookmarks」などのプロンプトでHoarderのデータにアクセスできます

Anthropic API経由での使用

import { Anthropic } from "@anthropic-ai/sdk";
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";

// MCPクライアントを初期化
const mcp = new Client({ name: "hoarder-api-client", version: "1.0.0" });

// MCPサーバーに接続
const transport = new StdioClientTransport({
  command: "npx",
  args: ["-y", "github:yourusername/hoarder-mcp-server", "--stdio"],
});

await mcp.connect(transport);

// ツールのリストを取得
const toolsResult = await mcp.listTools();
const tools = toolsResult.tools.map((tool) => ({
  name: tool.name,
  description: tool.description,
  input_schema: tool.inputSchema,
}));

// Anthropic APIでツールを使用
const anthropic = new Anthropic();
const response = await anthropic.messages.create({
  model: "claude-3-opus-20240229",
  max_tokens: 1000,
  messages: [
    {
      role: "user",
      content: "最近のブックマークを5つ表示して、それぞれの内容を要約してください。",
    },
  ],
  tools,
});

利用可能なツール

MCP経由で以下のツールが提供されます:

  1. get_bookmarks - すべてのブックマークを取得、またはアーカイブ/お気に入りステータスでフィルタリング
  2. search_bookmarks - クエリ文字列でブックマークを検索
  3. get_highlights - ブックマークからすべてのハイライトを取得
  4. get_tags - ブックマーク用のすべてのタグを取得
  5. get_lists - すべてのリストを取得
  6. get_user_stats - ユーザー統計を取得

ライセンス

MIT

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
WindsurfThe new purpose-built IDE to harness magic
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Playwright McpPlaywright MCP server
ChatWiseThe second fastest AI chatbot™
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Tavily Mcp
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Amap Maps高德地图官方 MCP Server
Serper MCP ServerA Serper MCP Server
DeepChatYour AI Partner on Desktop
CursorThe AI Code Editor