Skip to main content
Glama

MetaMask Embedded Wallets MCP 服务器

通过让您的 AI 编码助手实时访问文档和 SDK 的深度知识,更快地构建 MetaMask Embedded Wallets 集成。

需要设置两件事:

  1. 技能 (Skill) — 教导您的 AI 助手如何“思考”该 SDK:架构、框架特性、密钥派生规则和常见错误。技能中不包含代码;MCP 提供了这些内容。

  2. MCP 服务器 — 让您的 AI 助手能够实时搜索文档、获取示例并查找 SDK 类型。


MCP 工具

工具

功能

search_docs

搜索文档和示例项目

get_doc

获取任何文档页面的完整内容

get_example

获取集成示例的完整源代码

get_sdk_reference

从开源仓库中获取 SDK 类型和钩子

search_community

在 MetaMask Builder Hub 中搜索真实用户问题


Related MCP server: Privy MCP Server

技能 (Skill)

该技能教导您的 AI 助手关于 MetaMask Embedded Wallets 的思维模型。它包括 SDK 选择逻辑、密钥派生规则、身份验证概念、平台特性以及仅从文档中无法显而易见的常见错误。

提示: 为了获得最佳体验,请将 MCP 服务器与技能结合使用,以便您的 LLM 可以获取实时文档和示例,而不是依赖静态文本。

通用安装(适用于 18+ 种代理)

npx skills add Web3Auth/web3auth-mcp --skill web3auth -y

Vercel 的 skills CLI 会自动检测您正在使用的 AI 代理并将其安装到正确的目录中 —— 包括 Cursor、Claude Code、Copilot、Kiro、Cline、Codex、Antigravity 以及 40 多种其他工具。

要全局安装(在所有项目中可用)或针对特定代理安装:

npx skills add Web3Auth/web3auth-mcp --skill web3auth -g -y            # global
npx skills add Web3Auth/web3auth-mcp --skill web3auth -a cursor -y     # Cursor only
npx skills add Web3Auth/web3auth-mcp --skill web3auth -a claude-code -y # Claude Code only

Cursor

npx degit Web3Auth/web3auth-mcp/skills/web3auth .cursor/skills/web3auth

Cursor 会自动识别 .cursor/skills/ 中的任何 SKILL.md 并在相关时激活它。

或者通过 Cursor Marketplace 安装 — 搜索 "MetaMask Embedded Wallets"。

Claude Code CLI

npx degit Web3Auth/web3auth-mcp/skills/web3auth /tmp/web3auth-skill
cat /tmp/web3auth-skill/SKILL.md >> CLAUDE.md

Claude Desktop

打开 Claude Desktop → Settings → Custom Instructions 并直接粘贴 skills/web3auth/SKILL.md 的内容。

Antigravity

npx degit Web3Auth/web3auth-mcp/skills/web3auth .agent/skills/web3auth

Antigravity 会自动识别 .agent/skills/ 中的技能。若要在所有项目中全局安装,请改用 ~/.gemini/antigravity/skills/。

Windsurf / Cline / Kiro / Continue

npx degit Web3Auth/web3auth-mcp/skills/web3auth .windsurf/skills/web3auth

将技能放置在特定工具的技能目录中。大多数工具也支持将 SKILL.md 的内容粘贴到系统提示词或自定义指令字段中。

其他工具

对于任何带有系统提示词或自定义指令字段的 LLM 工具,请直接粘贴 skills/web3auth/SKILL.md 的内容。


MCP 服务器设置

Cursor

最快的方法是一键安装:

Add MetaMask Embedded Wallets MCP to Cursor

或者通过 Cursor Marketplace 安装 — 搜索 "MetaMask Embedded Wallets"。

或者手动添加。打开 Cursor Settings → Tools & Integrations → MCP 并添加:

{
  "mcpServers": {
    "web3auth": {
      "url": "https://mcp.web3auth.io"
    }
  }
}

