本MCP服务器为访问EVE Online的市场数据提供接口。借助ESI(EVE Swagger Interface)API,能够获取实时的市场数据。
此服务器目前仅获取公共市场数据,因此无需ESI认证。不过,存在以下限制和规范:
x-esi-error-limit-remain
和x-esi-error-limit-reset
头部信息查看限制状态。eve-online-mcp/1.0 (github.com/your-username/eve-online-mcp)
服务器提供以下三项主要功能:
get-market-prices
)
type_id
、adjusted_price
、average_price
。get-market-orders
)
get-market-history
)
get-market-groups
)
get-structure-orders
)
get-market-stats
)
get-structure-type-orders
)
要通过Smithery为Claude Desktop自动安装eve-online-mcp
,可执行以下命令:
npx -y @smithery/cli install @kongyo2/eve-online-mcp --client claude
npm install
npm run build
npm start
// 获取所有物品的价格
const prices = await callTool("get-market-prices");
// 获取The Forge(区域ID: 10000002)的Tritanium(类型ID: 34)的订单
const orders = await callTool("get-market-orders", {
region_id: 10000002,
type_id: 34,
order_type: "all"
});
// 获取The Forge的Tritanium的市场历史
const history = await callTool("get-market-history", {
region_id: 10000002,
type_id: 34
});
// 获取The Forge的Tritanium的分组市场数据
const marketGroups = await callTool("get-market-groups", {
region_id: 10000002,
type_id: 34
});
// 获取结构体ID: 1234567890 的所有市场订单
const structureOrders = await callTool("get-structure-orders", {
structure_id: 1234567890,
page: 1
});
// 获取The Forge的市场统计信息
const marketStats = await callTool("get-market-stats", {
region_id: 10000002
});
// 获取结构体ID: 1234567890 中Tritanium的所有市场订单
const typeOrders = await callTool("get-structure-type-orders", {
structure_id: 1234567890,
type_id: 34,
page: 1
});
esi-markets.structure_markets.v1
esi-markets.read_character_orders.v1
.env
文件中:cp .env.example .env
# 编辑.env文件以设置认证信息
const authUrlResponse = await callTool("get-auth-url", {
state: "unique-state-string"
});
// 将用户重定向到authUrlResponse中的URL
const authResponse = await callTool("authenticate", {
code: "authorization-code-from-callback"
});
// 保存返回的令牌
const refreshResponse = await callTool("refresh-token", {
refresh_token: "saved-refresh-token"
});
// 使用新令牌进行更新
若要访问需要认证的结构体的市场数据:
makeESIRequest
时指定令牌:const structureOrders = await callTool("get-structure-orders", {
structure_id: 1234567890,
page: 1,
token: "your-access-token"
});
page
参数指定特定页面(从1开始)。文档中未提及许可证相关信息。