mcpField
G
Getmycert Questions Mcp Server

Getmycert Questions Mcp Server

本地服务
github.com/fischperson0000000云与基础设施024 周前更新

关于 Getmycert Questions Mcp Server

GetMyCert MCP Server 为 AI Agent 提供 IT 认证练习题和认证目录。它支持通过 Base 上的 USDC 使用 x402 按请求微支付,或使用预付 API 密钥。

主要功能

  1. 01获取选择题练习题
  2. 02按难度筛选题目
  3. 03查看认证及题目数量
  4. 04使用 x402 或 API 密钥按次付费

适用场景

  1. 01备考 IT 认证考试
  2. 02按指定难度获取题目
  3. 03按题目数量浏览认证

MCP 相关

该服务向 MCP 客户端提供获取认证题目和列出认证的工具。题目请求通过 x402 微支付或预付 API 密钥付费。

配置

本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。

mcp.json · 通用配置
{
"mcpServers": {
"getmycert": {
"command": "npx",
"args": [
"-y",
"@getmycert/mcp-server"
],
"env": {
"GETMYCERT_API_KEY": "<GETMYCERT_API_KEY>"
}
}
}
}
启动命令npx -y @getmycert/mcp-server
需要配置的环境变量
GETMYCERT_API_KEY密钥

本地服务需要在你的电脑上安装运行环境(如 Node.js 18+)。各客户端的配置文件位置不同,请参考客户端文档。

安装包
npm@getmycert/mcp-server

工具

还没有获取到工具列表

本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。

详细介绍

GetMyCert MCP 服务

一个 Model Context Protocol 服务,可让任何兼容 MCP 的 AI Agent(Claude Desktop、Claude Code、Cursor、Windsurf、Continue、Zed 等)实时访问 GetMyCert.com 上 27 项认证的 13,072 道 IT 认证练习题。

按调用付费,通过 x402 微支付(Base 上的 USDC,无需注册)——也可使用传统的预付费 API 密钥。

提供的工具

工具说明
get_cert_questions获取某项认证的 1–25 道选择题,可按难度筛选。
list_certifications列出所有 27 项可用认证及其题目数量。
涵盖的认证

AWS(SAA、SysOps、Developer、Cloud Practitioner、Solutions Architect Pro)、 CompTIA(A+、Network+、Security+、CySA+、CASP+、PenTest+、Cloud+、Data+、 Linux+、Server+)、Google Cloud(ACE、PCA)、Azure(Fundamentals、Administrator、 Developer、Security)、Cisco CCNA、Kubernetes CKAD、PMP、CISSP、CEH、ITIL 4。


安装

从 npm 安装(推荐)
npm install -g @getmycert/mcp-server
从源代码安装
git clone https://github.com/getmycert/mcp-server.git
cd mcp-server
npm install
npm run build

构建会在 dist/index.js 生成一个可执行文件。


配置

需要选择以下两种支付方式之一。

选项 1 — x402 微支付(推荐)
  1. 生成一个热钱包私钥:

    openssl rand -hex 32
    
  2. 向该钱包的 Base 主网地址转入几美元的 USDC。每批题目费用约为 $0.01。

  3. 在 Agent 的 MCP 配置中设置 GETMYCERT_WALLET_PRIVATE_KEY=0x<your_key> (见下方配置片段)。

选项 2 — 预付费 API 密钥
  1. 在 https://getmycert.com/dashboard/api-keys 获取 API 密钥。
  2. 在 MCP 配置中设置 GETMYCERT_API_KEY=<your_key>。

如果两者都已配置,服务会优先使用 x402;若失败,则回退到 API 密钥。

所有可用环境变量均记录在 .env.example 中。


添加到你的 Agent

Claude Desktop

编辑 ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)或 %APPDATA%\Claude\claude_desktop_config.json(Windows):

