LMX Cloud LLM Inference

OpenAI-compatible LLM MCP (7 tools); chat via balance key or x402 USDC on Base

我该使用它吗

质量与安全性

A
描述质量
98%
模式完整度
93%
命名质量
91%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

基于对工具定义和协议合规性的自动分析。

上下文开销

~1,508token 数(工具定义)
~1.4 KB典型响应大小
对注意力有中等影响(占 128k 上下文窗口的 1.18%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "mcp-server": {
      "url": "https://mcp.lmxcloud.io/mcp"
    }
  }
}

远程端点

https://mcp.lmxcloud.io/mcpstreamable-http

它能做什么

工具清单

工具(9)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟢get_pricing(api_key)

Fetch current LMX Cloud per-call pricing catalog.

输入模式

{
  "type": "object",
  "properties": {
    "api_key": {
      "type": "string",
      "pattern": "^lmx_[0-9a-f]{32}$",
      "description": "Optional LMX API key (lmx_...). Prefer MCP client Authorization header or env; use this to override per call."
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢quote_price(model, max_tokens, prompt_tokens, api_key)

Estimate USDC cost for a single model call. Uses GET /v1/pricing with model and token params.

输入模式

{
  "type": "object",
  "properties": {
    "model": {
      "type": "string",
      "minLength": 1,
      "description": "Model alias to quote (e.g. llama-3-70b)."
    },
    "max_tokens": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 4096,
      "description": "Optional max completion tokens for the quote."
    },
    "prompt_tokens": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 128000,
      "description": "Optional estimated prompt tokens (default: 1)."
    },
    "api_key": {
      "type": "string",
      "pattern": "^lmx_[0-9a-f]{32}$",
      "description": "Optional LMX API key (lmx_...). Prefer MCP client Authorization header or env; use this to override per call."
    }
  },
  "required": [
    "model"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢list_models(api_key)

List currently supported LMX model aliases and providers.

输入模式

{
  "type": "object",
  "properties": {
    "api_key": {
      "type": "string",
      "pattern": "^lmx_[0-9a-f]{32}$",
      "description": "Optional LMX API key (lmx_...). Prefer MCP client Authorization header or env; use this to override per call."
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_status(api_key)

Fetch LMX Cloud provider health, fallback chain, and anchoring status.

输入模式

{
  "type": "object",
  "properties": {
    "api_key": {
      "type": "string",
      "pattern": "^lmx_[0-9a-f]{32}$",
      "description": "Optional LMX API key (lmx_...). Prefer MCP client Authorization header or env; use this to override per call."
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_balance(api_key)

Fetch USD credit balance for the caller API key. Requires authentication.

输入模式

{
  "type": "object",
  "properties": {
    "api_key": {
      "type": "string",
      "pattern": "^lmx_[0-9a-f]{32}$",
      "description": "Optional LMX API key (lmx_...). Prefer MCP client Authorization header or env; use this to override per call."
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_usage(api_key)

Fetch request and token usage totals for the caller API key. Requires authentication.

输入模式

{
  "type": "object",
  "properties": {
    "api_key": {
      "type": "string",
      "pattern": "^lmx_[0-9a-f]{32}$",
      "description": "Optional LMX API key (lmx_...). Prefer MCP client Authorization header or env; use this to override per call."
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢web_search(query, max_results, api_key)

Real-time web search via LMX (Brave Search passthrough). Fixed per-call USDC price from the caller's API key balance. Returns title/url/snippet results.

输入模式

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "description": "Search query string."
    },
    "max_results": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20,
      "description": "Max results to return (1–20, default 5)."
    },
    "api_key": {
      "type": "string",
      "pattern": "^lmx_[0-9a-f]{32}$",
      "description": "Optional LMX API key (lmx_...). Prefer MCP client Authorization header or env; use this to override per call."
    }
  },
  "required": [
    "query"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢extract_pdf(file_url, file_base64, api_key)

Extract text and light structure (title, headings, page count) from a PDF via LMX pdf-extract. Provide file_url and/or file_base64. Requires a real LMX API key (same gate as web_search).

输入模式

{
  "type": "object",
  "properties": {
    "file_url": {
      "type": "string",
      "minLength": 1,
      "description": "Optional https URL to fetch the PDF from. Provide this and/or file_base64."
    },
    "file_base64": {
      "type": "string",
      "minLength": 1,
      "description": "Optional base64-encoded PDF bytes (raw base64 or data:application/pdf;base64,...). Provide this and/or file_url."
    },
    "api_key": {
      "type": "string",
      "pattern": "^lmx_[0-9a-f]{32}$",
      "description": "Optional LMX API key (lmx_...). Prefer MCP client Authorization header or env; use this to override per call."
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
⚪chat_completion(prompt, image_url, images, model, max_tokens, ...)

Call LMX Cloud OpenAI-compatible chat completions. Prefers a pre-funded API key (Bearer / api_key); when omitted and x402 is enabled, requires a USDC pay-per-call payment. Optional image_url / images enable vision input (OpenAI content-parts format) — use a vision model such as llama-3.2-90b-vision, qwen-3.6-35b, or qwen-3.5-35b.

输入模式

{
  "type": "object",
  "properties": {
    "prompt": {
      "type": "string",
      "minLength": 1,
      "description": "User prompt to send to the selected model."
    },
    "image_url": {
      "type": "string",
      "minLength": 1,
      "description": "Optional image as an https URL or data:image/...;base64,... URI. Requires a vision-capable model."
    },
    "images": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "description": "Optional additional images (https URLs or data:image/...;base64,... URIs). Requires a vision-capable model."
    },
    "model": {
      "type": "string",
      "description": "Optional model name or alias. Uses default if omitted."
    },
    "max_tokens": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 4096,
      "description": "Optional max completion tokens."
    },
    "temperature": {
      "type": "number",
      "minimum": 0,
      "maximum": 2,
      "description": "Optional sampling temperature."
    },
    "api_key": {
      "type": "string",
      "pattern": "^lmx_[0-9a-f]{32}$",
      "description": "Optional LMX API key (lmx_...). Prefer MCP client Authorization header or env; use this to override per call."
    }
  },
  "required": [
    "prompt"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

推荐提示词

search_research
Search for information about [topic] using LMX Cloud LLM Inference
预期工具: web_search
find_specific
Find [specific item] using LMX Cloud LLM Inference
预期工具: web_search
retrieve_data
Get details about [item] from LMX Cloud LLM Inference
预期工具: get_pricing
fetch_info
Fetch [information type] using LMX Cloud LLM Inference
预期工具: get_pricing
list_items
List all [items] available in LMX Cloud LLM Inference
预期工具: list_models

社区

评价此服务器

证据

最近观测

已验证未记录版本9 个工具
已验证未记录版本9 个工具