ApX logoApX logo
CalculatorCoursesPricing
MCP

Model Context Protocol integration

Equip AI assistants with verified GPU sizing data to evaluate cluster deployments, audit memory budgets, and generate infrastructure proposals.

MCP connection guide

Connect your MCP client to the remote Streamable HTTP MCP server endpoint.

Server URL (Streamable HTTP)

https://apxml.com/mcp

Authentication

OAuth 2.0 (Bearer token) or direct account API token generated in Settings.

Client configuration example

{
  "mcpServers": {
    "apxml": {
      "url": "https://apxml.com/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

Streamable HTTP / cURL Smoke Test

Raw HTTP clients must send Accept: application/json, text/event-stream alongside Content-Type: application/json and the Authorization: Bearer header. Echo the Mcp-Session-Id response header from initialize on follow-up tools/list and tools/call requests.

curl -X POST https://apxml.com/mcp \
  -H "Authorization: Bearer <YOUR_TOKEN>" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"curl-test","version":"1.0"}}}'

Tool reference catalog

Once connected, MCP clients gain access to 8 sizing, catalog, and benchmark tools powered by the LLM Performance Engine. Required parameters are marked with *.

Tool nameParameters (type, default, enum)Description
calculate_vram_requirements
llm_key* (string)
gpu_key (string)
calc_mode (string, default: 'inference')'inference' | 'finetuning'
quantization (string, default: 'fp16')
kv_cache_quantization (string)
num_gpus (number, default: 1)
batch_size (number, default: 1)
seq_length (number, default: 2048)
concurrent_users (number)
finetuning_method (string)'full' | 'lora' | 'qlora'
lora_rank (number)
gradient_accumulation_steps (number)
enable_offloading (boolean, default: false)
offload_kv_cache (boolean, default: false)
enable_speculative_decoding (boolean, default: false)
speculative_draft_model_params (number)
shared_prefix_ratio (number)
prefix_cache_scope (string, default: 'cross_user')
num_nodes (number)
gpus_per_node (number)
tp_degree (number)
pp_degree (number)
interconnect_type (string)
inter_node_interconnect (string)
custom_vram (number)
custom_bandwidth (number)
custom_tflops (number)
vocab_size (number)
ffn_intermediate_size (number)
image_width (number)
image_height (number)
num_frames (number)
inference_steps (number)
guidance_scale (number)
encoder_offload (boolean)
vae_tiling (boolean)

Calculates exact memory allocations (weights, KV cache, activations, framework overhead), TPS, TTFT, concurrency SLA, and runtime advisories for inference or fine-tuning.

recommend_hardware_setup
llm_key* (string)
calc_mode (string, default: 'inference')'inference' | 'finetuning'
objective (string, default: 'MIN_HARDWARE_REQUIREMENT')'MIN_HARDWARE_REQUIREMENT' | 'MIN_COST_HOURLY' | 'MAX_THROUGHPUT_TPS' | 'MIN_LATENCY_TTFT' | 'MAX_PER_USER_TPS' | 'MIN_COST_PER_M_TOKENS'
seq_length (number, default: 4096)
batch_size (number, default: 1)
vendor (string, default: 'nvidia')'nvidia' | 'amd' | 'apple' | 'all'
ttft_max_ms (number)
min_per_user_tps (number)

Evaluates Pareto-optimal hardware configurations (GPU model, count, quantization, TP/PP) for an LLM against an optimization objective.

get_available_gpus
gpu_type (string)'discrete' | 'apple_silicon'

Retrieves catalog of supported discrete GPUs and Apple Silicon chips with valid gpu_key values, VRAM capacity, and tier availability.

get_llm_variants
query (string)
provider (string)
open_weights (boolean)
open_source (boolean)
modality (string)'text' | 'image' | 'audio'
architecture (string)'dense' | 'moe'
min_params (number)
max_params (number)
sort (string)'rank' | 'release_date' | 'name' | 'livebench_overall' | 'livebench_coding' | 'livebench_reasoning' | 'aider_coding' | 'mmlu' | 'gpqa' | 'swe_bench_verified' | 'lmsys_elo'
limit (number, default: 20)

Browses and filters supported LLM variants by keyword, provider, architecture, modality, or parameter count.

get_hardware_model_compatibility
hardware_slug_or_key* (string)
seq_length (number, default: 4096)
num_gpus (number, default: 1)
status_filter (string, default: 'runnable')'runnable' | 'all'
limit (number, default: 30)

Evaluates which open-weight models and quantizations run on a hardware device, returning TPS, TTFT, memory pressure status, and training limits.

get_model_evaluations
model_name (string)
provider (string)
sort (string)'livebench_overall' | 'livebench_coding' | 'livebench_reasoning' | 'livebench_mathematics' | 'livebench_average' | 'aider_coding' | 'aider_refactoring' | 'mmlu' | 'mmlu_pro' | 'gpqa' | 'webdev_arena' | 'agent_arena' | 'text_arena'
limit (number, default: 20)

Fetches benchmark evaluation scores (LiveBench, Aider, MMLU, GPQA, Arena) for LLM variants.

search_hardware_directory
query (string)
architecture (string)'apple_silicon' | 'nvidia' | 'amd' | 'intel'
min_memory_gb (number)

Searches the hardware catalog for GPUs and Apple Silicon chips, returning memory, usable VRAM limits, bandwidth, architecture, and exact device slugs.

