
ahmad-a0/silverbullet-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
ahmad-a0/silverbullet-mcp - кандидат на сервер MCP, импортированный из https://github.com/ahmad-a0/silverbullet-mcp.
Обзор
ahmad-a0/silverbullet-mcp - кандидат на сервер MCP, импортированный из https://github.com/ahmad-a0/silverbullet-mcp.
Обзор (машинный перевод)
Этот проект предоставляет сервер Model Context Protocol (MCP), который действует как мост к экземпляру SilverBullet. Это позволяет крупным языковым моделям (LLM) и другим MCP-совместимым клиентам взаимодействовать с заметками и данными SilverBullet, предоставляя их через стандартизированные MCP tools и resources.
Сервер предназначен для работы через Docker Compose вместе с существующим контейнером SilverBullet Docker. Он обрабатывает аутентификацию и обеспечивает безопасный способ доступа внешних приложений к вашему пространству SilverBullet.
Попросить Клода создать прогноз выхода на пенсию, основанный на моих заметках.
Предпосылки
Докер
- Docker Compose
Начало работы
- **Клон хранилища: **
2.Создать файл окружения:
Скопируйте содержимое .env.example в новый файл .env.
Обновите файл .env с вашими конкретными значениями:
[[Т5]]: Токен, который этот MCP-сервер использует для доступа к SilverBullet. Для многопрофильных серверов используйте токен API, выпущенный Dashboard, с доступом к целевому пространству.
MCP_TOKEN: Безопасный токен для клиентов (например, ваша модель ИИ) для аутентификации с этим MCP-сервером.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
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"
}
}
}
}