MCPサーバー

LMX Cloud LLM Inference

io.lmxcloud/mcp-server
AI・エージェント クラウド・インフラ 公開・接続可能 MCP 2025-11-25

このMCPでできること

Provides hosted OpenAI-compatible LLM chat inference, vision inputs, PDF extraction, model discovery, pricing, usage, and optional real-time web search.

chat_completion
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', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['prompt'], 'properties': {'model': {'type': 'string', 'description': 'Optional model name or alias. Uses default if omitted.'}, 'images': {'type': 'array', 'items': {'type': 'string', 'minLength': 1}, 'description': 'Optional additional images (https URLs or data:image/...;base64,... URIs). Requires a vision-capable model.'}, 'prompt': {'type': 'string', 'minLength': 1, 'description': 'User prompt to send to the selected model.'}, '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.'}, 'image_url': {'type': 'string', 'minLength': 1, 'description': 'Optional image as an https URL or data:image/...;base64,... URI. Requires a vision-capable model.'}, 'max_tokens': {'type': 'integer', 'maximum': 4096, 'description': 'Optional max completion tokens.', 'exclusiveMinimum': 0}, 'temperature': {'type': 'number', 'maximum': 2, 'minimum': 0, 'description': 'Optional sampling temperature.'}}, 'additionalProperties': False}
extract_pdf
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', '$schema': 'http://json-schema.org/draft-07/schema#', '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.'}, '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.'}}, 'additionalProperties': False}
get_balance
Fetch USD credit balance for the caller API key. Requires authentication.
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', '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}
get_pricing
Fetch current LMX Cloud per-call pricing catalog.
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', '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}
get_status
Fetch LMX Cloud provider health, fallback chain, and anchoring status.
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', '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}
get_usage
Fetch request and token usage totals for the caller API key. Requires authentication.
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', '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}
list_models
List currently supported LMX model aliases and providers.
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', '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}
quote_price
Estimate USDC cost for a single model call. Uses GET /v1/pricing with model and token params.
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['model'], 'properties': {'model': {'type': 'string', 'minLength': 1, 'description': 'Model alias to quote (e.g. llama-3-70b).'}, '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.'}, 'max_tokens': {'type': 'integer', 'maximum': 4096, 'description': 'Optional max completion tokens for the quote.', 'exclusiveMinimum': 0}, 'prompt_tokens': {'type': 'integer', 'maximum': 128000, 'description': 'Optional estimated prompt tokens (default: 1).', 'exclusiveMinimum': 0}}, 'additionalProperties': False}
web_search
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', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['query'], 'properties': {'query': {'type': 'string', 'minLength': 1, 'description': 'Search query string.'}, '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.'}, 'max_results': {'type': 'integer', 'maximum': 20, 'minimum': 1, 'description': 'Max results to return (1â\x80\x9320, default 5).'}}, 'additionalProperties': False}
追加
chat_completion
2026年9月17日12:53
追加
extract_pdf
2026年9月17日12:53
追加
web_search
2026年9月17日12:53
追加
get_usage
2026年9月17日12:53
追加
get_balance
2026年9月17日12:53
追加
get_status
2026年9月17日12:53
追加
list_models
2026年9月17日12:53
追加
quote_price
2026年9月17日12:53
追加
get_pricing
2026年9月17日12:53