API Tools
gold-api.cn
Provides GoldAPI tools for listing precious metals varieties and retrieving real-time quotes, historical OHLCV, and daily K-line market data.
ENDPOINT 1
https://www.gold-api.cn/mcp
MCP server metadata
- Name
- goldapi
- Version
- 1.5.42
GoldAPI 提供贵金属(黄金/白银/铂金/钯金)实时与历史行情。先调 list_varieties 获取品种 goldId,再用 get_realtime(实时,付费)/ get_history(历史,付费)/ get_kline(日K,免费)查询。每次付费调用按账户三通道(单品/会员/赠送额度)计 1 次,工具输出中的 billing 字段含剩余额度。
Known tools 4
list_varieties获取 GoldAPI 在售贵金属品种清单(黄金/白银/铂金/钯金等,含各市场现货与期货)。返回每个品种的 goldId、名称、市场与类别。查行情前先调本工具获取 goldId。免费,不计入调用次数。
Inferred read-onlyget_realtime获取贵金属实时行情(最新价、涨跌、买卖价、最高最低等)。付费工具:每次调用计 1 次调用次数(走账户的三通道计费:单品/会员/赠送额度)。支持一次查询多个品种(逗号分隔 goldId,最多 50 个,也只计 1 次)。
Inferred read-onlyget_history获取贵金属历史行情(小时级 OHLCV,时间升序)。付费工具:每次调用计 1 次。数据自 2026-05-27 起可用,单次范围不超过 92 天。
Inferred read-onlyCONNECT 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.
TRUST AND VERIFICATION EVIDENCE
Trust Data Available
BuiltWith Trust API v2 evidence for gold-api.cn was fetched 2026-11-20T20:49:05.382Z.
gold-api.cn is assessed as Neutral: No suspicious signals found, but no strong positive signal either
Evidence is source-attributed and does not guarantee that a third-party server is safe. Risk labels are conservative metadata heuristics.