{
  "mcpServers": {
    "getmycert": {
      "command": "npx",
      "args": ["-y", "@getmycert/mcp-server"],
      "env": {
        "GETMYCERT_WALLET_PRIVATE_KEY": "0xYOUR_PRIVATE_KEY_HERE"
      }
    }
  }
}

重启 Claude Desktop。你应能在锤子图标下看到 GetMyCert 工具列表。

Claude Code

添加到 ~/.claude.json(全局配置)或项目中的 .claude.json:

{
  "mcpServers": {
    "getmycert": {
      "command": "npx",
      "args": ["-y", "@getmycert/mcp-server"],
      "env": {
        "GETMYCERT_API_KEY": "gmc_live_..."
      }
    }
  }
}

或者使用单行命令:

claude mcp add getmycert -- npx -y @getmycert/mcp-server
Cursor

编辑 ~/.cursor/mcp.json:

{
  "mcpServers": {
    "getmycert": {
      "command": "npx",
      "args": ["-y", "@getmycert/mcp-server"],
      "env": {
        "GETMYCERT_WALLET_PRIVATE_KEY": "0xYOUR_PRIVATE_KEY_HERE"
      }
    }
  }
}
Windsurf / Continue / Zed

这些工具都使用相同的 stdio-MCP 格式。将它们指向 npx -y @getmycert/mcp-server,并使用相同的 env 配置块。

本地开发构建

如果你是从源代码克隆的,请将 command/args 替换为构建产物的路径:

{
  "mcpServers": {
    "getmycert": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-server/dist/index.js"],
      "env": {
        "GETMYCERT_WALLET_PRIVATE_KEY": "0x..."
      }
    }
  }
}

使用示例

安装后,你的 Agent 可以直接调用这些工具。提示词示例:

“给我 5 道难度较高的 CISSP 练习题。”

“考考我 AWS SAA——出 10 道中等难度的题,在我作答之前先隐藏答案。”

“列出 GetMyCert 上所有 CompTIA 认证及其题目数量。”


x402 支付方式

  1. Agent 调用 get_cert_questions。
  2. MCP 服务访问 https://getmycert.com/api/v1/x402。
  3. 服务返回 HTTP 402 Payment Required,其中包含费用(例如,10000 micro-USDC = $0.01)、收款地址和 USDC 合约。
  4. MCP 服务使用已配置的钱包签署 EIP-3009 transferWithAuthorization,并附带 X-PAYMENT: <base64-payload> 重试。
  5. 支付协调方在链上完成结算;GetMyCert 随后返回题目。

GETMYCERT_MAX_PAYMENT 环境变量用于限制单次调用的最高费用(默认值为 100000 = $0.10)。


环境变量

变量必填默认值用途
GETMYCERT_WALLET_PRIVATE_KEY二选一—用于支付 x402 端点费用的 Base 钱包的 32 字节十六进制私钥。
GETMYCERT_API_KEY二选一—预付费 API 密钥备用方案。
GETMYCERT_RPC_URL否https://mainnet.base.orgBase RPC 端点。
GETMYCERT_X402_URL否https://getmycert.com/api/v1/x402x402 端点覆盖值。
GETMYCERT_API_URL否Supabase 边缘函数API 密钥端点覆盖值。
GETMYCERT_CERTS_URL否https://getmycert.com/api/v1/certifications公共目录端点覆盖值。
GETMYCERT_MAX_PAYMENT否100000单次调用最多可支付的微 USDC 数量。

托管式 / 远程 MCP

此软件包还导出 createServer(),因此你可以将其托管在 HTTP 传输(SSE 或 Streamable HTTP)之后,无需修改工具代码:

import { createServer } from "@getmycert/mcp-server";
import { SSEServerTransport } from "@modelcontextprotocol/sdk/server/sse.js";

const server = createServer();
// wire SSEServerTransport into your HTTP framework of choice

提交到注册目录

此服务旨在列入社区 MCP 注册目录。


许可证

MIT — 详见 LICENSE。

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。