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(모델 컨텍스트 프로토콜) 서버로, 이를 통해 메모를 게시하고 언론의 자유 프로토콜과 상호 작용할 수 있습니다.

LLM에서도 검열 저항은 중요합니다.

그런데,지금 당장 Nostr에 가입하세요!

🚀 특징

  • 📝 Nostr 네트워크에 메모를 게시하세요
  • 🔌 여러 릴레이에 연결
  • 🤖 AI 통합을 위한 MCP 호환 API
  • 💸 Nostr 사용자에게 Lightning zaps 전송(WIP)
  • 📡 실시간 통신을 위한 SSE(Server-Sent Events) 지원

👷‍♂️ 할 일

  • [ ] 여러 개의 동시 연결에 대한 지원 추가
  • [ ] stdin 전송 모드 구현(환경 변수를 통해 구성 가능)

📋 필수 조건

  • 노드.js 18+

🛠️ 설치

Smithery를 통해 설치

Smithery를 통해 Claude Desktop용 Nostr MCP Server를 자동으로 설치하려면:

지엑스피1

수동 설치

  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

노스트르 사용자에게 번개 충격을 보냅니다.

입력 예시:

{ "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

아니면 이 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