Skip to main content

MCP Tool Ecosystem

The Model Context Protocol is what makes this gateway more than just an LLM router. Multiple MCP servers can be registered in LiteLLM (all optional, enabled via .env flags). Any model that supports tool use (function calling) can invoke these tools during a conversation, the model decides when and how to use them based on the user's request.

This means you can ask a Groq model to browse a website, take a screenshot, upload it to object storage, and return the public URL ��� and it will orchestrate all of that autonomously through MCP tool calls.

Connecting​

Bearer-key connections need no OAuth registration. For an OAuth-based MCP server or client, configure the browser-facing HTTPS origin and complete authorization in the admin UI. See MCP OAuth and trusted proxy setup.

The gateway exposes a single aggregated MCP endpoint that proxies every active MCP-capable server (which servers are active depends on which .env flags are set. See active_mcp_servers() in litellm/build-config.py):

POST http://localhost:4000/mcp/
Authorization: Bearer $LITELLM_MASTER_KEY
Content-Type: application/json
Accept: application/json, text/event-stream

Each individual service also exposes its own MCP endpoint directly (routed via nginx):

ServerEndpoint
All tools (proxied)http://localhost:4000/mcp/
stealthy-auto-browsehttp://localhost:4000/stealthy-auto-browse/mcp/
hybrids3http://localhost:4000/storage/mcp/
claudeboxhttp://localhost:4000/claudebox/mcp/
pibox-zaihttp://localhost:4000/pibox-zai/mcp/
piboxhttp://localhost:4000/pibox/mcp/
audiollahttp://localhost:4000/audiolla/v1/mcp
audiolla-cudahttp://localhost:4000/audiolla-cuda/v1/mcp
flickieshttp://localhost:4000/flickies/v1/mcp
flickies-cudahttp://localhost:4000/flickies-cuda/v1/mcp
telethonhttp://localhost:4000/telethon/mcp
predictalothttp://localhost:4000/predictalot/mcp
predictalot-cudahttp://localhost:4000/predictalot-cuda/mcp
decidealothttp://localhost:4000/decidealot/mcp
decidealot-cudahttp://localhost:4000/decidealot-cuda/mcp
mailboxhttp://localhost:4000/mailbox/mcp
mcp_toolsvia LiteLLM aggregation only (no direct nginx route)
# list all available MCP tools
curl -X POST http://localhost:4000/mcp/ \
-H "Authorization: Bearer $LITELLM_MASTER_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

stealthy_auto_browse (BROWSER=1)​

Stealth browser automation. All interactions are undetectable by bot detection systems (passes Cloudflare, CreepJS, BrowserScan, Pixelscan).

run_script​

Execute a multi-step browser automation script. Takes a steps array where each step is a browser action. All steps execute sequentially on the same replica in a single round-trip, no LiteLLM overhead between steps.

Available actions (each is one step within run_script):

ActionDescription
gotoNavigate to a URL
get_textExtract all visible text from the current page (up to 10,000 chars)
get_htmlGet the full HTML source of the current page
get_interactive_elementsFind all clickable/interactive elements with their viewport coordinates
screenshotCapture the browser viewport or full desktop as PNG
system_clickClick at specific viewport coordinates using OS-level mouse input
system_typeType text using OS-level keyboard input
send_keySend a keyboard key (enter, tab, escape, arrow keys, etc.)
clickClick a CSS selector
fillFill a form field by CSS selector
scrollScroll the page up/down
mouse_moveMove the mouse to specific coordinates
wait_for_elementWait for a CSS selector to appear on the page
wait_for_textWait for specific text to appear on the page
eval_jsExecute JavaScript in the browser context
browser_actionPerform browser-level actions (back, forward, refresh)

Usage notes​

  • Browser sessions are sticky. Each MCP session is pinned to one replica by Mcp-Session-Id header. Maintain session continuity across tool calls within a conversation.
  • system_click / system_type use OS-level input simulation (PyAutoGUI), completely undetectable, as they bypass CDP entirely.
  • For page parsing, get_interactive_elements returns coordinates alongside element metadata, so you can click by coordinates instead of guessing CSS selectors.
  • The same actions are also available individually via the browser REST API at /stealthy-auto-browse/. See the browser service page for REST API examples.

