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

@sthan/mcp-server

v0.1.11

Published

MCP server for sthan.io — US address verification, parsing, autocomplete, geocoding, and IP geolocation

Readme

@sthan/mcp-server

MCP server for sthan.io — US address verification, parsing, autocomplete, geocoding, and IP geolocation.

Works with Claude Code, Cursor, VS Code, Windsurf, and any MCP-compatible client.

Setup

1. Get an API key

Sign up at sthan.io (free tier, no credit card required). Create an API key from your dashboard.

2. One-click install

Add to Claude Desktop Install in VS Code Install in VS Code Insiders Add to Cursor

  • Claude Desktop: download sthan.mcpb and double-click it. Claude asks for your API key and keeps it in your system keychain. Nothing else to install.
  • VS Code: click the button. VS Code asks for your API key and stores it securely.
  • Cursor: click the button, then replace your_key_here with your key in Cursor Settings > MCP.
  • Claude Code: claude mcp add sthan -e STHAN_API_KEY=your_key_here -- npx -y @sthan/mcp-server (details below).

3. Or set it up manually

Replace your_key_here with your key. Every setup below downloads the latest @sthan/mcp-server from npm and calls the live API at https://api.sthan.io.

Claude Code (terminal):

claude mcp add sthan -e STHAN_API_KEY=your_key_here -- npx -y @sthan/mcp-server

On native Windows, wrap npx with cmd /c:

claude mcp add sthan -e STHAN_API_KEY=your_key_here -- cmd /c npx -y @sthan/mcp-server

Add --scope user to use it in every project. Start claude and type /mcp to confirm sthan is connected.

Claude Desktop: edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\), then restart Claude Desktop:

{
  "mcpServers": {
    "sthan": {
      "command": "npx",
      "args": ["-y", "@sthan/mcp-server"],
      "env": { "STHAN_API_KEY": "your_key_here" }
    }
  }
}

Cursor: the same JSON in ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project).

Windsurf: the same JSON in ~/.codeium/windsurf/mcp_config.json.

VS Code: create .vscode/mcp.json. VS Code asks for the key once and stores it securely:

{
  "inputs": [
    { "type": "promptString", "id": "sthan-api-key", "description": "sthan.io API key", "password": true }
  ],
  "servers": {
    "sthan": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@sthan/mcp-server"],
      "env": { "STHAN_API_KEY": "${input:sthan-api-key}" }
    }
  }
}

Try it without an AI client (opens the official MCP Inspector in your browser):

npx @modelcontextprotocol/inspector -e STHAN_API_KEY=your_key_here npx -y @sthan/mcp-server

Click Connect, then Tools > List Tools, pick a tool, and run it.

Troubleshooting

  • Keep the -y in npx -y. Without it, npx waits for an "OK to install?" answer that an AI client cannot give, and the server never starts.
  • On Windows, run the claude mcp add ... cmd /c ... command from PowerShell or Command Prompt. Git Bash rewrites /c to C:/, which saves a broken command that times out (fix: prefix it with MSYS_NO_PATHCONV=1).
  • On Windows, if a client reports spawn npx ENOENT, use "command": "cmd" with "args": ["/c", "npx", "-y", "@sthan/mcp-server"].
  • Address verification and parsing can take up to about 2 minutes when a live postal lookup is needed. If your client gives up sooner, raise its tool timeout (Claude Code: set MCP_TOOL_TIMEOUT=150000 before starting claude; MCP Inspector: raise Request Timeout in its Configuration panel).

Tools

| Tool | Description | |------|-------------| | sthan_verify_address | Verify a US address for deliverability. Returns DPV confirmation, ZIP+4, carrier route. | | sthan_parse_address | Parse freeform address text into structured components (street, city, state, zip, unit). | | sthan_autocomplete_address | Get address suggestions from partial input. Sub-100ms response time. | | sthan_autocomplete_city | Get US city suggestions from partial input. | | sthan_autocomplete_zipcode | Get US ZIP code suggestions from partial input. | | sthan_geocode | Convert a US address to latitude/longitude coordinates, with county, ZIP+4 and time zone. | | sthan_reverse_geocode | Convert coordinates to the nearest US street address; optional limit (up to 10) also lists nearby addresses. | | sthan_ip_geolocation | Locate an IPv4 or IPv6 address: country to postal code, local time, flag and currency, plus the network behind it (ASN, ISP, proxy/hosting flags) and a confidence score. |

Environment variables

| Variable | Required | Description | |----------|----------|-------------| | STHAN_API_KEY | Yes | Your sthan.io API key (sthan_test_* or sthan_live_*) | | STHAN_API_URL | No | Override base URL (default: https://api.sthan.io) |

Examples

Once configured, just ask your AI assistant naturally:

  • "Is 123 Main St, New York, NY 10001 a real address?"
  • "Parse this address: apt 2b 500 broadway new york ny"
  • "What are the coordinates for the White House?"
  • "What address is at 40.7128, -74.0060?"
  • "Where is IP 8.8.8.8 located?"

Links

License

MIT