Sthan MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
**MCP server for sthan.io** — give your AI assistant the ability to verify, parse, autocomplete, and geocode US addresses, and look up IP geolocation. Works with Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, and any MCP-compatible client.
8 tools · TypeScript · stdio transport · Free tier, no credit card required.
---
Why use it
- **Real US postal data** — addresses are verified against authoritative postal records, not heuristics. Returns delivery point validation (DPV), ZIP+4, residential/commercial flag.
- **Sub-100ms autocomplete** — typeahead-grade response times for address, city, and ZIP suggestions.
- **Strong geocoding** — forward geocoding returns accuracy classification (rooftop / interpolated / centroid / approximate) plus a confidence score, so your AI knows when to trust the result.
- **IPv4 + IPv6 geolocation** — country, region, city, coordinates, postal code, timezone with current local time, flag, currency, calling code, network (ASN, ISP, organisation), mobile/proxy/hosting flags, reverse DNS and a confidence score.
- **Free tier with no credit card** — get a key in under a minute at sthan.io/dashboard.
Tools
| Tool | What it does |
|---|---|
| sthan_verify_address | Verify a US address is real and deliverable. Returns standardized format, ZIP+4, DPV, residential/commercial. |
| sthan_parse_address | Parse freeform US address text into structured components (street number, name, type, direction, unit, city, state, zip). |
| sthan_autocomplete_address | Suggest complete US addresses from partial input. Sub-100ms. |
| sthan_autocomplete_city | Suggest US cities from partial input, with state code. |
| sthan_autocomplete_zipcode | Suggest US ZIP codes from partial input. |
| sthan_geocode | US address → latitude/longitude with accuracy + confidence. |
| sthan_reverse_geocode | Latitude/longitude → nearest US street address with distance in meters. |
| sthan_ip_geolocation | IPv4 or IPv6 → location (country to postal code, local time, flag, currency), the network behind it (ASN, ISP, proxy/hosting flags) and a confidence score. |
Quick start
1. Get a free API key
Sign up at sthan.io and create a key from the dashboard. No credit card.
2. One-click install
- **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):
On native Windows, wrap npx with cmd /c:
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:
**Cursor**: the same JSON in ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project).