hybrids3 (HYBRIDS3=1)​

Object storage operations. Upload, download, list, and manage files in storage buckets. The uploads bucket is public-read (downloads need no auth), but all writes require the bucket key via auth_key.

ToolAuth requiredDescription
upload_objectbucket key or master keyUpload text or base64-encoded binary. MIME type auto-detected if not specified.
download_objectpublic bucket: none; private: bucket keyDownload object content. Returns text or base64 binary. Max 50 MB via MCP.
delete_objectbucket key or master keyDelete an object.
list_objectspublic bucket: none; private: bucket keyList objects with optional prefix filter. Max 1000 results.
list_bucketsmaster key (all) or bucket key (own only)List configured buckets.
object_infopublic bucket: none; private: bucket keyGet metadata (size, content type, ETag, expiry) without downloading.
presign_urlbucket key or master keyGenerate a shareable URL. Plain URL for public buckets, signed+expiring for private ones.

Auth in tool calls​

Each tool accepts an auth_key parameter, the bucket's private key or the master key. For the uploads bucket (public-read), reads need no auth_key. Writes always need it.

# example: upload via MCP
upload_object(bucket="uploads", key="images/photo.png", content="<base64>", auth_key="$HYBRIDS3_UPLOADS_KEY")

# example: public download, no auth needed
download_object(bucket="uploads", key="images/photo.png")

# example: generate presigned URL for a private object
presign_url(bucket="private-data", key="report.pdf", auth_key="$HYBRIDS3_MASTER_KEY", expires=3600)

claudebox (CLAUDEBOX=1)​

Agentic Claude Code backed by your Claude subscription or Anthropic API key. Each tool call runs through Claude Code's full agentic loop. It can read/write files, run shell commands, install packages, browse the web, and use tools within an isolated workspace. This is not a text generation call; it is a full agentic execution.

ToolDescription
claude_runRun a prompt through Claude Code's full agentic loop. Returns the result text, session ID, token usage, and cost.
read_fileRead a file from the workspace.
write_fileWrite content to a file in the workspace (parent directories created automatically).
list_filesList files and directories in the workspace.
delete_fileDelete a file from the workspace.

claude_run parameters​

ParameterTypeDescriptionDefault
promptstringThe prompt to send to Claude Code(required)
workspacestringWorkspace subpath (e.g., myproject) for isolationdefault workspace
modelstringhaiku, sonnet, opus, or full model nameaccount default
system_promptstringReplace the default system prompt entirely(none)
append_system_promptstringAppend to the default system prompt without replacing it(none)
json_schemastringJSON Schema string, Claude returns JSON matching this schema(none)
effortstringReasoning effort: low, medium, high, max(none)
no_continueboolStart a fresh session instead of continuing the previous onefalse
resumestringResume a specific session by session ID(none)

Workspace isolation​

Each workspace value gets its own directory, file context, and conversation history. A workspace can only run one Claude process at a time, concurrent claude_run calls to the same workspace return an error. Use different workspace names for parallel work.

# safe: parallel execution in different workspaces
claude_run(prompt="analyze data.csv", workspace="data-analysis")
claude_run(prompt="write tests", workspace="test-gen")

# conflict: both calls hit the same workspace at the same time → one will error
claude_run(prompt="task A", workspace="shared")
claude_run(prompt="task B", workspace="shared") # 409 if first is still running

pibox_zai (PIBOX_ZAI=1)​

pi-coding-agent wrapped by pibox and pointed at z.ai's Anthropic-compatible API (GLM models). Same agentic capabilities and workspace-scoped file operations as claudebox, plus a /files/* CRUD API. Use this when you want agentic execution without touching your Claude subscription or API key budget.

The pibox-zai instance runs in a separate container, workspaces are not shared with claudebox.

pibox (PIBOX=1)​

The same agent, pointed back at this stack's own LiteLLM instead of an outside provider. Every model in /v1/models becomes an agent backend, so a local Ollama or vLLM model can run the loop with no provider account. Set PIBOX_MODELS to models you have enabled that can call tools, and keep claudebox-* and pibox-* out of that list, because they route back into an agent and recurse.

It runs in its own container with its own workspace, shared with neither claudebox nor pibox-zai.

mcp_tools (auto-enabled with image/TTS/search providers)​

