Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Enables lookup of Nostr profiles and checking of Vertex API credit balance using the Vertex API.

README.md

Vertex CLI

A command-line tool for looking up Nostr profiles using the Vertex API. This tool allows you to search for Nostr profiles by query and check your credit balance.

Installation

To install dependencies:

bun install

Usage

Interactive Mode

Run without any arguments to enter interactive mode:

bun index.ts

In interactive mode, you can run multiple commands after logging in once. Available commands:

  • lookup <query> - Look up Nostr profiles
  • credits - Check credit balance
  • help - Show available commands
  • exit - Exit interactive mode

Command Line Mode

Run specific commands directly:

# Look up profiles
bun index.ts lookup "alice" --nsec nsec1...

# Check credit balance
bun index.ts credits --nsec nsec1...

# Show help
bun index.ts --help

Options

  • --nsec <key> - Your Nostr private key (nsec format). If not provided, you'll be prompted to enter it.
  • --query <query> - Search query for profile lookup
  • --sort <method> - Sort method (global or local)

Examples

# Enter interactive mode
bun index.ts

# Single command with nsec
bun index.ts lookup "alice" --nsec nsec1...

# Single command, will prompt for nsec
bun index.ts lookup "alice"

# Check credits
bun index.ts credits --nsec nsec1...

Authentication

This tool requires a Nostr private key (nsec format) for authentication with the Vertex API. You can provide it via the --nsec flag or enter it when prompted.

MCP Server

This project includes a Model Context Protocol (MCP) server that allows external clients to interact with the Vertex API through a standardized interface.

Starting the MCP Server

You can start the MCP server in several ways:

# Using CLI argument
bun index.ts mcp --nsec nsec1...

# Using environment variable
VERTEX_KEY=nsec1... bun index.ts mcp

# Direct execution of MCP server
bun common/mcp.ts --nsec nsec1...
VERTEX_KEY=nsec1... bun common/mcp.ts

MCP Server Tools

The MCP server exposes two tools:

1. lookup - Profile Lookup

Search for Nostr profiles by query with various sorting options.

Parameters:

  • query (string, required): Search query to find Nostr profiles
  • sort (string, optional): Sort method - global (default), personalized, or followers
  • limit (number, optional): Maximum number of profiles to return (1-100, default: 10)

Response:

{
  "profiles": [
    {
      "pubkey": "nostr_public_key",
      "relays": ["wss://relay1.example.com", "wss://relay2.example.com"]
    }
  ]
}

2. credits - Credit Balance

Check your current credit balance on the Vertex network.

Parameters: None

Response:

{
  "balance": 1000
}

MCP Client Integration

To use this MCP server with an MCP client, add it to your client configuration:

{
  "mcpServers": {
    "vertex-lookup": {
      "command": "bun",
      "args": ["/path/to/profile-lookup-cvm/common/mcp.ts"],
      "env": {
        "VERTEX_KEY": "nsec1..."
      }
    }
  }
}

MCP Server Features

  • Standardized Interface: Uses the Model Context Protocol for consistent tool access
  • Error Handling: Comprehensive error handling with structured error responses
  • Input Validation: Validates all input parameters with clear error messages
  • Resource Management: Properly manages Vertex API connections and cleanup
  • Flexible Authentication: Supports both CLI arguments and environment variables

Features

  • Profile Lookup: Search for Nostr profiles by query
  • Credit Balance: Check your Vertex API credit balance
  • Interactive Mode: Run multiple commands in a session
  • Command Line Mode: Execute single commands directly
  • MCP Server: Expose functionality via Model Context Protocol for external clients
  • Secure Authentication: Uses Nostr private keys for API authentication

This project was created using bun init in bun v1.2.21. Bun is a fast all-in-one JavaScript runtime.

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Files & Docs servers.