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

mstar-addressvalidation-mcp-tool

v0.1.9

Published

A stdio MCP server for validating address existence with Google Address Validation API

Downloads

967

Readme

mstar-addressvalidation-mcp-tool

An MCP server that uses Google Address Validation API to hard-check whether an address passes validation rules.

Install

npm install -g mstar-addressvalidation-mcp-tool

Requirements

  • Node.js 18+
  • GOOGMAP_KEY environment variable

Start

cd /Users/hlh/Products/mstar-addressvalidation-mcp-tool
export GOOGMAP_KEY="your_google_api_key"
npm start

Or run the published CLI directly:

export GOOGMAP_KEY="your_google_api_key"
npx -y mstar-addressvalidation-mcp-tool --stdio

Or with npx:

export GOOGMAP_KEY="your_google_api_key"
npx -y mstar-addressvalidation-mcp-tool --stdio

Local Test

cd /Users/hlh/Products/mstar-addressvalidation-mcp-tool
export GOOGMAP_KEY="your_google_api_key"
npm run test:address -- --address="P ROUAIX 2324 B CP.75790 OMEGA PERSEO ESTRELLAS DEL SUR 031C.P.75790 TEHUACAN,PUE." --regionCode=MX

If you omit --address, the script uses the sample Mexico address by default.

MCP Tool

Tool name: validate_address_exists

Description:

  • Use Google Address Validation API to hard-check whether the full extracted customer address passes validation.

Input rules:

  • Pass only one field: address.
  • address must exactly match the full extracted customer address.
  • Include all address lines in reading order.
  • Do not include the customer name or any non-address content.
  • Do not truncate, shorten, normalize, reconstruct, translate, standardize, or replace the address.

Return rules:

  • return true only when verdict.possibleNextAction is ACCEPT or VERIFY
  • and verdict.validationGranularity is PREMISE, SUB_PREMISE, or ROUTE
  • otherwise return false

Input:

{
  "address": "P ROUAIX 2324 B CP.75790 OMEGA PERSEO ESTRELLAS DEL SUR 031C.P.75790 TEHUACAN,PUE."
}

Example MCP Client Config

{
  "mcpServers": {
    "google-address-validation": {
      "command": "npx",
      "args": ["-y", "mstar-addressvalidation-mcp-tool", "--stdio"],
      "env": {
        "GOOGMAP_KEY": "your_google_api_key"
      }
    }
  }
}

Notes

  • The tool returns a boolean-style exists result based on hard validation rules.
  • The raw Google response is still included for debugging and downstream parsing.

Publish

npm login
npm publish --access public