Back to MCP directory
publicPublicdnsLocal runtime

Nostrdb

nostrdb-mcp是一个为LLM提供nostrdb查询接口的MCP协议服务器。

article

README

🚀 nostrdb - mcp

nostrdb - mcp 是一个为 nostrdb 提供模型上下文协议(MCP)的服务器,它允许大语言模型(LLM)连接工具和系统,让 LLM 能够借助 ndb nostrdb 命令行工具执行本地 nostr 查询。

🚀 快速开始

MCP 是一种允许 LLM 连接工具和系统的协议。nostrdb - mcp 服务器可使 LLM 利用 ndb nostrdb 命令行工具执行本地 nostr 查询。默认情况下,它会使用你的 Notedeck nostrdb 目录,以便搜索 notedeck 已知的笔记。

✨ 主要特性

  • 提供模型上下文协议(MCP),让 LLM 能连接工具和系统。
  • 支持 LLM 使用 ndb 命令行工具执行本地 nostr 查询。
  • 可利用 Notedeck 的 nostrdb 目录搜索已知笔记。

📦 安装指南

前提条件

确保你已经在路径中拥有 ndb,可通过 notstrdb 仓库 进行编译,输入 make ndb 并将其复制到你的路径中。

使用 Goose 配置

你可以配置 goose 使用此工具:

$ goose 配置

在添加提供程序时,使用:npx -y nostrdb - mcp

你还可以创建一个临时会话来尝试一下:

$ goose 会议 --with - extension `npm -y nostrdb - mcp`

💻 使用示例

使用示例

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client