Media generation and web search tools. Auto-enabled when any image, TTS, or search provider is active (HuggingFace, OpenAI, talkies, IMAGIES, SearXNG). Discovers available models dynamically from LiteLLM at startup, tool descriptions include the list of available models and defaults. Auth via MCP_TOOLS_AUTH_TOKEN.

Image and TTS tools return structured JSON with all parameters used and a persistent URL to the result file (uploaded to HybridS3). No base64 blobs are sent to the LLM.

ToolDescription
generate_imageGenerate an image from a text prompt. Returns JSON with prompt, model, size, and url (or urls + revised_prompt for OpenAI models).
generate_ttsGenerate speech audio from text. Returns JSON with text, model, voice, speed, and url.
search_webSearch the web via SearXNG (aggregates Google, Bing, DuckDuckGo, Wikipedia). Returns JSON with a results array of title, url, snippet, engine. Only available when SEARXNG=1.

generate_image parameters​

ParameterTypeDescriptionDefault
promptstringText description of the image to generate(required)
modelstringWhich image model to use (listed in tool description)first available (prefers hf-flux-schnell)
sizestringImage dimensions (e.g. 1024x1024)1024x1024

generate_tts parameters​

ParameterTypeDescriptionDefault
textstringText to convert to speech(required)
modelstringWhich TTS model to use (listed in tool description)first available (prefers local-talkies-cuda-kokoro-tts, then local-talkies-kokoro-tts)
voicestringVoice to useaf_heart
speednumberSpeech speed multiplier1.0

search_web parameters​

ParameterTypeDescriptionDefault
querystringSearch query(required)
num_resultsintMaximum number of results to return10

Error handling​

If an invalid model is requested, the tool returns an error JSON with the list of available models:

{"error": "Model 'nonexistent' not available", "available_models": ["hf-flux-schnell"]}

Telegram client (TELETHON=1)​

MCP server backed by docker-telethon-plus. Gives any function-calling model full Telegram client access. Read and send messages, manage groups, forward files.

Requires TELETHON_API_ID, TELETHON_API_HASH, and TELETHON_SESSION in .env. See the Telethon service page for setup.

All chat references accept: @username, phone number, t.me/... link, or numeric ID as a string.

Tools​

ToolDescription
get_meReturn the authorized account profile
get_entityResolve a chat reference to a profile
send_messageSend a text message to a chat
get_messagesRead recent messages from a chat (newest first)
get_dialogsList your dialogs (chats, groups, channels)
forward_messagesForward one or more messages between chats
delete_messagesDelete messages by ID
edit_messageEdit a message you sent
mark_readMark messages in a chat as read
send_fileDownload a file from an HTTPS URL and send it to a chat
get_participantsList members of a group or channel
create_groupCreate a new supergroup or broadcast channel
delete_chatDelete a supergroup or channel you own
join_chatJoin a public channel or supergroup
leave_chatLeave a channel or supergroup

predictalot, Time-series forecasting (PREDICTALOT=1 or PREDICTALOT_CUDA=1)​

MCP server backed by docker-predictalot. Exposes five foundation forecasters across six forecast types: univariate, multivariate, covariates_past, covariates_future, covariates_both, samples. A model only has a tool under a type if it implements that modality (e.g. timesfm-2.5 only appears under univariate; chronos-2 is the only covariates_future member).

