Inference Predictor MCP Server
MCP server for Inference Predictor by Traction Layer AI — predict LLM inference performance (TTFT, throughput, cost) for any Hardware x Model x Runtime configuration, directly from Claude.
Installation
pip install inference-predictor-mcp
Claude Desktop Configuration
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"inference-predictor": {
"command": "python",
"args": ["-m", "inference_predictor_mcp"]
}
}
}
With a Pro API key (enables compare, optimize, batch-sweep, visualize, SKU listing):
{
"mcpServers": {
"inference-predictor": {
"command": "python",
"args": ["-m", "inference_predictor_mcp"],
"env": {
"KPG_API_KEY": "your-api-key-here"
}
}
}
}
Available Tools
Free Tier (no API key required)
| Tool | Description |
|---|---|
predict_performance |
Predict TTFT, throughput, cost for a single hardware config |
check_hardware_compatibility |
Check which GPUs can fit a model's weights |
explain_model |
Generate educational architecture explainer |
list_models |
List all 18 registered models with parameters |
health_check |
Check API health and version |
Pro Tier (API key required)
| Tool | Description |
|---|---|
compare_configs |
Compare vLLM, SGLang, TensorRT-LLM side-by-side |
find_optimal_hardware |
Search for cheapest/fastest hardware config |
batch_size_sweep |
Sweep batch sizes to find optimal throughput |
visualize_kpg |
Generate interactive Kernel Pipeline Graph |
list_hardware_skus |
List AWS GPU instance SKUs with pricing |
Get a Pro API Key
Visit predictor.tractionlayer.ai to obtain a Pro API key.
Environment Variables
| Variable | Default | Description |
|---|---|---|
KPG_API_BASE_URL |
Production API Gateway | Override for self-hosted deployments |
KPG_API_KEY |
(none) | Pro tier API key |
KPG_TIMEOUT |
30 | HTTP timeout in seconds |
Development
If you're working on both this package and the main KPG_Predictor repo
in the same virtualenv, you may hit a starlette version conflict between
MCP SDK (requires >=1.0.0) and FastAPI (requires <0.49.0). Resolve
by installing MCP first, then explicitly pinning starlette:
pip install -e mcp/
pip install "starlette<0.49.0,>=0.40.0"
End users who only pip install inference-predictor-mcp don't encounter this.
Documentation
Full Inference Predictor documentation: docs/cli.md
Metadata
Release files for inference-predictor-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| inference_predictor_mcp-0.1.0.tar.gz | 6.7 kB | Without provenance | Details for inference_predictor_mcp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| inference_predictor_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for inference_predictor_mcp-0.1.0-py3-none-any.whl |
Total release size: 14.2 kB
Release files / inference_predictor_mcp-0.1.0.tar.gz
| Download URL | inference_predictor_mcp-0.1.0.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
323da3b0d3c37618e4d14bef9dbd71f91a141759487a7710f499a63bcc3da359
|
|
BLAKE2b-256 checksum How to use checksums |
6df3473392c0c644d713b47a809ba222f1111236b82b19bba591f53dcb4f1b20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.1
|
Release files / inference_predictor_mcp-0.1.0-py3-none-any.whl
| Download URL | inference_predictor_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7436d889fabc20dcaaed64703d7fa2ef82a6ccd6dcfa95b86517139eaa99e7f8
|
|
BLAKE2b-256 checksum How to use checksums |
82405e866f8681d8def6dfbb0681e12f6851de22d1c552f3ad3403b737240861
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.1
|
Security for inference-predictor-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.