🌐 Nostr MCP Server
A Nostr MCP server that allows to interact with Nostr, enabling posting notes, and more.
Overview
Nostr MCP Server is a Model Context Protocol (MCP) server that enables AI models to interact with the Nostr network, allowing users to post notes and engage with the freedom of speech protocol.
To use the Nostr MCP Server, you can either install it via Smithery or manually clone the repository, install dependencies, and configure the environment variables. Once set up, you can start the server and use available tools to post notes or send Lightning zaps.
- Post notes to the Nostr network - Connect to multiple relays - MCP-compliant API for AI integration - Support for real-time communication via Server-Sent Events (SSE) - Ability to send Lightning zaps to Nostr users (WIP)
- Posting notes to the Nostr network for sharing information.
- Integrating AI models to interact with the Nostr protocol.
- Enabling real-time communication for applications using the Nostr network.
Add to your AI client
Use these steps to connect 🌐 Nostr MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"nostr-mcp-abdelstark": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-nostr-mcp-abdelstark"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"nostr-mcp-abdelstark": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-nostr-mcp-abdelstark"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"nostr-mcp-abdelstark": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-nostr-mcp-abdelstark"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"nostr-mcp-abdelstark": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-nostr-mcp-abdelstark"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"nostr-mcp-abdelstark": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-nostr-mcp-abdelstark"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"nostr-mcp-abdelstark": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-nostr-mcp-abdelstark"
]
}
}
}FAQ
Can I use Nostr MCP Server for AI applications?
Yes! Nostr MCP Server is designed for AI integration with the Nostr network.
Is there a way to send payments through Nostr?
Yes, the server supports sending Lightning zaps to users, although this feature is still a work in progress.
What are the prerequisites for running Nostr MCP Server?
You need Node.js version 18 or higher to run the server.