giftful-mcp

giftful-mcp

A local MCP server for managing Giftful lists and wishes programmatically, with secure authentication, credential-vault storage, and tools for lists, wishes, categories, claiming, and social browsing.

Category
访问服务器

README

Giftful MCP

A local Model Context Protocol server for logging in to Giftful and managing lists and wishes programmatically.

What it supports

  • Persistent login with automatic access-token refresh
  • Native credential-vault storage on macOS, Windows, and Linux
  • Browser-based authentication for the sign-in methods offered by Giftful
  • List, inspect, create, patch, and soft-delete lists
  • Navigate accessible lists from followed friends, followers, and following
  • List, add, patch, reorder, and delete wishes
  • Claim and unclaim wishes on friends' lists
  • Add a product URL and let Giftful retrieve its title, price, image, and description
  • Create, reorder, and delete list categories
  • Multiple accounts through named profiles

The password is used only for the login request and is never persisted. Only Giftful's refresh token and basic user metadata are stored. Short-lived access tokens remain in memory.

Authentication is CLI-only. The MCP server never accepts a Giftful password as a tool argument, so passwords do not enter model context or tool transcripts. When login is required, giftful_auth_status returns the appropriate terminal commands.

Requirements

  • Node.js 20 or newer
  • A Giftful account
  • Chrome, Edge, Brave, or Chromium for browser-based authentication

Install and build

npm install
npm run check

Everything required to build the server is in this project directory. Authentication data is stored separately and is never committed to the repository.

Log in securely

The recommended flow works with whichever sign-in method Giftful presents in the browser:

npm run auth -- login-browser

This opens Giftful in a temporary browser profile. Complete the normal login there using Apple or another available provider. The CLI reads only the resulting Giftful refresh credential, validates it with Giftful, saves it in your system credential vault, closes the browser, and deletes the temporary profile. It never receives your identity-provider password or verification codes. login-apple remains available as a compatibility alias.

The browser is discovered automatically. If needed, point to it explicitly with GIFTFUL_BROWSER_EXECUTABLE=/absolute/path/to/browser; the default login timeout is ten minutes and can be changed with GIFTFUL_BROWSER_LOGIN_TIMEOUT_MS.

For an email/password account, the recommended flow prompts for the password without echoing it:

npm run auth -- login YOUR_GIFTFUL_EMAIL

Confirm the saved session and exercise token refresh:

npm run auth -- status --validate

Log out and remove the persisted session:

npm run auth -- logout

For non-interactive automation, provide the password for that process only. It is removed from the process environment before login and is not saved:

GIFTFUL_PASSWORD='...' npm run auth -- login YOUR_GIFTFUL_EMAIL

Avoid putting GIFTFUL_PASSWORD in a long-lived shell profile or MCP configuration.

Connect it to Codex

Build first, then register the local stdio server using an absolute path:

codex mcp add giftful -- node /ABSOLUTE/PATH/TO/giftful-mcp/dist/index.js

Restart Codex or begin a new thread after adding it. Check registration with:

codex mcp get giftful

To use a named account profile:

codex mcp add giftful-personal \
  --env GIFTFUL_PROFILE=personal \
  -- node /ABSOLUTE/PATH/TO/giftful-mcp/dist/index.js

Run the login command with the same profile:

GIFTFUL_PROFILE=personal npm run auth -- login-browser
# or, for a password account:
GIFTFUL_PROFILE=personal npm run auth -- login YOUR_GIFTFUL_EMAIL

The equivalent generic MCP client configuration is:

{
  "mcpServers": {
    "giftful": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/giftful-mcp/dist/index.js"]
    }
  }
}

Tools

Tool Purpose
giftful_auth_status Check or validate persistent authentication
giftful_logout Revoke and remove the persistent session
giftful_list_lists List the authenticated user's lists
giftful_list_friend_lists List accessible lists from followed friends
giftful_list_followers List followers without changing relationships
giftful_list_following List actively followed accounts
giftful_get_list Inspect a list and its settings/categories
giftful_create_list Create a wishlist, registry, or personal list
giftful_update_list Patch list settings without overwriting omitted values
giftful_delete_list Soft-delete a list; requires confirm=true
giftful_list_wishes List wishes and retrieve their IDs
giftful_add_wish Add manually or from a scraped product URL
giftful_update_wish Patch one wish
giftful_reorder_wish Move a wish after another wish or to the beginning
giftful_delete_wish Permanently delete one wish; requires confirmation
giftful_claim_wish Reserve a wish in Giftful; requires confirmation
giftful_unclaim_wish Release a Giftful reservation; requires confirmation
giftful_create_category Add a list category
giftful_reorder_categories Persist the complete category order
giftful_delete_category Remove a category while keeping its wishes

Examples of natural requests after connecting:

  • “Show my Giftful lists.”
  • “Show the lists belonging to people I follow.”
  • “List the people I follow, then show Alice's available wishes.”
  • “Reserve wish 12345 for me.”
  • “Add this URL to my Christmas list and mark it most desired.”
  • “Rename my christmas-2026 list and make link viewing private.”
  • “Change wish 12345 to quantity 2.”
  • “Move wish 12345 to the top of my birthday list.”
  • “Put the Books category before Games.”

Giftful stores one list-wide relative order for wishes and a separate order for categories. When wishes are grouped for display, category order takes precedence; wishes inside each category retain their relative list-wide order. giftful_reorder_wish moves one wish after another (or to the global beginning), while giftful_reorder_categories accepts the complete category ID order.

Claiming is Giftful's reservation mechanism: it tells other Giftful users that the item is being handled. It does not place an order, charge a payment method, or buy anything from the linked retailer. Claim and unclaim both require confirm=true. The social tools are intentionally read-only; this MCP cannot find, follow, unfollow, accept, decline, remove, or otherwise modify social relationships.

Authentication storage

The default GIFTFUL_AUTH_STORAGE=auto uses the operating system's protected credential vault:

  • macOS: Keychain item under service com.giftful-mcp.session
  • Windows: Credential Manager
  • Linux: Secret Service (normally backed by GNOME Keyring or KDE Wallet)

Overrides:

GIFTFUL_AUTH_STORAGE=system
GIFTFUL_AUTH_STORAGE=file
GIFTFUL_AUTH_FILE=/safe/absolute/path/session.json
GIFTFUL_PROFILE=work

System storage is the recommended cross-platform choice. On a headless Linux machine without Secret Service, opt into file storage explicitly. Its live refresh token is plaintext protected by filesystem permissions; the directory is mode 0700 and the file mode 0600. Keep it outside repositories and untrusted backups.

Development

npm run dev        # start stdio server from TypeScript
npm run typecheck
npm test
npm run build
npm run check:live-schema  # validates operations against Giftful; does not log in or write data
npm run check      # all of the above verification except dev

Tests mock Giftful login, refresh, social, and claim responses; they never require or mutate a real account. A live account smoke test is intentionally left to the owner because create/edit/delete and claim operations affect real lists.

Compatibility

This is an independent community project and is not affiliated with or endorsed by Giftful. Changes to Giftful may occasionally require a corresponding update here.

If Giftful changes its schema or authentication flow, errors are surfaced without deleting a valid saved session for ordinary network failures; sessions are cleared only when Giftful explicitly rejects the refresh credential.

License

MIT © 2026 Matthew Pulsipher.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选