mcpField
L

lighter-mcp

本地服务
github.com/winter0x金融数据

关于 lighter-mcp

读取 Lighter 永续合约市场,并下达受保护的订单,包括 H100 算力价格市场。

配置

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

mcp.json · 通用配置
{
"mcpServers": {
"winter0x-lighter": {
"command": "npx",
"args": [
"-y",
"lighter-mcp"
],
"env": {
"LIGHTER_NETWORK": "<LIGHTER_NETWORK>",
"LIGHTER_ACCOUNT_INDEX": "<LIGHTER_ACCOUNT_INDEX>",
"LIGHTER_API_KEY_INDEX": "<LIGHTER_API_KEY_INDEX>",
"LIGHTER_API_KEY_PRIVATE_KEY": "<LIGHTER_API_KEY_PRIVATE_KEY>",
"LIGHTER_MAX_NOTIONAL_USD": "<LIGHTER_MAX_NOTIONAL_USD>",
"LIGHTER_CHAIN_ID": "<LIGHTER_CHAIN_ID>",
"LIGHTER_READ_ONLY_TOKEN": "<LIGHTER_READ_ONLY_TOKEN>"
}
}
}
}
启动命令npx -y lighter-mcp
需要配置的环境变量
LIGHTER_NETWORKDeployment to read: mainnet, testnet, or robinhood. Defaults to mainnet.
LIGHTER_ACCOUNT_INDEXSub-account the agent trades from. Read-only tools work without it.
LIGHTER_API_KEY_INDEX密钥API key slot bound to the sub-account, 0 to 254.
LIGHTER_API_KEY_PRIVATE_KEY密钥API key private key. Full write authority over the account it is bound to, so use a dedicated sub-account.
LIGHTER_MAX_NOTIONAL_USDPer-order notional ceiling in USD. Required before any order can be signed.
LIGHTER_CHAIN_IDLayer-2 chain id bound into every signature. Mainnet uses 304 and testnet 300, so this is only needed on a deployment that publishes none.
LIGHTER_READ_ONLY_TOKEN密钥Read-only token for account observation without a signing key.

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

安装包
npmlighter-mcp0.1.1

工具

9

收录的工具列表 · 更新于 2 周前

参数类型必填说明
limitinteger否要返回的市场数量上限,范围为 1 到 100。
querystring否在 ticker 中进行不区分大小写的子字符串匹配,例如 "H100" 或 "SOL"。

详细介绍

维护者还没有提供详细介绍,可以先查看代码仓库中的 README。

评论

支持 Markdown

第一次接触 MCP?

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

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