Nostr MCP Server

by AbdelStark
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Used for version control and contributing to the project through git commands mentioned in the Contributing section.

  • References to GitHub repositories for the project itself, MCP specifications, and related resources.

  • Allows sending Lightning zaps (payments) to Nostr users through the 'send_zap' tool.

🌐 Nostr MCP サーバー

AI モデルが Nostr と対話してメモを投稿したり、言論の自由プロトコルと対話したりできるようにするモデル コンテキスト プロトコル (MCP) サーバー。

検閲耐性は、法学修士課程にとっても重要です。

ところで、今すぐNostrに参加しましょう!

🚀 機能

  • 📝 Nostrネットワークにメモを投稿する
  • 🔌 複数のリレーに接続する
  • 🤖 AI統合のためのMCP準拠API
  • 💸 Nostr ユーザーに Lightning の電撃を送信する (WIP)
  • 📡 リアルタイム通信のためのサーバー送信イベント(SSE)サポート

👷‍♂️ TODO

  • [ ] 複数同時接続のサポートを追加
  • [ ] stdinトランスポートモードを実装する(環境変数で設定可能)

📋 前提条件

  • Node.js 18歳以上

🛠️ インストール

Smithery経由でインストール

Smithery経由で Claude Desktop 用の Nostr MCP Server を自動的にインストールするには:

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 ユーザーに Lightning の電撃を送ります。

入力例:

{ "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 ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。

🔗 リソース

📬 お問い合わせ

よろしければ、私の公開鍵を使ってお気軽にフォローしてください。

npub1hr6v96g0phtxwys4x0tm3khawuuykz6s28uzwtj5j0zc7lunu99snw2e29

または、この QR コードをスキャンして私を見つけてください:


-
security - not tested
A
license - permissive license
-
quality - not tested

AI モデルが Nostr ネットワークと対話できるようにし、メモの投稿や言論の自由プロトコルとの対話を容易にするモデル コンテキスト プロトコル (MCP) サーバー。

  1. 🚀 Features
    1. 👷‍♂️ TODOs
      1. 📋 Prerequisites
        1. 🛠️ Installation
          1. Installing via Smithery
          2. Manual Installation
        2. 🚦 Usage
          1. Starting the Server
          2. Available Tools
        3. 🔧 Development
          1. Project Structure
          2. Running Tests
        4. 🤝 Contributing
          1. 📜 License
            1. 🔗 Resources
              1. 📬 Contact
                ID: hum50a32bb