INDIVIDUAL MCP TOOL
list_varieties
获取 GoldAPI 在售贵金属品种清单(黄金/白银/铂金/钯金等,含各市场现货与期货)。返回每个品种的 goldId、名称、市场与类别。查行情前先调本工具获取 goldId。免费,不计入调用次数。
LIVE ENDPOINT
https://www.gold-api.cn/mcp
Connect to this endpoint to inspect the live schema for list_varieties and invoke it with your own arguments.
Indexed input schema
{}Risk classification
Inferred read-only · medium confidence · heuristic, not a guarantee.
- No write-capable action terms were found; this is not proof that invocation has no side effects.
Parent server
CONNECT WITH APPROVAL
Client installation
Review this server and its permissions before adding it. Secret placeholders must be set locally.
Codex
~/.codex/config.toml
[mcp_servers.goldapi]
url = "https://www.gold-api.cn/mcp"
enabled = true
Claude Code
.mcp.json
{
"mcpServers": {
"goldapi": {
"type": "http",
"url": "https://www.gold-api.cn/mcp"
}
}
}
Claude Desktop
Settings → Connectors → Add custom connector
Name: goldapi
Remote MCP URL: https://www.gold-api.cn/mcp
Add this remote URL as a custom connector in Claude Desktop. Availability depends on the user plan and workspace policy.
Cursor
.cursor/mcp.json
{
"mcpServers": {
"goldapi": {
"url": "https://www.gold-api.cn/mcp"
}
}
}
Visual Studio Code
.vscode/mcp.json
Add to Visual Studio Code{
"servers": {
"goldapi": {
"type": "http",
"url": "https://www.gold-api.cn/mcp"
}
}
}
Generic MCP
Client-specific MCP configuration
{
"name": "goldapi",
"transport": "streamable-http",
"url": "https://www.gold-api.cn/mcp"
}
MCP Inspector
Run the official MCP Inspector locally and enter the indexed Streamable HTTP endpoint.
Related tools
get_realtime— 获取贵金属实时行情(最新价、涨跌、买卖价、最高最低等)。付费工具:每次调用计 1 次调用次数(走账户的三通道计费:单品/会员/赠送额度)。支持一次查询多个品种(逗号分隔 goldId,最多 50 个,也只计 1 次)。get_history— 获取贵金属历史行情(小时级 OHLCV,时间升序)。付费工具:每次调用计 1 次。数据自 2026-05-27 起可用,单次范围不超过 92 天。get_kline— 获取贵金属最近 N 个自然日的日级 K 线(开高低收)。免费工具,不计入调用次数(按 IP 限速)。适合看趋势、画图、做简要分析。