
abdelstark/nostr-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
abdelstark/nostr-mcp는 https://github.com/abdelstark/nostr-mcp.]에서 가져온 MCP 서버 후보입니다
개요
abdelstark/nostr-mcp는 https://github.com/abdelstark/nostr-mcp.]에서 가져온 MCP 서버 후보입니다
개요(AI 번역)
A Model Context Protocol (MCP) 서버는 Nostr과 상호 작용할 수 있는 AI 모델을 사용할 수 있으며, 무료 음성 프로토콜로 메모를 게시하고 상호 작용할 수 있습니다.
검열 저항 문제, 심지어 LLMs.
BTW, 당신은 지금 Nostr에 가입해야합니다!
♨ 특징
- Nostr 네트워크에 포스트 노트
- 여러 릴레이에 연결
- AI 통합을 위한 MCP-compliant API
- 라이트닝 zaps를 Nostr 사용자에게 전송 (WIP)
- 실시간 통신을 위한 S Server-Sent Events (SSE) 지원
TO TO️ TO
- [ ] 여러 동시 연결을 위한 지원 추가
- [ ] stdin 수송 모드 구현 (환경 변수를 통해 구성)
Pre Pre
- 노드.js 18+
672️ 설치
Smithery를 통해 설치
Smithery를 통해 Claude Desktop 용 Nostr MCP Server를 자동으로 설치하십시오.
수동 설치
-
저장소를 복제:
-
의존성 설치:
-
.env]파일 만들기:
.env.example파일을 복사하고 필요에 따라 수정할 수 있습니다.
☸ 사용법
서버 시작
사용 가능한 도구
post_note
Nostr 네트워크에 새로운 노트를 게시합니다.
예제 입력:
send_zap
Lightning zap을 Nostr 사용자에 보냅니다.
예제 입력:
개발
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
🌐 Nostr MCP Server
A Model Context Protocol (MCP) server that enables AI models to interact with Nostr, allowing them to post notes and interact with the freedom of speech protocol.
Censorship resistance matters, even for LLMs.
BTW, you should join Nostr now!
🚀 Features
- 📝 Post notes to Nostr network
- 🔌 Connect to multiple relays
- 🤖 MCP-compliant API for AI integration
- 💸 Send Lightning zaps to Nostr users (WIP)
- 📡 Server-Sent Events (SSE) support for real-time communication
👷♂️ TODOs
- [ ] Add support for multiple simultaneous connections
- [ ] Implement stdin transport mode (configurable via environment variable)
📋 Prerequisites
- Node.js 18+
🛠️ Installation
Installing via Smithery
To install Nostr MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @AbdelStark/nostr-mcp --client claude
Manual Installation
- Clone the repository:
git clone https://github.com/AbdelStark/nostr-mcp
cd nostr-mcp
- Install dependencies:
npm install
- Create a
.envfile:
💡 You can copy the
.env.examplefile and modify it as needed.
# 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
🚦 Usage
Starting the Server
# Development mode with hot reload
npm run dev
# Production mode
npm start
Available Tools
post_note
Posts a new note to the Nostr network.
Example input:
{
"content": "Hello from Nostr! 👋"
}
send_zap
Sends a Lightning zap to a Nostr user.
Example input:
{
"nip05Address": "[email protected]",
"amount": 1000
}
🔧 Development
Project Structure
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
Running Tests
npm test
설치
npx -y @smithery/cli install @AbdelStark/nostr-mcp --client claude