{
  "markdown": "# Sthan MCP Server\n\n[![npm version](https://img.shields.io/npm/v/@sthan/mcp-server.svg)](https://www.npmjs.com/package/@sthan/mcp-server)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n\n**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.\n\n8 tools · TypeScript · stdio transport · Free tier, no credit card required.\n\n---\n\n## Why use it\n\n- **Real US postal data** — addresses are verified against authoritative postal records, not heuristics. Returns delivery point validation (DPV), ZIP+4, residential/commercial flag.\n- **Sub-100ms autocomplete** — typeahead-grade response times for address, city, and ZIP suggestions.\n- **Strong geocoding** — forward geocoding returns accuracy classification (rooftop / interpolated / centroid / approximate) plus a confidence score, so your AI knows when to trust the result.\n- **IPv4 + IPv6 geolocation** — country, region, city, coordinates, timezone, postal code.\n- **Free tier with no credit card** — get a key in under a minute at [sthan.io/dashboard](https://sthan.io/dashboard).\n\n## Tools\n\n| Tool | What it does |\n|---|---|\n| `sthan_verify_address` | Verify a US address is real and deliverable. Returns standardized format, ZIP+4, DPV, residential/commercial. |\n| `sthan_parse_address` | Parse freeform US address text into structured components (street number, name, type, direction, unit, city, state, zip). |\n| `sthan_autocomplete_address` | Suggest complete US addresses from partial input. Sub-100ms. |\n| `sthan_autocomplete_city` | Suggest US cities from partial input, with state code. |\n| `sthan_autocomplete_zipcode` | Suggest US ZIP codes from partial input. |\n| `sthan_geocode` | US address → latitude/longitude with accuracy + confidence. |\n| `sthan_reverse_geocode` | Latitude/longitude → nearest US street address with distance in meters. |\n| `sthan_ip_geolocation` | IPv4 or IPv6 → country, region, city, coordinates, timezone, postal code. |\n\n## Quick start\n\n### 1. Get a free API key\n\nSign up at [sthan.io](https://sthan.io) and create a key from the [dashboard](https://sthan.io/dashboard). No credit card.\n\n### 2. Add to your MCP client\n\n**Claude Desktop / Claude Code** (`~/.claude/mcp.json` or project `.claude/mcp.json`):\n\n```json\n{\n  \"mcpServers\": {\n    \"sthan\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@sthan/mcp-server\"],\n      \"env\": { \"STHAN_API_KEY\": \"sthan_test_your_key_here\" }\n    }\n  }\n}\n```\n\n**Cursor** (`.cursor/mcp.json`):\n\n```json\n{\n  \"mcpServers\": {\n    \"sthan\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@sthan/mcp-server\"],\n      \"env\": { \"STHAN_API_KEY\": \"sthan_test_your_key_here\" }\n    }\n  }\n}\n```\n\n**VS Code** (`settings.json`):\n\n```json\n{\n  \"mcp.servers\": {\n    \"sthan\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@sthan/mcp-server\"],\n      \"env\": { \"STHAN_API_KEY\": \"sthan_test_your_key_here\" }\n    }\n  }\n}\n```\n\n## Example prompts\n\nOnce configured, just ask your AI assistant naturally:\n\n- *\"Is 123 Main St, New York, NY 10001 a real, deliverable address?\"*\n- *\"Parse this address: apt 2b 500 broadway new york ny\"*\n- *\"What are the coordinates of 1600 Pennsylvania Ave, Washington DC?\"*\n- *\"What's the nearest address to 40.7128, -74.0060?\"*\n- *\"Where is IP 8.8.8.8 located?\"*\n- *\"Suggest US cities starting with 'San Fr'.\"*\n\n## Environment variables\n\n| Variable | Required | Description |\n|---|---|---|\n| `STHAN_API_KEY` | Yes | Your sthan.io API key (`sthan_test_*` for development, `sthan_live_*` for production) |\n| `STHAN_API_URL` | No | Override base URL (default: `https://api.sthan.io`) |\n\n## Packages\n\nThis monorepo publishes two packages:\n\n| Package | npm | Purpose |\n|---|---|---|\n| [`@sthan/mcp-server`](packages/mcp-server) | [![npm](https://img.shields.io/npm/v/@sthan/mcp-server.svg)](https://www.npmjs.com/package/@sthan/mcp-server) | The MCP server itself — the binary that your client launches |\n| [`@sthan/core`](packages/core) | [![npm](https://img.shields.io/npm/v/@sthan/core.svg)](https://www.npmjs.com/package/@sthan/core) | TypeScript SDK for direct programmatic use of sthan.io APIs |\n\n## Development\n\n```bash\ngit clone https://github.com/sthan-io/mcp-server.git\ncd mcp-server\nnpm install\nnpm run build --workspaces\n```\n\nThen run the server with `STHAN_API_KEY=sthan_test_... node packages/mcp-server/dist/index.js`.\n\n## Links\n\n- **Homepage:** https://sthan.io\n- **API docs:** https://sthan.io/docs\n- **OpenAPI spec:** https://api.sthan.io/openapi.json\n- **AI reference (`llms-full.txt`):** https://api.sthan.io/llms-full.txt\n- **Pricing:** https://sthan.io/pricing/united-states\n- **Support:** https://sthan.io/support\n- **Glama:** https://glama.ai/mcp/servers/sthan-io/mcp-server\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n",
  "bytes": 4910,
  "sha": "9d71f24b6cfe6f9eb619ab69ceb0d971a49002a4cae530f9af39f6f25b54c035",
  "repo_slug": "sthan-io/mcp-server",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_sthan_io_mcp_server_1fa15168/readme"
}