Token导航 LogoToken导航TokenDH.com
Nostr MCP logo
金融服务stdio官方级别未说明来源级核验

Nostr MCP

MCP Server

@smithery/cli

一个使AI模型能够与Nostr协议交互的服务器,允许它们发布笔记并与自由言论协议互动。

工具数

0

提示词数

0

GitHub Stars

36

资源数

0
TypeScriptClaude实时交互Claude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

AbdelStark

提供方

AbdelStark

最后核验

2026/5/17 20:58

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx -y @smithery/cli install @AbdelStark/nostr-mcp --client claude

详细介绍

🌐 我们的MCP服务器

一个模型上下文协议(MCP)服务器,使AI模型能够与Nostr交互,允许它们发布笔记并与言论自由协议交互。

即使对法学硕士来说,抵制审查也很重要。

](https://smithery.ai/server/@AbdelStark/nostr-mcp) ![TypeScript](https://www.typescriptlang.org/) ![MCP](https://github.com/modelcontextprotocol/typescript-sdk) ![Nostr](https://nostr.com/)

顺便说一句,你应该 立即加入Nost!

🚀 特性

  • 📝 向Nostr网络发布注释
  • 🔌 连接到多个继电器
  • 🤖 符合MCP的API,用于人工智能集成
  • 💸 向Nostr用户发送闪电攻击(WIP)
  • 📡 服务器发送事件(SSE)支持实时通信

👷‍♂️ 全部

  • \[\]添加对多个同时连接的支持
  • \[\]实现stdin传输模式(可通过环境变量配置)

📋 先决条件

  • Node.js 18+

🛠️ 安装

通过Smithery安装

通过以下方式自动安装克劳德桌面的Nostr MCP服务器 史密瑟里:

npx -y @smithery/cli install @AbdelStark/nostr-mcp --client claude

手动安装

  1. 克隆存储库:
git clone https://github.com/AbdelStark/nostr-mcp
cd nostr-mcp
  1. 安装依赖项:
npm install
  1. 创建一个 .env 文件:
💡 您可以复制 .env.example 文件并根据需要进行修改。
# Log level (debug, info, warn, error)
LOG_LEVEL=debug
# Node environment (development, production)
NODE_ENV=development
# List of Nostr relays to connect to
NOSTR_RELAYS=wss://relay.damus.io,wss://relay.primal.net,wss://nos.lol
# Your Nostr private key (starts with nsec)
NOSTR_NSEC_KEY=your_nsec_key_here
# Server mode (stdio or sse)
SERVER_MODE=sse
# Port for SSE mode
PORT=9000

🚦 用法

启动服务器

# Development mode with hot reload
npm run dev

# Production mode
npm start

可用工具

post_note

在Nostr网络上发布一条新消息。

示例输入:

{
  "content": "Hello from Nostr! 👋"
}

send_zap

向Nostr用户发送闪电攻击。

示例输入:

{
  "nip05Address": "user@domain.com",
  "amount": 1000
}

🔧 发展

项目结构

nostr-mcp/
├── src/
│   ├── index.ts        # Main server entry point
│   ├── nostr-client.ts # Nostr client implementation
│   └── types.ts        # TypeScript type definitions
├── .env               # Environment configuration
└── tsconfig.json     # TypeScript configuration

运行测试

npm test

🤝 贡献

  1. 分叉存储库
  2. 创建功能分支(git checkout -b feature/amazing-feature)
  3. 提交您的更改(git commit -m 'Add some amazing feature')
  4. 推到分支(git push origin feature/amazing-feature)
  5. 打开拉取请求

📜 许可证

此项目根据MIT许可证获得许可-请参阅 许可证 文件以获取详细信息。

🔗 资源

📬 联系

如果你愿意,请随时使用我的公钥关注我:

npub1hr6v96g0phtxwys4x0tm3khawuuykz6s28uzwtj5j0zc7lunu99snw2e29

或者只是 扫描此二维码 找到我:

Nostr Public Key QR Code

______________________________________________________________________

Made with ❤️ for the Nostr community

目录标签

目录标签

TypeScriptClaude实时交互AI集成本地部署去中心化通信区块链技术Nostr协议

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Node.js

来源包(packageName,安装包名)

@smithery/cli

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP