# Nostr Ops MCP

> Nostr Ops MCP is an open-source MCP server. Nostr publishing, queries, and DMs for AI agents, with allowlists, rate limits, and an audit log. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/llmops-pro/nostr-ops-mcp
- **MCP Registry name:** io.github.llmops-pro/nostr-ops-mcp
- **Listing updated:** 2026-11-13

## About

Nostr publishing, queries, and DMs for AI agents, with allowlists, rate limits, and an audit log.

## Install

### Claude Code (Terminal)

```sh
claude mcp add nostr-ops-mcp --env NOSTR_RELAYS='<NOSTR_RELAYS>' --env NOSTR_NIP46_URI='<NOSTR_NIP46_URI>' --env NOSTR_PRIVATE_KEY='<NOSTR_PRIVATE_KEY>' -- npx -y nostr-ops-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "nostr-ops-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "nostr-ops-mcp"
      ],
      "env": {
        "NOSTR_RELAYS": "<NOSTR_RELAYS>",
        "NOSTR_NIP46_URI": "<NOSTR_NIP46_URI>",
        "NOSTR_PRIVATE_KEY": "<NOSTR_PRIVATE_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "nostr-ops-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "nostr-ops-mcp"
      ],
      "env": {
        "NOSTR_RELAYS": "<NOSTR_RELAYS>",
        "NOSTR_NIP46_URI": "<NOSTR_NIP46_URI>",
        "NOSTR_PRIVATE_KEY": "<NOSTR_PRIVATE_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "nostr-ops-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "nostr-ops-mcp"
      ],
      "env": {
        "NOSTR_RELAYS": "<NOSTR_RELAYS>",
        "NOSTR_NIP46_URI": "<NOSTR_NIP46_URI>",
        "NOSTR_PRIVATE_KEY": "<NOSTR_PRIVATE_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "nostr-ops-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "nostr-ops-mcp"
      ],
      "env": {
        "NOSTR_RELAYS": "<NOSTR_RELAYS>",
        "NOSTR_NIP46_URI": "<NOSTR_NIP46_URI>",
        "NOSTR_PRIVATE_KEY": "<NOSTR_PRIVATE_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "nostr-ops-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "nostr-ops-mcp"
      ],
      "env": {
        "NOSTR_RELAYS": "<NOSTR_RELAYS>",
        "NOSTR_NIP46_URI": "<NOSTR_NIP46_URI>",
        "NOSTR_PRIVATE_KEY": "<NOSTR_PRIVATE_KEY>"
      }
    }
  }
}
```

## FAQ

### Is Nostr Ops MCP free?

Yes. Nostr Ops MCP is open source, so you can use and self-host it for free.

### How do I add Nostr Ops MCP to Claude Code?

Run this command in your terminal: claude mcp add nostr-ops-mcp --env NOSTR_RELAYS='<NOSTR_RELAYS>' --env NOSTR_NIP46_URI='<NOSTR_NIP46_URI>' --env NOSTR_PRIVATE_KEY='<NOSTR_PRIVATE_KEY>' -- npx -y nostr-ops-mcp

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/nostr-ops-mcp
