Sthan Io

io.github.sthan-io由 GitHub 账号 sthan-io 发布v0.1.11更新于 Oct 24, 2026

US address verification, parsing, autocomplete, geocoding, and IP geolocation APIs.

已验证STDIO仅桌面位置与生活开发者工具

概览

AI 生成的概览

本地 MCP 服务器,通过 sthan.io API 让 AI 助手验证、解析、自动补全和地理编码美国地址,并查询 IP 地理位置。

可以做什么
验证和解析美国地址,返回标准化格式、ZIP+4、投递点验证和住宅/商业标记,并从自由文本中拆出结构化字段。自动补全不完整的美国地址、城市和邮政编码。将美国地址地理编码为坐标并给出精度和置信度,也可将坐标反查为最近地址。查询 IPv4 或 IPv6 地理位置,包括位置、网络、代理/托管标记和置信度。
适用场景
当助手需要确认美国地址真实且可投递、清理或拆分地址文本、在用户输入时给出地址建议、在地址与坐标之间转换,或定位某个 IP 地址时适用。
运行要求
以 stdio 在本地运行,通常通过 npm 包用 npx 启动,因此需要 Node.js。需要 sthan.io API 密钥,通过环境变量 STHAN_API_KEY 提供,有免费额度。需联网调用 sthan.io 实时 API。地址验证和解析最长可能约 2 分钟,可能需要调高客户端工具超时。
安装前请注意
API 密钥是机密,通过 STHAN_API_KEY 传入,避免写入共享配置文件。查询的地址、坐标和 IP 地址会发送给第三方 sthan.io API。可选变量 STHAN_API_URL 可将请求改发到其他基础地址。超出免费额度后可能按 sthan.io 定价产生费用。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Sthan Io,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Sthan MCP Server

[npm version] [License: MIT]

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

ToolWhat it does
sthan_verify_addressVerify a US address is real and deliverable. Returns standardized format, ZIP+4, DPV, residential/commercial.
sthan_parse_addressParse freeform US address text into structured components (street number, name, type, direction, unit, city, state, zip).
sthan_autocomplete_addressSuggest complete US addresses from partial input. Sub-100ms.
sthan_autocomplete_citySuggest US cities from partial input, with state code.
sthan_autocomplete_zipcodeSuggest US ZIP codes from partial input.
sthan_geocodeUS address → latitude/longitude with accuracy + confidence, county, ZIP+4 and time zone.
sthan_reverse_geocodeLatitude/longitude → nearest US street address with distance in meters, county, ZIP+4 and time zone; limit (up to 10) also lists nearby addresses.
sthan_ip_geolocationIPv4 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

[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):

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

VariableRequiredDescription
STHAN_API_KEYYesYour sthan.io API key (sthan_test_* for development, sthan_live_* for production)
STHAN_API_URLNoOverride 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:

PackagenpmPurpose
@sthan/mcp-server[npm]The MCP server itself — the binary that your client launches
@sthan/core[npm]TypeScript SDK for direct programmatic use of sthan.io APIs

Development

bash
git clone https://github.com/sthan-io/mcp-server.gitcd mcp-servernpm installnpm run build --workspaces

Then run the server with STHAN_API_KEY=sthan_test_... node packages/mcp-server/dist/index.js.

Links

License

MIT — see LICENSE.

来源:README.md,提交 8c4006f

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

5
  1. v0.1.11最新Oct 16, 2026
  2. v0.1.10Oct 9, 2026
  3. v0.1.9Oct 2, 2026
  4. v0.1.7Sep 26, 2026
  5. v0.1.1Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分