Cursor 配置指南
March 12, 2026 · View on GitHub
方式一:一键安装
在 AI 对话中输入:
Help me auto install Gate Skills and MCPs: https://github.com/gateio/gate-skills

方式二:手动配置
Gate MCP 提供两个端点,按需选择:
| 端点 | 认证 | 用途 |
|---|---|---|
https://api.gatemcp.ai/mcp | 无 | 仅市场数据(行情、深度、K 线等) |
https://api.gatemcp.ai/mcp/exchange | OAuth2 | 完整功能(交易、余额、划转 — 连接时 OAuth 登录) |
第 1 步:打开 Cursor 设置
导航到 Settings → Tools & MCP → Add Custom MCP

第 2 步:编辑 MCP 配置
编辑你的 mcp.json 文件。
完整交易能力(连接时 OAuth 登录):
{
"mcpServers": {
"Gate": {
"url": "https://api.gatemcp.ai/mcp/exchange",
"transport": "streamable-http",
"headers": {
"Content-Type": "application/json",
"Accept": "application/json, text/event-stream"
}
}
}
}
仅查行情(无需认证):
{
"mcpServers": {
"Gate": {
"url": "https://api.gatemcp.ai/mcp",
"transport": "streamable-http",
"headers": {
"Content-Type": "application/json",
"Accept": "application/json, text/event-stream"
}
}
}
}
DEX(链上钱包、兑换):
{
"mcpServers": {
"Gate-Dex": {
"url": "https://api.gatemcp.ai/mcp/dex",
"headers": {
"x-api-key": "MCP_AK_8W2N7Q",
"Authorization": "Bearer ${GATE_MCP_TOKEN}"
}
}
}
}
Info 与 News(无需认证):
{
"mcpServers": {
"Gate-Info": {
"url": "https://api.gatemcp.ai/mcp/info"
},
"Gate-News": {
"url": "https://api.gatemcp.ai/mcp/news"
}
}
}

第 3 步:开始使用
打开 Cursor AI 对话,尝试:
- "查询 BTC/USDT 的当前价格"
- "显示 ETH/USDT 的订单簿"
- "获取 SOL/USDT 的 1 小时 K 线数据"

故障排除
连接问题
- 检查网络连接
- 验证 MCP 服务器 URL 是否正确
- 查看 Cursor 的 MCP 日志获取错误信息
工具不可用
- 确保 MCP 配置正确保存
- 重启 Cursor
- 检查 MCP 服务器是否可访问