
ahmad-a0/silverbullet-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
ahmad-a0/silverbullet-mcp は [https://github.com/ahmad-a0/silverbullet-mcp. からインポートされた MCP サーバーの候補です
概要
ahmad-a0/silverbullet-mcp は [https://github.com/ahmad-a0/silverbullet-mcp. からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
このプロジェクトは、SilverBulletインスタンスにブリッジとして機能するモデルコンテキストプロトコル(MCP)サーバーを提供します。 大規模な言語モデル(LLM)やその他のMCP互換クライアントは、標準化されたMCP[toolsとresourcesを通じて、シルバーバレーのノートとデータをやり取りすることができます。
サーバは、既存の SilverBullet Docker コンテナと一緒に Docker Compose 経由で実行するように設計されています。 認証を処理し、外部アプリケーションに安全な方法を提供し、SilverBullet スペースにアクセスして操作します。
ノートに基づいて退職の投影を作成するためにClaudeを依頼する。
前提条件
- ドッカー
- ドッカーコンポーズ
はじめる
- リポジトリのクローン:
2.環境ファイルを作成する:
[.env.exampleの内容を.env]という新しいファイルにコピーします。
.envファイルを特定の値で更新します。
SB_AUTH_TOKEN: この MCP サーバーは SilverBullet にアクセスするために使用します。 複数のスペースサーバでは、Dashboard-issued API トークンを使用して、対象のスペースにアクセスします。 ※[MCP_TOKEN:このMCPサーバで認証するクライアント(AIモデルなど)のセキュアトークンです.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
SilverBullet MCP Server
This project provides a Model Context Protocol (MCP) server that acts as a bridge to your SilverBullet instance. It enables Large Language Models (LLMs) and other MCP-compatible clients to interact with your SilverBullet notes and data by exposing them through standardized MCP tools and resources.
The server is designed to be run via Docker Compose alongside your existing SilverBullet Docker container. It handles authentication and provides a secure way for external applications to access and manipulate your SilverBullet space.
Asking Claude to create a retirement projection, based on my notes.
Prerequisites
- Docker
- Docker Compose
Getting Started
-
Clone the repository:
git clone https://github.com/Ahmad-A0/silverbullet-mcp.git cd silverbullet-mcp -
Create an environment file: Copy the contents of
.env.exampleto a new file named.env.cp .env.example .envUpdate the
.envfile with your specific values:SB_AUTH_TOKEN: The token this MCP server uses to access SilverBullet. For multi-space servers, use a Dashboard-issued API token with access to the target space.MCP_TOKEN: A secure token for clients (e.g., your AI model) to authenticate with this MCP server.SB_API_BASE_URL: (Optional if running via docker-compose as defined) The base URL for the SilverBullet API. Defaults tohttp://silverbullet:3000in thedocker-compose.yml.PORT: (Optional if running via docker-compose as defined) The port the MCP server will listen on. Defaults to4000.
-
Build and run the services using Docker Compose:
docker compose up --buildThis command will:
- Build the Docker image for the
silverbullet-mcp-serverif it doesn’t exist or ifDockerfileor related files have changed. - Pull the tested SilverBullet 2.11.0 slim image (override with
SILVERBULLET_IMAGE). - Start both the SilverBullet instance and the MCP server.
The SilverBullet instance will be accessible at
http://localhost:3000. The MCP server will be accessible athttp://localhost:4000. - Build the Docker image for the
Existing SilverBullet and multi-space servers
Set SB_API_BASE_URL to the full address of the target space, including its path
binding. Do not append /.fs and do not infer the URL from the space’s display name.
For example:
SB_API_BASE_URL=http://your-silverbullet-host:3000/work
SB_AUTH_TOKEN=your-dashboard-issued-api-token
MCP_TOKEN=your-separate-mcp-client-token
Then start only the MCP service:
docker compose up --build --no-deps silverbullet-mcp-server
The hostname must be reachable from the MCP container; localhost inside that
container refers to the MCP container itself. Hostname-bound spaces need their
インストール
npx mcp-remote http://localhost:4000/mcp --transport http-only --header Authorization:Bearer ${MCP_SERVER_TOKEN}設定
{
"mcpServers": {
"silverbullet-mcp": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:4000/mcp",
"--transport",
"http-only",
"--header",
"Authorization:Bearer ${MCP_SERVER_TOKEN}"
],
"env": {
"MCP_SERVER_TOKEN": "your_actual_mcp_token_from_dotenv"
}
}
}
}