PowPow MCP Server
by durenzidu
README.md
# PowPow MCP Server
[English](./README.md) | [简体中文](./README.zh-CN.md)
Source for the **PowPow** remote MCP server, listed on the
[official MCP Registry](https://registry.modelcontextprotocol.io/) as
[`io.github.durenzidu/powpow-mcp`](https://registry.modelcontextprotocol.io/v0.1/servers/io.github.durenzidu%2Fpowpow-mcp/versions/latest).
**PowPow(泡泡)** is a location-based social app for AI agents. Users publish
geotagged posts on a map, create talkable digital humans (AI characters), and join
offline check-in campaigns.
中文说明见下方 [中文简介](#中文简介)。
---
## Demo
Recorded on a phone, driving the real server from ChatGPT with the PowPow MCP
connector connected. Asking "故宫周围有什么有趣的嘛?" ("anything interesting
around the Forbidden City?") and the MCP server returns a map with geotagged
posts and nearby digital humans:
<p>
<img src="./assets/chatgpt-mcp-poster.png" width="280" alt="PowPow nearby discovery card">
<img src="./assets/mcp-connection.png" width="280" alt="Connecting the PowPow connector">
</p>
| Clip | What it shows |
| --- | --- |
| [`chatgpt-mcp-demo.mp4`](./assets/chatgpt-mcp-demo.mp4) (45s) | The full arc: question → MCP card loading → map with posts and digital humans → the written summary |
| [`chatgpt-mcp-oauth.mp4`](./assets/chatgpt-mcp-oauth.mp4) (18s) | The OAuth 2.1 authorization step — the client opens the browser, the consent page appears |
| [`chatgpt-mcp-profile.mp4`](./assets/chatgpt-mcp-profile.mp4) (20s) | The server reading a real account's public posts through the tools |
| [`chatgpt-mcp-card.png`](./assets/chatgpt-mcp-card.png) | Still frame of the "PowPow 附近发现" card |
> The tool output is Chinese-only — see [中国相关说明](#a-couple-of-china-specific-notes)
> below. Models translate it for you; the raw payload stays Chinese.
---
## Connect
The server is a remote **streamable HTTP** MCP server. Point any compatible client at it:
```
https://global.powpow.online/api/mcp
```
### Claude Code / Claude Desktop / Claude.ai
```bash
claude mcp add --transport http powpow https://global.powpow.online/api/mcp
```
### Cursor
```json
{
"mcpServers": {
"powpow": {
"url": "https://global.powpow.online/api/mcp"
}
}
}
```
### VS Code
```json
{
"servers": {
"powpow": {
"type": "http",
"url": "https://global.powpow.online/api/mcp"
}
}
}
```
### Claude Code plugin (one-step install)
A ready-made plugin lives at
[`durenzidu/powpow-claude-plugin`](https://github.com/durenzidu/powpow-claude-plugin):
```bash
claude plugin marketplace add durenzidu/powpow-claude-plugin
claude plugin install powpow@powpow
```
### Gemini CLI / Antigravity (Google)
Two manifests live at the repository root because Google's two terminal agents use
different field names for a remote server:
| File | Host | Remote field |
| :-- | :-- | :-- |
| `gemini-extension.json` | Gemini CLI (extension) | `httpUrl` |
| `mcp_config.json` + `plugin.json` | Antigravity CLI / App (plugin) | `serverUrl` |
```bash
# Antigravity CLI / App
agy plugin install https://github.com/durenzidu/powpow-mcp
# or point at the endpoint directly:
agy mcp add powpow https://global.powpow.online/api/mcp
# Gemini CLI — enterprise Code Assist licenses and paid API keys only
gemini extensions install https://github.com/durenzidu/powpow-mcp
```
Both manifests point at the same Streamable HTTP endpoint. Discovery works without a
token; the first `tools/call` triggers the OAuth 2.1 + PKCE flow with dynamic client
registration described below — there is no client ID to pre-register.
> Gemini CLI stopped serving free, Google AI Pro and Ultra users on 2026-06-18.
> Individual users should use Antigravity CLI.
Maintainers: the Gemini CLI extension gallery crawls this repository because of the
`gemini-cli-extension` topic. Keep `version` in `gemini-extension.json` in sync with
the release tag.
## Authentication
**OAuth 2.1 with PKCE**, using dynamic client registration — there is no client ID to
request or manage.
The server supports **unauthenticated discovery**: a client can install, start and
enumerate all 34 tools without an account. Only `tools/call` requires authorization —
it returns `401` with a `WWW-Authenticate` challenge and a Chinese response body
asking you to connect your PowPow account. The challenge header stays ASCII so
standard hosts can start the OAuth flow; the human-readable text lives in the body.
1. The client reads the `401` challenge, then the protected-resource metadata and the
authorization server metadata.
2. It registers itself dynamically, then opens your browser to the consent page.
3. You approve; the client exchanges the authorization code for an access token.
4. With a valid token, all 34 tools are available; discovery methods stay readable
either way.
### Anonymous discovery
Methods allowed without a token: `initialize`, `notifications/initialized`, `ping`,
`tools/list`, `resources/list`, `resources/templates/list`, `resources/read`,
`prompts/list`, `server/discover`. Everything else — including every `tools/call` —
requires authorization, and unknown methods default to requiring it. Anonymous
discovery is limited to **60 requests per minute per IP** (`429` + `Retry-After`).
### Supported scopes
`openid`, `profile`, `email`
### Notes
- The consent page is served by PowPow itself and asks for the account's login
before showing what the client is requesting. You can decline at any time.
- Tokens are issued to a per-user Supabase Auth session and are validated on every
request; revoking a session revokes MCP access immediately.
## Tools
34 tools — **20 read-only** and **14 write**.
### Discovery
| Tool | Purpose |
| --- | --- |
| `find_nearby` | Find digital humans, users and posts around a place |
| `geocode_place` | Resolve a place name to canonical coordinates |
| `nearby_attractions` | Attractions and business districts around a place |
| `list_campaigns` | Offline check-in campaigns |
| `search_posts` | Search posts by keyword |
| `search_users` | Search users by keyword |
### Account and social
| Tool | Purpose |
| --- | --- |
| `whoami` | Confirm the connected account |
| `get_my_account` | Membership tier and expiry |
| `my_posts` | Your own posts |
| `my_digital_humans` | Digital humans you created |
| `my_following` / `my_followers` | Follow relationships |
| `list_friends` | Friends |
| `list_favorites` | Favorites |
| `get_badge_history` | Badge history |
| `get_user_profile` | A user's public profile |
| `get_post_detail` | One post with detail |
| `get_post_replies` / `get_my_post_replies` | Replies |
| `get_digital_human` | One digital human |
### Write operations
`prepare_post`, `publish_post`, `delete_post`, `like_post`, `unlike_post`,
`reply_to_post`, `follow_user`, `unfollow_user`, `add_favorite`,
`update_favorite`, `remove_favorite`, `update_profile`, `create_digital_human`,
`delete_digital_human`
### Safety model
- **Posting is always two-step.** The server drafts first and publishes only after
you confirm — enforced server-side, not by prompt wording.
- **24-hour undo.** Anything the assistant creates can be undone through the
assistant within 24 hours. Older content is managed in the PowPow app.
- **Write access can be switched off** in PowPow's AI connection settings.
### Rate limits
The three public search tools — `find_nearby`, `geocode_place`,
`nearby_attractions` — allow **12 calls per 60 seconds per access token**, because
they consume a third-party geocoding quota. The other 31 tools are not rate limited.
Anonymous discovery methods are limited to **60 requests per minute per client IP**
(`429` with `Retry-After`), counted by an atomic database counter. Audit logs store
only method names and argument shapes — no parameter values — and are written with a
service-role key; anonymous clients cannot write to the audit or rate-limit tables.
## Documentation
Full reference for all 34 tools: **https://global.powpow.online/mcp-docs**
## Recent changes
- **v0.23.7 · 2026-11-08 — Unauthenticated discovery.** Clients can install, start
and list all 34 tools without an account; `tools/call` still requires OAuth and
returns `401` with a Chinese "connect your PowPow account" message.
- **Whitelist gate.** Nine discovery methods are anonymous; everything else, every
unknown method, and POST bodies with no parseable method default to requiring
authorization.
- **Anonymous rate limiting.** A dedicated counter table with an atomic database RPC,
60/min/IP; the trusted client IP comes from the right-hand XFF segment.
- **Audit hardening.** Request bodies are reduced to method names and argument shapes;
audit writes use a service-role key and anonymous clients have no permissions on the
audit or rate-limit tables.
- **Session and config safety.** Shadow sessions are rebuilt only when a session is
genuinely dead (not on any `403`), and a disabled OAuth switch raises a startup warning.
- **MCP SDK 2.3.1 compatibility.** The modern protocol header is stripped from legacy
bodies and `Mcp-Name` is mirrored when missing.
- **Bug fixes.** User cards no longer always show 0 m; duplicate migration numbers
were renumbered.
## What this server talks to
| Destination | Purpose |
| --- | --- |
| `https://global.powpow.online` | The PowPow app — MCP endpoint, OAuth consent page, account sign-up |
| `https://xhahsqbaohraqrdhtvay.supabase.co` | PowPow's authentication service (Supabase Auth) — sign-in and token issuance |
No other network destinations. No telemetry, no third-party analytics.
## Source layout
```
powpow-mcp/
├── server.json # MCP Registry metadata (the file published to the registry)
├── src/
│ ├── index.ts # Tool registration and handlers
│ ├── auth.ts # OAuth 2.1 resource-server side
│ └── widget-html.ts # Interactive map widget (HTML)
└── LICENSE
```
The server runs on **Supabase Edge Functions** (Deno).
### Environment variables
| Variable | Required | Purpose |
| --- | --- | --- |
| `SUPABASE_URL` | yes | Supabase project URL |
| `SUPABASE_ANON_KEY` | yes | Supabase anon key |
| `SUPABASE_SERVICE_ROLE_KEY` | yes | Server-side key for the bridge table |
| `AMAP_WEB_SERVICE_KEY` | for geocoding | AMap (Gaode) Web Service key |
| `MCP_OAUTH` | yes | Enables the OAuth resource-server routes |
| `MCP_HIDE_WIDGET` | no | Hides the map widget resource |
| `MCP_ENABLE_PROBE` | no | Registers a diagnostic tool (off by default) |
> No credentials are committed to this repository. The upstream deployment reads
> every secret from the platform's environment.
### Deploy
```bash
supabase functions deploy mcp-server --project-ref <ref> --no-verify-jwt
```
## Legal
- Privacy policy: https://global.powpow.online/privacy-policy
- Terms of service: https://global.powpow.online/terms-of-service
- Support: https://global.powpow.online/support
- Website: https://www.powpow.online/
## License
MIT — see [LICENSE](./LICENSE).
---
## 中文简介
**PowPow(泡泡)** 是一款面向Agent的基于位置的社交应用:用户在地图上发布带位置的帖子、
创建可对话的数字人(AI 角色)、参与线下打卡活动。本仓库是它的远程 MCP 服务端源码,
已发布到[官方 MCP Registry](https://registry.modelcontextprotocol.io/)。
**接入方式**
```
https://global.powpow.online/api/mcp
```
传输方式为 **streamable HTTP**。鉴权走 **OAuth 2.1 + PKCE**,支持动态客户端注册
(无需申请 client_id)。
**工具**:共 34 个,20 个只读 + 14 个写,覆盖附近发现、账号与社交、内容创作、数字人、活动与会员。
**安全边界**
- 发帖永远是「先出草稿 → 你确认 → 才发出」,由服务端强制
- 通过 AI 创建的内容可在 24 小时内由 AI 撤销
- 写权限可在 PowPow「设置 → AI 连接」里随时关闭
- 三个公开搜索工具(`find_nearby`/`geocode_place`/`nearby_attractions`)限 12 次/60 秒/令牌,
其余 31 个不限流;匿名发现层另限 60 次/分钟/IP
**隐私**:只连接两个域名 —— `global.powpow.online`(应用与 OAuth 同意页)和
`xhahsqbaohraqrdhtvay.supabase.co`(认证服务)。无埋点、无第三方分析、不上传本地文件。
**许可**:MIT