Predictalot exposes tabular ML through REST at /predictalot/v1/tabular/*. See how to train a classifier and forecast. The MCP tools cover forecasting and unloading models.

27 tools total: three forecasting families plus one lifecycle tool:

  • forecast_<type>_<model>, single-model forecast for a specific (type, model) cell. 18 of these (5+3+2+1+1+2 across types).
  • forecast_<type>_ensemble, per-type weighted-mean ensemble across all the type's members. 6 of these.
  • list_<type>_models, per-type listing of member slugs + loaded/unloaded status. 6 of these.
  • unload_models (upstream v1.2.0): releases every resident foundation model and its Torch and CUDA memory. Fails while a forecast is running.

Naming convention: model slug dashes/dots become underscores (sundial-base-128m → sundial_base_128m, timesfm-2.5 → timesfm_2_5). Each forecast_<type>_<model> argument shape mirrors the HTTP body flattened to kwargs:

  • quantile types: context, horizon, quantile_levels=None, context_length=None, unload=False (covariate variants add past_covariates and/or future_covariates).
  • samples type: context, horizon, num_samples=None, context_length=None, unload=False.
  • forecast_<type>_ensemble: same as the per-model tool minus model, plus weights: dict[str, float] | None = None. Weight 0 disables that member; omitted entries default to 1.

See the predictalot service page for per-model trade-offs and accuracy benchmarks.

Tools by forecast type​

TypePer-model toolsEnsembleListing
univariateforecast_univariate_chronos_2, forecast_univariate_timesfm_2_5, forecast_univariate_moirai_2, forecast_univariate_toto_1, forecast_univariate_sundial_base_128mforecast_univariate_ensemblelist_univariate_models
multivariateforecast_multivariate_chronos_2, forecast_multivariate_moirai_2, forecast_multivariate_toto_1forecast_multivariate_ensemblelist_multivariate_models
covariates_pastforecast_covariates_past_chronos_2, forecast_covariates_past_moirai_2forecast_covariates_past_ensemblelist_covariates_past_models
covariates_futureforecast_covariates_future_chronos_2forecast_covariates_future_ensemblelist_covariates_future_models
covariates_both (past + future)forecast_covariates_both_chronos_2forecast_covariates_both_ensemblelist_covariates_both_models
samples (raw paths)forecast_samples_toto_1, forecast_samples_sundial_base_128mforecast_samples_ensemblelist_samples_models

Via LiteLLM's /mcp/ aggregator each tool is prefixed predictalot- (e.g. predictalot-forecast_univariate_chronos_2). Direct calls to /predictalot/mcp see the raw, unprefixed names.

Common args​

ArgTypeDescriptionDefault
contextlist[list[float]]One inner list per series (single-series = [[...]])(required)
horizonintSteps into the future to forecast(required)
quantile_levelslist[float]Subset of {0.1, 0.2, ..., 0.9}[0.1, 0.5, 0.9]
context_lengthintMax history points to feed the model (per-model defaults differ)per-model
unloadboolTear the model down after this call to free RAM/VRAMfalse

forecast_ensemble additionally accepts a weights: {slug: float} map, weight 0 disables a model, omitted entries default to 1.0.


decidealot: typed decisions (DECIDEALOT=1 or DECIDEALOT_CUDA=1)​

MCP server backed by decidealot. It runs local Laya, Von, CLM, or hosted TypeSafe Jev against a state and returns typed answers with model probabilities. The tools share the request contract, model supervisor, body limit, and bearer auth with the REST API, and return the same bodies as structured output.

ToolArgumentsDescription
system_onemodel, state, questionsRun one decision. questions maps a name to a question typed choice (named criteria, returns the picked key and a probability per key), score (ordered criteria array, returns the position), or noul (returns a probability between 0 and 1).
system_one_batchrequestsRun independent complete System One requests and return results in input order.
list_modelsnoneThe accepted model selectors, same catalog as GET /v1/models.
unload_modelsnoneRelease the resident model and its Torch memory.

Model selectors: laya / laya-auto / laya-latest pick the English or multilingual checkpoint from the input script, laya-english and laya-multilingual pin one, laya-typed-decisions targets repeated structured decisions, and von / von-latest / von-1.1 run the English-only Von model for short, well-posed questions. clm / clm-latest / clm-0.1 use Contrastive-LM through AIGate's internal Qwen3-8B embeddings route. All three local providers are enabled by default; make run-bg starts the required CUDA encoder. Set DECIDEALOT_CLM_ENABLED=false to disable it. With DECIDEALOT_TYPESAFE_API_KEY set, list_models also returns the account's live TypeSafe Jev selectors. One local provider is resident by default; switching waits for active work and swaps it.

Via LiteLLM's /mcp/ aggregator the tools are prefixed decidealot- (CPU) and decidealot_cuda- (CUDA), for example decidealot-system_one. Direct calls to /decidealot/mcp see the raw names. See the decidealot service page for request and response examples.


Mailbox (MAILBOX=1)​

MCP server backed by docker-mailbox. Flat tool set across all configured accounts, every per-account tool takes a mailbox argument (name or address). Same bearer/HTTP wire shape, one MCP catalog regardless of how many inboxes are configured.

See the mailbox service page for the full setup (config schema, credentials handling, host bind-mount).

Tools​

ToolDescription
mailboxesList configured accounts + their IMAP/SMTP capabilities
inboxUnified inbox across all accounts (or a filtered subset)
list_messagesList messages in a specific account/folder
get_messageFetch a single message (headers + body; optional reader mode strips HTML)
searchSearch a mailbox by header/body terms
sendSend a message via the account's SMTP
mark_seenFlag messages as read
mark_unseenFlag messages as unread
moveMove messages between folders
deleteMove messages to Trash; permanent deletion requires explicit authorization and server support

The current Mailbox catalog also includes replies, draft management, raw messages, attachments, identities, threads, labels and audit queries. Token scopes and mailbox restrictions filter the exposed tools. Reads do not mark mail seen. Query tools/list for the exact catalog available to the configured credential. See the Mailbox service page for migration requirements.

Common args​

ArgTypeDescriptionDefault
mailboxstr or list[str]Account name (from config) or address. List = multi-account scope(required for per-account tools)
folderstrIMAP folder nameINBOX
limitintMax messages to return50
unseenboolOnly unseen messagesfalse
fromstrFilter by senderUnset
readerboolStrip HTML body to clean text/markdown (html2text)false

See the docker-mailbox README for the full per-tool parameter shape, including send's to/cc/bcc/subject/body/attachments and bulk-update semantics.


flickies, Video toolkit (FLICKIES=1 or FLICKIES_CUDA=1)​

MCP server backed by docker-flickies. Sibling of audiolla (audio) and talkies (speech), lipsync, face restore, and ffmpeg ops behind one wire format.

11 tools, three families:

  • Lipsync. lipsync. Engines: latentsync-1.5 (Apache-2.0, CUDA-only, ~8 GB VRAM, default), wav2lip / wav2lip-gan (LRS2 non-commercial, gated on FLICKIES_ENABLE_NONCOMMERCIAL=1).
  • Face restore. restore. Engine: gfpgan (GFPGAN v1.4, Apache-2.0, CUDA-only). Chains after Wav2Lip to fix the soft 96×96 mouth crop, or stand-alone on any video.
  • ffmpeg ops (CPU, no GPU needed), trim, concat, transcode (mp4 / mov / webm / gif + fps + codec change), scale, mux_audio, extract_audio, thumbnail_grid.
  • Info. info (ffprobe metadata), list_engines (configured engines + load state).

Same JSON-body contract as audiolla, every tool takes a request body; the only multipart route is PUT /v1/files/{path} for staging raw bytes. Video-producing tools require output_path (server stages under ${DATA_DIR_FLICKIES}/files, fetch via GET /v1/files/<path>) XOR output_url (server PUTs to a presigned URL). Input is file_path (FILES_DIR-relative, after staging) XOR file_url (server fetches, subject to FLICKIES_ALLOW_PRIVATE_FETCH).

Via LiteLLM's /mcp/ aggregator each tool is prefixed flickies- (e.g. flickies-lipsync) on the CPU variant and flickies_cuda- on the CUDA variant. Direct calls to /flickies/v1/mcp/ see the raw, unprefixed names.

Hot-swap eviction: one engine resident at a time per container, different model requested → current model evicted. Idle longer than FLICKIES_IDLE_UNLOAD_SECS (default 600) → unloaded by the sweeper.

ToolDescription
list_enginesConfigured engines + their loaded/unloaded state + license posture
infoffprobe metadata, duration, codec, fps, dimensions, bitrate
lipsyncSync mouth to new audio (LatentSync 1.5 default, Wav2Lip / -GAN behind the noncommercial gate)
restoreGFPGAN face restoration, sharpens / de-blurs faces frame-by-frame
transcodeCodec / format / fps / bitrate change. Handles gif output.
trimCut by start_sec / end_sec
concatConcatenate N inputs (re-encode or stream copy)
scaleResize to target W × H
mux_audioReplace or overlay the audio track on a video
extract_audioStrip audio to a standalone file (any codec ffmpeg supports)
thumbnail_gridTiled grid of evenly-spaced thumbnails

See the docker-flickies README for the full per-tool parameter shape and the canonical openapi.yaml.