get_vram_calculator_accuracy
track (string)'memory' | 'inference_speed' | 'finetuning_speed'

Returns engine accuracy metrics and calibration bounds validated against physical hardware telemetry.

Recommended tool workflow

Use discovery tools to resolve exact platform identifiers, or pass model names directly to sizing and planner tools.

Discovery toolOutput fieldPass as parameterTarget tools
get_llm_variantsvariants[].slugllm_key

calculate_vram_requirements, recommend_hardware_setup

get_available_gpusgpus[].keygpu_key

calculate_vram_requirements

search_hardware_directorydevices[].slughardware_slug_or_key

get_hardware_model_compatibility

When a model slug is already known, pass it directly to calculate_vram_requirements or recommend_hardware_setup without calling get_llm_variants first.

Response envelope & key output fields

Every MCP tool returns a JSON envelope with boolean success, object data, optional string error, and optional object metadata fields.

Key data fieldReturned byMeaning & units
memory_status

calculate_vram_requirements

Fit classification: 'okay' for 50% or less, 'moderate' for 75% or less, 'high' for 90% or less, 'very_high' above 90%, 'insufficient' for out of memory, or 'error'.

status

get_hardware_model_compatibility

Per-quantization fit status in the compatibility matrix: 'optimal', 'comfortable', 'upper_bound', or 'oom'.

per_user_tps / estimated_throughput_tps

calculate_vram_requirements, recommend_hardware_setup

per_user_tps is decode speed experienced by a single user in tokens/s; estimated_throughput_tps is aggregate system decode throughput across all concurrent users and batches.

ttft_ms

calculate_vram_requirements, get_hardware_model_compatibility

Estimated time to first token in milliseconds.

concurrency_sla

calculate_vram_requirements

KV-cache saturation metrics including maxConcurrencyBeforePreemption, preemptionRisk, maxSustainableQps, and p50/p95/p99 TTFT.

runtime_advisories

calculate_vram_requirements

Structured advisories with code, severity, and message fields for PCIe KV swapping, prefill starvation, pipeline asymmetry, or quantization emulation.

Plan limits

Supported GPUs, cluster sizes, batch sizes, and concurrent users depend on your subscription plan.

PlanGPU & cluster accessBatch size & concurrency

Basic

Consumer GPUs and baseline hardware, up to 8 nodes × 8 GPUs

Up to 8 batch size and 8 concurrent users

Pro

All datacenter GPUs including H100, H200, B200, and MI300X, plus clusters up to 8 nodes and 8 GPUs per node

Up to 32 batch size and 32 concurrent users

Pro+

All datacenter GPUs and unlimited rack-scale clusters

Unlimited batch size and concurrent users

Enum reference

Valid choices and meanings for constrained tool parameters.

ParameterValueMeaning
calc_modeinference

Model serving memory, throughput, latency, and concurrency.

calc_modefinetuning

Training and fine-tuning memory, optimizer states, and training speed.

objectiveMIN_HARDWARE_REQUIREMENT

Smallest GPU count and cheapest hardware that fits the model.

objectiveMIN_COST_HOURLY

Lowest hourly cloud rental cost.

objectiveMAX_THROUGHPUT_TPS

Highest aggregate system decode tokens per second.

objectiveMIN_LATENCY_TTFT

Lowest time to first token.

objectiveMAX_PER_USER_TPS

Highest single-user decode tokens per second.

objectiveMIN_COST_PER_M_TOKENS

Lowest cost per million generated tokens.

vendornvidia

NVIDIA discrete and datacenter GPUs.

vendoramd

AMD Instinct and Radeon GPUs.

vendorapple

Apple Silicon unified memory systems.

vendorall

Evaluate across all supported hardware vendors.

status_filterrunnable

Only return models that fit without out-of-memory errors.

status_filterall

Return all evaluated models including out-of-memory entries.

trackmemory

VRAM allocation accuracy against physical measurements.

trackinference_speed

Inference TPS and TTFT accuracy.

trackfinetuning_speed

Fine-tuning throughput accuracy.

finetuning_methodfull

Full-parameter fine-tuning updating all model weights.

finetuning_methodlora

Low-Rank Adaptation with frozen base weights.

finetuning_methodqlora

Quantized 4-bit base weights with LoRA adapters.

gpu_typediscrete

PCIe and SXM discrete GPUs.

gpu_typeapple_silicon

Apple Silicon unified memory chips.

Example tool call & response

Sample arguments and response payload for calculate_vram_requirements.

Tool call arguments (calculate_vram_requirements)

{
  "llm_key": "qwen35-9b",
  "gpu_key": "4090_24",
  "calc_mode": "inference",
  "quantization": "q4_k_m",
  "seq_length": 4096,
  "batch_size": 4,
  "concurrent_users": 4
}

Tool response

{
  "success": true,
  "data": {
    "vram_usage": 7.42,
    "vram_percentage": 30.9,
    "memory_status": "okay",
    "per_user_tps": 62.4,
    "estimated_throughput_tps": 249.6,
    "ttft_ms": 145,
    "framework_preset": "llama_cpp",
    "concurrency_sla": {
      "max_concurrency_before_preemption": 24,
      "preemption_risk": "low",
      "p95_ttft_ms": 210.5
    }
  }
}