A Model Context Protocol (MCP) server to interact with your SilverBullet notes and data.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add silverbullet --env MCP_TOKEN='<MCP_TOKEN>' -- npx mcp-remote http://localhost:4000/mcp --transport http-only --header 'Authorization:Bearer {{config.MCP_TOKEN}}'~/.codex/config.toml
[mcp_servers.silverbullet]
command = "npx"
args = ["mcp-remote", "http://localhost:4000/mcp", "--transport", "http-only", "--header", "Authorization:Bearer {{config.MCP_TOKEN}}"]
env = { MCP_TOKEN = "<MCP_TOKEN>" }
# codex mcp add silverbullet --env MCP_TOKEN='<MCP_TOKEN>' -- npx mcp-remote http://localhost:4000/mcp --transport http-only --header 'Authorization:Bearer {{config.MCP_TOKEN}}'~/.cursor/mcp.json
{
"mcpServers": {
"silverbullet": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:4000/mcp",
"--transport",
"http-only",
"--header",
"Authorization:Bearer {{config.MCP_TOKEN}}"
],
"env": {
"MCP_TOKEN": "<MCP_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"silverbullet": {
"type": "stdio",
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:4000/mcp",
"--transport",
"http-only",
"--header",
"Authorization:Bearer {{config.MCP_TOKEN}}"
],
"env": {
"MCP_TOKEN": "<MCP_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"silverbullet": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:4000/mcp",
"--transport",
"http-only",
"--header",
"Authorization:Bearer {{config.MCP_TOKEN}}"
],
"env": {
"MCP_TOKEN": "<MCP_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"silverbullet": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:4000/mcp",
"--transport",
"http-only",
"--header",
"Authorization:Bearer {{config.MCP_TOKEN}}"
],
"env": {
"MCP_TOKEN": "<MCP_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"silverbullet": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:4000/mcp",
"--transport",
"http-only",
"--header",
"Authorization:Bearer {{config.MCP_TOKEN}}"
],
"env": {
"MCP_TOKEN": "<MCP_TOKEN>"
}
}
}
}需要的环境变量
MCP_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。