mcp

v0.5.1
@offrouter/mcp Checked 4 days ago Published 2 days ago

MCP server and private mode for coding agents on OffRouter private inference.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_models List models

List the private models on OffRouter with their context length and price in USD per million tokens. Use it to find a model id for ask or compare.

ParameterTypeDescription
searchstringFilter on the model id, like "qwen" or "deepseek".

ask Ask a private model

Send a prompt to an OffRouter model and get the answer back, optionally with images (screenshots, diagrams, scans) for a model that reads them. It runs inside a GPU TEE and is not logged, so it is a good fit for sensitive material, a second opinion, or cheap bulk work.

ParameterTypeDescription
model *stringModel id from list_models, like "gemma-4-31b".
prompt *stringThe user message.
imagesarrayUp to 4 images for a model that reads them (list_models marks them "reads image"): local file paths, http(s) URLs or data URLs. PNG, JPEG, WebP or GIF, up to 8 MB each. They are read on this machine a…
max_tokensintegerCap on output tokens. Reasoning models need a generous budget.
systemstringOptional system prompt.
temperaturenumber

compare Compare models

Run the same prompt on 2 to 4 models in parallel and get every answer with its cost side by side.

ParameterTypeDescription
models *arrayModel ids from list_models.
prompt *stringThe user message.
imagesarrayUp to 4 images for a model that reads them (list_models marks them "reads image"): local file paths, http(s) URLs or data URLs. PNG, JPEG, WebP or GIF, up to 8 MB each. They are read on this machine a…
max_tokensintegerCap on output tokens. Reasoning models need a generous budget.
systemstringOptional system prompt.

generate_image Generate an image

Generate images from a text prompt on a private OffRouter image model. It runs inside a GPU TEE and nothing is stored. Priced per image (see list_models). The images come back inline and are saved as files, whose paths are returned. Image models do not take end to end encryption yet, so the prompt reaches the gateway in the clear.

ParameterTypeDescription
prompt *stringWhat to draw.
modelstringImage model id from list_models, like "flux-2-klein". Defaults to the first one.
nintegerHow many images, 1 by default.
save_dirstringFolder to save the images in. Defaults to OFFROUTER_IMAGE_DIR, or a temp folder.
sizestringWIDTHxHEIGHT, each side a multiple of 16 from 256 to 2048. Defaults to 1024x1024.

web_fetch Private page fetch

Read a web page privately, as clean text. The page is fetched from inside an OffRouter enclave, so the site sees the enclave, never this machine; no cookies or referrer are sent. The URL and the page are encrypted end to end. Works on HTML, text, JSON and XML. Costs one flat price per page.

ParameterTypeDescription
url *stringThe http or https page to read.
linksbooleanAlso list the links on the page.
max_charsintegerMost characters of text to return. Default 20000.

transcribe_audio Transcribe audio

Turn a recording (a voice note, a meeting, a call) into text on a private speech model inside a GPU TEE. Takes a local audio file or an http(s) URL, up to 25 MB: mp3, wav, m4a, ogg, webm or flac. Priced per minute (see list_models). Audio is not end to end encrypted: it reaches the gateway in the clear on its way to the TEE, and nothing is kept.

ParameterTypeDescription
file *stringPath to a local audio file, or an http(s) URL.
languagestringThe spoken language as an ISO-639-1 code, like "en". Detected when left out.
modelstringSpeech model id from list_models. Defaults to whisper-large-v3.
promptstringNames, terms or spellings to expect, to help the model.
timestampsbooleanAlso return timed segments (whisper-large-v3 only).

embed Embed texts

Turn texts into embedding vectors on a private model inside a GPU TEE, and see how similar they are to each other. The vectors are saved to a JSON file whose path is returned, so they do not flood the conversation. Use it to compare passages, find near duplicates, or build a small search index. Not end to end encrypted: the texts reach the gateway in the clear on their way to the TEE, and are not kept.

ParameterTypeDescription
texts *arrayThe texts to embed, in order.
modelstringEmbedding model id from list_models. Defaults to the first one.
save_pathstringWhere to save the vectors as JSON. Defaults to a file in the temp folder.

rerank Rerank documents

Order documents by how well they answer a query, with a relevance score each, on a private rerank model inside a GPU TEE. Good for picking the passages that matter out of search results, files or notes before asking a model about them. Not end to end encrypted: the query and documents reach the gateway in the clear on their way to the TEE, and are not kept.

ParameterTypeDescription
documents *arrayThe documents to score, in any order.
query *stringWhat you are looking for.
modelstringRerank model id from list_models. Defaults to the first one.
top_nintegerOnly return the best this many.

account Account

Show how this server pays for calls: the prepaid key balance and recent spend, the wallet address and per call cap, or what is left on the free demo.

verify_enclave Verify the enclave

Check the enclave right now from this machine: the Intel TDX quote, that the report is fresh, and that it booted the published code. Returns the key prompts are encrypted to.

list_agents List Studio agents

List the agents published on OffRouter Studio, newest first: what each does, its model and tools, how its runs have gone, and whether it has earned a ready standing. Each runs privately in a TEE with its own wallet.

ParameterTypeDescription
ready_onlybooleanOnly agents that passed their evaluation and have run well for a day.
searchstringFilter on the name or purpose, like "trading" or "news".

get_agent Get a Studio agent

Show one Studio agent in full: its purpose, example tasks, latest evaluation, standing, wallet and config hash.

ParameterTypeDescription
id *stringThe agent id from list_agents, 0x followed by 32 hex characters.