VS Code (GitHub Copilot)

从 Visual Studio Marketplace 安装 — 搜索 "MetaMask Embedded Wallets",或者:

code --install-extension Web3Auth.metamask-embedded-wallets

或者使用一键安装 URL:

vscode:mcp/install?{"name":"web3auth","url":"https://mcp.web3auth.io"}

或者手动添加到您的工作区 .vscode/mcp.json:

{
  "servers": {
    "web3auth": {
      "type": "http",
      "url": "https://mcp.web3auth.io"
    }
  }
}

JetBrains (IntelliJ, PyCharm, WebStorm, Android Studio)

从 JetBrains Marketplace 安装 — 搜索 "MetaMask Embedded Wallets"。

或者在 Settings → Tools → AI Assistant → Model Context Protocol (MCP) 中手动添加:

{
  "mcpServers": {
    "web3auth": {
      "url": "https://mcp.web3auth.io",
      "transport": "http"
    }
  }
}

Claude Code CLI

claude mcp add --transport http web3auth https://mcp.web3auth.io

或者手动添加到您的项目 claude.json:

{
  "mcpServers": {
    "web3auth": {
      "url": "https://mcp.web3auth.io"
    }
  }
}

Claude Desktop

打开您的 Claude Desktop 配置文件:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

将服务器添加到 mcpServers 部分:

{
  "mcpServers": {
    "web3auth": {
      "url": "https://mcp.web3auth.io"
    }
  }
}

重启 Claude Desktop 并询问:"Search MetaMask Embedded Wallets docs for React quick start" 以验证连接。

ChatGPT Desktop

打开 ChatGPT Desktop → Settings → Connections 并添加新的 MCP 服务器:

  • Name: web3auth

  • URL: https://mcp.web3auth.io

Windsurf

打开 Windsurf Settings → MCP 并添加:

{
  "mcpServers": {
    "web3auth": {
      "serverUrl": "https://mcp.web3auth.io"
    }
  }
}

或者直接编辑 ~/.codeium/windsurf/mcp_config.json。

Kiro (AWS)

添加到您项目的 .kiro/settings/mcp.json:

{
  "mcpServers": {
    "web3auth": {
      "url": "https://mcp.web3auth.io"
    }
  }
}

Warp Terminal

在 Warp 中,打开 Settings → AI → MCP Servers 并点击 Add Server:

  • Name: web3auth

  • URL: https://mcp.web3auth.io

或者在您的版本支持的情况下使用 Warp 的一键 MCP 安装。

Cline (VS Code)

添加到您的 Cline MCP 设置(Ctrl+Shift+P → "Cline: Open MCP Settings"):

{
  "mcpServers": {
    "web3auth": {
      "url": "https://mcp.web3auth.io",
      "transport": "http"
    }
  }
}

Continue.dev

添加到您的 Continue config.json(通过 Ctrl+Shift+P → "Continue: Open config.json" 打开):

{
  "mcpServers": [
    {
      "name": "web3auth",
      "url": "https://mcp.web3auth.io"
    }
  ]
}

Zed

添加到您的 Zed settings.json(按 Cmd+, 打开):

{
  "context_servers": {
    "web3auth": {
      "command": {
        "path": "npx",
        "args": ["-y", "mcp-remote", "https://mcp.web3auth.io"]
      }
    }
  }
}

或者通过 Zed Extensions 安装 — 搜索 "MetaMask Embedded Wallets"。

Antigravity

打开您的 MCP 配置文件:

  • macOS/Linux: ~/.config/antigravity/mcp.json

  • Windows: %APPDATA%\antigravity\mcp.json

将服务器添加到 mcpServers 部分:

{
  "mcpServers": {
    "web3auth": {
      "url": "https://mcp.web3auth.io"
    }
  }
}

Antigravity 会热重载 MCP 配置更改 — 无需重启。

