TypeScript SDK, MCP server, and CLI for sthan.io — US address verification, parsing, autocomplete, geocoding, and IP geolocation
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
claude mcp add mcp-server -- npx -y @sthan/mcp-server{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": ["-y", "@sthan/mcp-server"],
"env": {
"STHAN_API_KEY": "<sthan_api_key>"
}
}
}
}STHAN_API_KEYMCP Servers overview
# Sthan MCP Server
[](https://www.npmjs.com/package/@sthan/mcp-server)
[](LICENSE)
**MCP server for [sthan.io](https://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](https://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](https://sthan.io) and create a key from the [dashboard](https://sthan.io/dashboard). No credit card.
### 2. One-click install
[](https://github.com/sthan-io/mcp-server/releases/latest/download/sthan.mcpb)
[](https://vscode.dev/redirect/mcp/install?name=sthan&inputs=%5B%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22sthan_api_key%22%2C%22description%22%3A%22sthan.io%20API%20key%20%28free%20at%20https%3A//sthan.io%29%22%2C%22password%22%3Atrue%7D%5D&config=%7B%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40sthan/mcp-server%22%5D%2C%22env%22%3A%7B%22STHAN_API_KEY%22%3A%22%24%7Binput%3Asthan_api_key%7D%22%7D%7D)
[](https://insiders.vscode.dev/redirect/mcp/install?name=sthan&inputs=%5B%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22sthan_api_key%22%2C%22description%22%3A%22sthan.io%20API%20key%20%28free%20at%20https%3A//sthan.io%29%22%2C%22password%22%3Atrue%7D%5D&config=%7B%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40sthan/mcp-server%22%5D%2C%22env%22%3A%7B%22STHAN_API_KEY%22%3A%22%24%7Binput%3Asthan_api_key%7D%22%7D%7D&quality=insiders)
[](https://cursor.com/install-mcp?name=sthan&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBzdGhhbi9tY3Atc2VydmVyIl0sImVudiI6eyJTVEhBTl9BUElfS0VZIjoieW91cl9rZXlfaGVyZSJ9fQ%3D%3D)
- **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):
```bash
claude mcp add sthan -e STHAN_API_KEY=your_key_here -- npx -y @sthan/mcp-server
```
On native Windows, wrap `npx` with `cmd /c`:
```powershell
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:
```json
{
"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:
```json
{
"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):
```bash
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).
## Example prompts
Once configured, just ask your AI assistant naturally:
- *"Is 123 Main St, New York, NY 10001 a real, deliverable address?"*
- *"Parse this address: apt 2b 500 broadway new york ny"*
- *"What are the coordinates of 1600 Pennsylvania Ave, Washington DC?"*
- *"What's the nearest address to 40.7128, -74.0060?"*
- *"Where is IP 8.8.8.8 located?"*
- *"Suggest US cities starting with 'San Fr'."*
## Environment variables
| Variable | Required | Description |
|---|---|---|
| `STHAN_API_KEY` | Yes | Your sthan.io API key (`sthan_test_*` for development, `sthan_live_*` for production) |
| `STHAN_API_URL` | No | Override base URL (default: `https://api.sthan.io`) |
## Response times
Most calls return in 1 to 3 seconds. Address verification and parsing can take longer (up to about 2 minutes) when an address cannot be matched from sthan.io's own data and needs a live postal lookup, so the server waits up to 150 seconds for those two tools. If your MCP client stops waiting sooner, raise its tool timeout (for example, in Claude Code set `MCP_TOOL_TIMEOUT=150000`).
## Packages
This monorepo publishes two packages:
| Package | npm | Purpose |
|---|---|---|
| [`@sthan/mcp-server`](packages/mcp-server) | [](https://www.npmjs.com/package/@sthan/mcp-server) | The MCP server itself — the binary that your client launches |
| [`@sthan/core`](packages/core) | [](https://www.npmjs.com/package/@sthan/core) | TypeScript SDK for direct programmatic use of sthan.io APIs |
## Development
```bash
git clone https://github.com/sthan-io/mcp-server.git
cd mcp-server
npm install
npm run build --workspaces
```
Then run the server with `STHAN_API_KEY=sthan_test_... node packages/mcp-server/dist/index.js`.
## Links
- **Homepage:** https://sthan.io
- **API docs:** https://sthan.io/docs
- **OpenAPI spec:** https://api.sthan.io/openapi.json
- **AI reference (`llms-full.txt`):** https://api.sthan.io/llms-full.txt
- **Pricing:** https://sthan.io/pricing/united-states
- **Support:** https://sthan.io/support
- **Glama:** https://glama.ai/mcp/servers/sthan-io/mcp-server
## License
MIT — see [LICENSE](LICENSE).
What people ask about mcp-server
What is sthan-io/mcp-server?
+
sthan-io/mcp-server is mcp servers for the Claude AI ecosystem. TypeScript SDK, MCP server, and CLI for sthan.io — US address verification, parsing, autocomplete, geocoding, and IP geolocation It has 0 GitHub stars and its last recorded update is dated 2026-10-08.
How do I install mcp-server?
+
You can install mcp-server by cloning the repository (https://github.com/sthan-io/mcp-server) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is sthan-io/mcp-server safe to use?
+
Our security agent has analyzed sthan-io/mcp-server and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains sthan-io/mcp-server?
+
sthan-io/mcp-server is maintained by sthan-io. The last recorded GitHub activity is dated 2026-10-08, with 0 open issues.
Are there alternatives to mcp-server?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy mcp-server to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/sthan-io-mcp-server)<a href="https://claudewave.com/repo/sthan-io-mcp-server"><img src="https://claudewave.com/api/badge/sthan-io-mcp-server" alt="Featured on ClaudeWave: sthan-io/mcp-server" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
The fastest path to AI-powered full stack observability, even for lean teams.