Anwani

io.github.Anwani-app由 GitHub 账号 Anwani-app 发布v1.1.3更新于 Oct 24, 2026

Anwani MCP: create and manage permanent 9-digit address codes through OAuth (9code.app).

已验证Streamable HTTP可网页运行位置与生活效率与工作流

概览

AI 生成的概览

Anwani 让助手在用户的 Anwani 账户中创建、列出、更新、分享和删除与现实地点绑定的永久 9 位地址码。

可以做什么
检查已登录 Anwani 账户的连接状态和已授权范围,不返回内部 ID。列出该账户拥有的地址,配额与应用和 Telegram 相同。使用用户提供的真实地图坐标创建一个地址,并需提供幂等键。仅修改现有地址中明确给出的字段(例如说明),坐标创建后不可更改。返回自有地址码的公开深链接,并永久删除自有地址。
适用场景
适合在聊天客户端中让助手管理 Anwani 数字地址:登记新地点、更新其信息、分享公开链接,或清理不再需要的地址。
运行要求
可使用远程端点,或在本地以 Node.js 18+ 运行 npm 包 anwani-mcp,并搭配 Cursor 等兼容 MCP 的客户端。需要一个 Anwani 账户,新用户会在 Google 登录时自动创建。需通过浏览器 OAuth 登录流程获取 bearer 令牌,并在 Authorization 请求头中发送;令牌保存在用户主目录下的本地位置。
安装前请注意
Authorization 中的 bearer 令牌属于凭据,不要粘贴到聊天中;可通过重新登录或联系支持来撤销。创建、修改和删除地址会改动账户数据,delete_address 为永久删除。地址数量受账户配额限制,通常为 10 个。助手必须使用用户提供的真实地图坐标,不得编造坐标或地名。此客户端不支持上传照片。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Anwani,将其添加到工作区。
  2. 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.Anwani-app%2Fanwani-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "anwani": {
      "type": "http",
      "url": "https://us-central1-nine-code-anwani.cloudfunctions.net/mcpRemote",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

Anwani MCP

Anwani MCP connects AI agents to Anwani, the digital address infrastructure for permanent 9-digit address codes tied to real-world locations.

Create, list, update, share, and delete your Anwani addresses through OAuth, with the same ownership, permissions, and account limits used across Anwani.

Works with Cursor and other MCP-compatible clients.

Product page: https://9code.app/ai-agents

Sign-in uses Google OAuth + PKCE in the browser — approve once, then the client saves the token on this machine.

OAuth client id: anwani-cursor

This package is a connection client only. It does not contain Firebase project internals, Firestore paths, or server secrets.

Requirements

  • Node.js 18+
  • An MCP-compatible client (Cursor is supported; others work the same way via stdio)
  • An Anwani account (created automatically during Google consent if you are new)

Install

bash
npm install -g anwani-mcpanwani-mcp-login

Or without a global install:

bash
npx -y anwani-mcp-login

What happens:

  1. A local callback server starts on this machine
  2. Your browser opens the Anwani authorize page
  3. You sign in with Google and click Allow
  4. The browser returns to localhost — the bridge saves the token automatically

No JSON paste. Never paste codes or tokens into chat.

Fallback (rare): anwani-mcp-login --paste if loopback is blocked on your network.

Use with Cursor

Cursor is the first supported MCP client. Recommended config (always uses the published package):

json
{  "mcpServers": {    "anwani": {      "command": "npx",      "args": ["-y", "anwani-mcp"]    }  }}

Then open a new chat and ask Anwani to create or update an address. Provide a real map pin (coordinates or Maps link) — the agent must not invent a location.

Tools

ToolNeeds scopeNotes
session—Connection + granted scopes (no internal IDs)
list_addressesaddress:readYour addresses only
create_addressaddress:createRequires idempotency_key + real lat/lng from you
patch_addressaddress:updateField patch; coordinates locked after create
share_addressaddress:sharePublic 9code.app/code/… link
delete_addressaddress:deleteDestructive

Photo upload is not available via this client — use the Anwani app or Telegram for photos.

Security

  • Tokens live in ~/.anwani-mcp/ (never inside this package).
  • Access tokens are opaque anwani_at_… values.
  • Same account quota as the app / Telegram (usually 10 addresses).
  • Revoke by running login again (re-consent invalidates prior tokens) or email [email protected].

From source

bash
git clone https://github.com/Anwani-app/anwani-mcp.gitcd anwani-mcpnode login.mjs

Smoke test

From a clone:

bash
node smoke.mjs

Publish / directories

See PUBLISH.md for Official MCP Registry, Glama, Smithery, and npm.

  • Local (any MCP client, e.g. Cursor): npx -y anwani-mcp after anwani-mcp-login
  • Remote: https://us-central1-nine-code-anwani.cloudfunctions.net/mcpRemote

License

MIT

来源:README.md,提交 7525040

工具

6

session

Check that Anwani is connected for this user. Does not return internal IDs.

无需输入参数。

list_addresses

List addresses owned by the connected Anwani account (same quota as app/Telegram).

无需输入参数。

create_address

Create one address within the user quota. Requires a real map pin from the user (latitude/longitude). NEVER invent coordinates, city, or display name. If the user did not provide a location (coords, Maps link, or clear place), ask them first — do not call this tool with sample/demo data.

输入参数pincityfloorlabelphonestreetcountrycategorylatitude必填longitude必填ownerNamepinEnabled另有 6 个

patch_address

Patch only provided fields (e.g. instructions). Does not clear omitted fields. Coordinates cannot be changed.

输入参数code必填changes必填

share_address

Return the public deep link for an owned address code.

输入参数code必填

delete_address

Permanently delete an address owned by the connected account.

输入参数code必填

版本历史

1
  1. v1.1.3最新Sep 27, 2026

评分

已满足适用检查项的 100%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分