Xcode (via GitHub Copilot)

Xcode 26.3+ 通过 GitHub Copilot 支持 MCP。将服务器添加到您的 Copilot MCP 配置中,或使用上述 VS Code 扩展设置(Copilot MCP 注册表是共享的)。

或者,通过 Settings → Copilot → MCP Servers 将 Xcode 的代理工具直接指向 https://mcp.web3auth.io。

Eclipse (via GitHub Copilot)

带有 GitHub Copilot 的 Eclipse 支持 MCP。通过 Eclipse → Preferences → GitHub Copilot → MCP Servers → Add Server 添加:

  • Name: web3auth

  • URL: https://mcp.web3auth.io

Neovim (avante.nvim)

在您的 Lua 配置中,通过 mcphub.nvim 添加:

require("mcphub").setup({
  servers = {
    web3auth = {
      url = "https://mcp.web3auth.io",
      transport = "streamable-http",
    },
  },
})

或者为了兼容性使用 mcp-remote:

require("avante").setup({
  mcp = {
    servers = {
      web3auth = {
        command = "npx",
        args = { "-y", "mcp-remote", "https://mcp.web3auth.io" },
      },
    },
  },
})

Neovim (codecompanion.nvim)

require("codecompanion").setup({
  extensions = {
    mcp = {
      servers = {
        web3auth = {
          command = "npx",
          args = { "-y", "mcp-remote", "https://mcp.web3auth.io" },
        },
      },
    },
  },
})

Amp (Sourcegraph)

添加到您的 Amp MCP 配置:

{
  "mcpServers": {
    "web3auth": {
      "url": "https://mcp.web3auth.io"
    }
  }
}

Goose

添加到 ~/.config/goose/config.yaml:

extensions:
  - name: web3auth
    type: http
    url: https://mcp.web3auth.io

5ire

在 5ire Settings → MCP Servers → Add 中:

  • Name: web3auth

  • URL: https://mcp.web3auth.io

Aider

Aider 通过 LiteLLM 网桥支持 MCP。添加到您的 Aider 配置:

mcp_servers:
  web3auth:
    command: npx
    args: ["-y", "mcp-remote", "https://mcp.web3auth.io"]

Codex CLI

对于 Codex CLI 或任何仅支持 stdio 的代理,使用 mcp-remote 来桥接 HTTP 端点:

npm install -g mcp-remote

然后添加到 ~/.codex/config.toml:

[mcp_servers.web3auth]
command = "npx"
args = ["-y", "mcp-remote", "https://mcp.web3auth.io"]

或者添加到您代理的 JSON 配置中:

{
  "mcpServers": {
    "web3auth": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.web3auth.io"]
    }
  }
}

静态文档 (llms.txt)

如果您的 AI 工具尚不支持 MCP,请改用静态文档文件:

https://docs.metamask.io/llms-full.txt

对于支持 llms.txt 规范 并能自动索引文档的工具:

https://docs.metamask.io/llms.txt

警告: 静态文件是一个快照,可能不包含最新更新。请尽可能使用 MCP 服务器以获取始终最新的文档。


开始构建

一旦技能和 MCP 设置完成,直接询问您的 AI 助手。好的起始提示词:

  • "Add MetaMask Embedded Wallets to my React app with Google login."

  • "Set up social login wallets in my Next.js app using Wagmi."

  • "Integrate embedded wallets in my Flutter app."

  • "Why are my users getting different wallet addresses after I changed the login method?"

提示: 在初始提示词中使用规划模式(如果可用)。在生成代码之前审查计划 — 这可以尽早发现架构错误,并避免在生产环境中更改钱包地址的配置错误。


分发

此仓库为每个主要开发者平台提供工件:

平台

类型

位置

Cursor Marketplace

插件

.cursor-plugin/ + mcp.json

VS Code Marketplace

扩展

plugins/vscode/

JetBrains Marketplace

插件

plugins/jetbrains/

