Enable AI models to post notes and interact on Nostr with censorship-resistant MCP server
Nostr MCP Server is an advanced infrastructure that acts as a bridge between artificial intelligence (AI) applications and the decentralized Nostr protocol, ensuring secure and censorship-resistant interactions. Built using modern web technologies, this server supports AI model contexts through the Model Context Protocol (MCP), allowing developers to integrate their applications seamlessly with the freedom of speech Nostr network.
Nostr MCP Server boasts a robust set of features specifically designed for seamless integration and real-time interactions. Key capabilities include:
The architecture of Nostr MCP Server is built around a modular design to support various components and ensure scalability. The server consists of the following main parts:
src/index.ts
- This file serves as the primary point of execution, initiating the server process.src/nostr-client.ts
- Handles communication with Nostr relays and ensures data integrity through MCP protocol standards.src/types.ts
- Provides TypeScript type definitions for better code quality and maintainability.graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Nostr Network]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ (Tools Only) | ✅ | ❌ | Tools Only |
Installing Nostr MCP Server is straightforward and can be done via a Smithery automated setup or manually.
To install Nostr MCP Server for Claude Desktop automatically:
npx -y @smithery/cli install @AbdelStark/nostr-mcp --client claude
Clone the Repository
git clone https://github.com/AbdelStark/nostr-mcp
cd nostr-mcp
Install Dependencies
npm install
Create a .env
File
LOG_LEVEL=debug
NODE_ENV=development
NOSTR_RELAYS=wss://relay.damus.io,wss://relay.primal.net,wss://nos.lol
NODE_NSEC_KEY=your_nsec_key_here
SERVER_MODE=sse
PORT=9000
Nostr MCP Server is fully compatible with various MCP clients, including Claude Desktop, Continue, and Cursor, ensuring seamless integration across different AI applications. Users can easily configure their clients to work with this server by following the setup instructions provided in the README.
{
"mcpServers": {
"nostr-mcp-server": {
"command": "npx",
"args": ["-y", "@AbdelStark/nostr-mcp"],
"env": {
"NOSTR_RELAY": "wss://relay.damus.io",
"NOSTR_NSEC_KEY": "your_nsec_key_here"
}
}
}
}
While Nostr MCP Server is designed to be highly compatible with various clients, some tools may require additional setup steps. The following matrix provides an overview of compatibility:
Tool | Integration Level |
---|---|
Claude Desktop | ✅ |
Continue | ✅ |
Cursor | ❌ |
debug
, info
, warn
, and error
.stdio
or sse
..env
FileLOG_LEVEL=debug
NODE_ENV=development
NOSTR_RELAYS=wss://relay.damus.io,wss://relay.primal.net,wss://nos.lol
NOSTR_NSEC_KEY=nsec1abcdef01234567890123
SERVER_MODE=sse
PORT=9000
Follow the development of Nostr MCP Server and join discussions at:
npub1hr6v96g0phtxwys4x0tm3khawuuykz6s28uzwtj5j0zc7lunu99snw2e29
Nostr is excited to support the decentralized AI landscape and encourage contributions from the community.
This comprehensive documentation positions Nostr MCP Server as a critical component for developers aiming to build secure, censorship-resistant AI applications on the Nostr protocol. By emphasizing its features, architecture, and use cases, it ensures that users understand the value proposition and can confidently integrate this server into their projects.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods