Skip to content
VS Code

nostr ops mcp for VS Code

io.github.llmops-pro/nostr-ops-mcp

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

client:VS Code transport:stdio runtime:npm

Install nostr ops mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "nostr-relays",
      "description": "NOSTR_RELAYS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "nostr-nip46-uri",
      "description": "NOSTR_NIP46_URI",
      "password": true
    },
    {
      "type": "promptString",
      "id": "nostr-private-key",
      "description": "NOSTR_PRIVATE_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "nostr-allowed-kinds",
      "description": "NOSTR_ALLOWED_KINDS",
      "password": true
    }
  ],
  "servers": {
    "nostr-ops-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "nostr-ops-mcp"
      ],
      "env": {
        "NOSTR_RELAYS": "${input:nostr-relays}",
        "NOSTR_NIP46_URI": "${input:nostr-nip46-uri}",
        "NOSTR_PRIVATE_KEY": "${input:nostr-private-key}",
        "NOSTR_ALLOWED_KINDS": "${input:nostr-allowed-kinds}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

nostr ops mcp in other clients