Zed Extensions

扩展

plugins/zed/

Claude Agent SDK

插件

plugins/claude/

Raycast Store

扩展

plugins/raycast/

ChatGPT GPT Store

自定义 GPT

openai/

官方 MCP 注册表

server.json

server.json

Glama

glama.json

glama.json

Smithery

服务器卡片

app/.well-known/mcp/server-card.json/route.ts

Vercel skills.sh

技能

skills/web3auth/

agentskill.sh

技能

skills/web3auth/


环境变量

变量

必需

描述

GITHUB_TOKEN

否

GitHub 个人访问令牌。可选,但建议使用,以避免通过 get_sdk_reference 获取 SDK 源代码时受到速率限制


开发

npm install
npm run build
npm start          # Run via stdio
npm run dev        # Watch mode

更新内容

当产品更新发布时,只需更改少数几个文件:

更改内容

要更新的文件

SDK 架构 / 新的注意事项

skills/web3auth/SKILL.md

新的文档页面或 URL 更改

src/content/registry.ts

平台功能更改

src/content/platform-matrix.ts

SDK 仓库结构更改

src/content/sdk-registry.ts

需要新的工具类别

src/tools/register.ts

文档页面内容更改

无(实时获取)

许可证

MIT

Available Tools

5 tools
get_docA
Read-onlyIdempotent
Inspect

Fetch the full content of a MetaMask Embedded Wallets documentation page. Use after search_docs to read the actual doc. Tries Algolia, then llms.txt, then GitHub raw MDX as fallbacks.

Inputs: url (required).

get_exampleA
Read-onlyIdempotent
Inspect

Fetch the complete source code of a Web3Auth integration example from GitHub. Returns all source files needed to understand how the integration works. Examples are the PRIMARY reference for integration patterns — always prefer example code over raw SDK source.

Inputs: name, platform, chain, category, +1 more.

get_sdk_referenceA
Read-onlyIdempotent
Inspect

Fetch SDK source code (type definitions, interfaces, hooks) from the open-source Web3Auth SDK repos. Use for REFERENCE and DEBUGGING only — to verify exact type shapes, constructor signatures, available hooks, and error types. Do NOT use this to discover features; many SDK options are internal or legacy. Always use get_example first for integration patterns.

Inputs: platform (required), module, focus.

search_communityA
Read-onlyIdempotent
Inspect

Search or fetch posts from the MetaMask Embedded Wallets community forum (builder.metamask.io). Use for troubleshooting real user issues, finding workarounds, and checking if an issue is known. Provide a query to search or a topic_id to read the full discussion.

Inputs: query, topic_id.

search_docsA
Read-onlyIdempotent
Inspect

Search MetaMask Embedded Wallets (Web3Auth) documentation and examples. Use for SDK discovery, feature lookup, and finding relevant examples. Returns doc page links with snippets and matching example projects.

Inputs: query (required), platform, chain, category.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: get_doc retrieves documentation content, get_example fetches example code, get_sdk_reference provides SDK source for debugging, search_community accesses forum discussions, and search_docs performs initial documentation searches. The descriptions explicitly differentiate their roles and use cases, leaving no ambiguity.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using snake_case: get_doc, get_example, get_sdk_reference, search_community, and search_docs. This uniformity makes the tool set predictable and easy to understand at a glance.

    Tool Count5/5

    With 5 tools, the server is well-scoped for its purpose of providing MetaMask Embedded Wallets resources. Each tool serves a specific function (documentation, examples, SDK reference, community, and search), and none feel redundant or missing given the domain of developer support and integration.

    Completeness4/5

    The tool set covers key areas for developer integration: documentation access, example code, SDK reference, community support, and search functionality. A minor gap exists in not having tools for direct wallet operations or API interactions, but this is reasonable as the server focuses on resource retrieval rather than live wallet management.

    Related MCP Connectors

    Related MCP Servers