npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

unicorn-query-mcp

v1.0.2

Published

MCP server for querying and managing unicorn company data from Google Sheets

Readme

Unicorn Query MCP

A Model Context Protocol (MCP) server for querying and managing unicorn company data stored in Google Sheets.

Features

  • Query Companies: Search and filter unicorn companies with intelligent matching
  • Add Companies: Insert new company records
  • Update Companies: Modify existing company information
  • Delete Companies: Remove company records
  • Smart Search: Advanced search with fuzzy matching, similarity scoring, and multi-field search
  • Flexible Filtering: Support for partial matches, case-insensitive search, and similarity-based matching

Installation

Option 1: Global Installation

npm install -g unicorn-query-mcp

Option 2: Use with npx (Recommended for Claude Desktop)

No installation required - use directly with npx.

Claude Desktop Configuration

Add the following to your Claude Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, or the appropriate path for your OS):

{
  "mcpServers": {
    "unicorn-query": {
      "command": "npx",
      "args": ["-y", "unicorn-query-mcp"],
      "env": {
        "UNICORN_MCP_PRIVATE_KEY": "-----BEGIN PRIVATE KEY-----\nYOUR_PRIVATE_KEY_HERE\n-----END PRIVATE KEY-----\n"
      }
    }
  }
}

Note: Replace YOUR_PRIVATE_KEY_HERE with the actual private key content from your Google service account JSON file. The private key should include the \n characters as shown.

Configuration Requirements

Before using the MCP server, you need to set up Google Sheets API access:

1. Create Google Service Account

  1. Go to Google Cloud Console
  2. Create a new project or select existing one
  3. Enable Google Sheets API
  4. Create a Service Account with "Editor" role
  5. Generate and download JSON key file

2. Share Google Sheet Access

Share the following Google Sheet with your service account email:

  • Spreadsheet URL: https://docs.google.com/spreadsheets/d/1CNLxthFClt47s9gegbyftKCXEA04s8QafxUlRiZQwZk
  • Service Account Email: The email from your JSON key file

3. Configure Credentials

Set the private key as an environment variable:

export UNICORN_MCP_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\nYOUR_PRIVATE_KEY_HERE\n-----END PRIVATE KEY-----\n"

Alternative methods (if you prefer to manage the full JSON file):

Method A: Environment Variable

export GOOGLE_APPLICATION_CREDENTIALS="/path/to/your/service-account-key.json"

Method B: Local File Place your JSON key file as google-credentials.json in the working directory.

Configuration

  1. Set up Google Sheets API:

    • Create a Google Cloud Project
    • Enable Google Sheets API
    • Create a service account and download the JSON key file
    • Share your Google Sheet with the service account email
    • Place the JSON key file in the project root as mystic-braid-476614-t8-4736c84f742d.json
  2. Configure the spreadsheet ID in src/services/GoogleSheetsService.ts

Usage

As an MCP Server

The server communicates via stdio and can be integrated with MCP-compatible clients.

Available Tools

query_companies

Query companies with optional filters and fuzzy search.

Parameters:

  • filter (object): Filter criteria (e.g., {"Category": "AI"})
  • search (string): Fuzzy search term
  • limit (number): Maximum results to return (default: 50)

Example:

{
  "filter": {"Category": "AI"},
  "search": "machine learning",
  "limit": 10
}

add_company

Add a new company to the database.

Parameters:

  • company (object): Company data with all required fields

Example:

{
  "company": {
    "Company Name": "Example Corp",
    "Founded": "2020",
    "Valuation (USD)": "100000000",
    "Category": "AI",
    "Headquarters": "San Francisco, USA"
  }
}

update_company

Update an existing company.

Parameters:

  • companyName (string): Name of the company to update
  • updates (object): Fields to update

delete_company

Delete a company from the database.

Parameters:

  • companyName (string): Name of the company to delete

Development

# Install dependencies
npm install

# Build the project
npm run build

# Run in development mode
npm run dev

# Run tests
npm test

Data Structure

The Google Sheet should have the following columns:

  • Company Name
  • Founded
  • Valuation (USD)
  • Total Funding (USD)
  • Latest Round
  • Latest Round Date
  • Category
  • Headquarters
  • Key Metrics
  • Status
  • Notes

License

MIT