Getting the LiteLLM proxy and MCP gateway running: the steps that work today A developer documented nine configuration failures encountered while setting up LiteLLM 1.110.1 and 1.111.0, publishing a corrected quickstart for running the proxy on port 4000 and the MCP gateway against HTTP, SSE and stdio servers. The writeup notes that the proxy now refuses to start without a master key, that the documented Hugging Face starcoder model is no longer served, and that stdio MCP servers stay disabled unless LITELLM_ENABLE_MCP_STDIO is set, with only a single startup warning as notice. I installed LiteLLM 1.110.1 on the day it came out and followed the CLI quickstart and the MCP gateway page exactly as written. The proxy had changed faster than the docs. A master key is now required, a few sample requests predate that, and the example model is gone upstream. I hit nine walls before everything worked. This post is the version of the quickstart I wish I'd had. Each step is the one that works today. Where the docs say something different, there's a note on what you'll see if you follow them, so you can recognise the error when you hit it. Tested on: LiteLLM 1.110.1 19 Nov 2026 and again on 1.111.0 28 Nov 2026 . macOS, Python 3.12. Every command below was run on 1.111.0. You'll end up with: the LiteLLM proxy on port 4000, a working chat request, and the MCP gateway serving tools from an HTTP server, an SSE server and a stdio server. python3 -m venv .venv && source .venv/bin/activate pip install 'litellm proxy ' export LITELLM MASTER KEY="sk-$ openssl rand -hex 32 " The proxy now refuses to start without one. The CLI quickstart doesn't mention it, so the first command on the page exits with: LiteLLM proxy refused to start: no master key is set The error itself is good. It tells you exactly what to run. Don't use sk-1234 . It's the sample key in a lot of older LiteLLM examples, and the proxy rejects it on purpose as "a publicly known default". Generate a real one. With an OpenAI key: export OPENAI API KEY="sk-..." litellm --model gpt-4o-mini Or with no API key at all, using a local model through Ollama https://ollama.com : ollama pull llama3.2:3b litellm --model ollama/llama3.2:3b The quickstart uses huggingface/bigcode/starcoder . Hugging Face's router doesn't serve that model any more, so the request comes back as: litellm.AuthenticationError: HuggingfaceException ... followed by about 300 lines of HTML. That HTML is the huggingface.co home page. It's labelled as an auth error, so you'll probably start checking your Hugging Face token, like I did. The token is fine. The model is gone. curl http://0.0.0.0:4000/v1/chat/completions \ -H "Authorization: Bearer $LITELLM MASTER KEY" \ -H "Content-Type: application/json" \ -d '{"model": "gpt-4o-mini", "messages": {"role": "user", "content": "Say hi"} }' Use "model": "ollama/llama3.2:3b" if you started with Ollama. The curl on the quickstart page has no Authorization header, and the OpenAI Python sample passes api key="anything" . Both were written before the master key was required, and both now return: {"error":{"message":"Authentication Error, No api key passed in."}} In Python, pass the real key: python import os from openai import OpenAI client = OpenAI api key=os.environ "LITELLM MASTER KEY" , base url="http://0.0.0.0:4000" print client.chat.completions.create model="gpt-4o-mini", messages= {"role": "user", "content": "Say hi"} , .choices 0 .message.content Skip litellm --test . The page tells you to run it in a second shell. Without an argument it crashes with ValueError: Invalid test value . --help says it takes a URL, but litellm --test http://0.0.0.0:4000 gives Unknown command: http://0.0.0.0:4000 , because click reads the URL as a command instead of the option's value. The curl above does the same job. I used three kinds of MCP server: DeepWiki over streamable HTTP the one the docs use , the official filesystem server over stdio, and a small SSE server I wrote with the mcp SDK, so I could check the SSE path against something I controlled. export LITELLM ENABLE MCP STDIO=true Without this, stdio servers are disabled. The proxy logs one warning at startup: MCP server 'fs mcp' will not start: stdio MCP servers are disabled on this proxy. After that, nothing else tells you. The server is missing from the tool list, and GET /v1/mcp/server shows "status": null for it, the same as for the servers that work. The docs say a disabled stdio server is reported as unhealthy. It isn't. If a stdio server's tools are missing, check this flag before you debug the server. transport model list: - model name: gpt-4o-mini litellm params: model: openai/gpt-4o-mini api key: os.environ/OPENAI API KEY mcp servers: deepwiki mcp: url: "https://mcp.deepwiki.com/mcp" transport: "http" my sse server: url: "http://localhost:8001/sse" transport: "sse" required: the default is http fs mcp: transport: "stdio" command: "npx" args: "-y", "@modelcontextprotocol/server-filesystem", "/tmp" litellm settings: mcp aliases: deepwiki: deepwiki mcp must match a key under mcp servers exactly litellm --config config.yaml Two lines in that file are there because of the docs. transport: "sse" . The Zapier example on the MCP page is a URL ending in /sse , with the comment SSE Server and no transport key. The same page says transport "defaults to http in config.yaml ". Both are true, and together they break. With no transport, the proxy talks HTTP to the SSE server and logs: php POST http://localhost:8001/ - HTTP 405 The server's tools never show up, and calling one returns Tool ping not found . Adding transport: "sse" fixes it. The alias target. The page's mcp aliases example maps deepwiki to deepwiki mcp server , but the DeepWiki server defined on the same page is called deepwiki mcp . If you copy both, requests using the alias fail with a 403: The key is not allowed to access the requested MCP servers: deepwiki That reads like a permissions problem, so I went through key settings first. The real problem is that the alias points at a server that doesn't exist, and nothing warns you at startup. If you see this error, put the alias target and the server name side by side. Over REST: curl http://0.0.0.0:4000/mcp-rest/tools/list \ -H "x-litellm-api-key: Bearer $LITELLM MASTER KEY" With the config above this returns 20 tools: 3 from DeepWiki, 1 from the SSE server and 16 from the filesystem server. The Bearer prefix is optional on this header. Both forms work. To get one server's tools over REST, add ?server id=deepwiki mcp . The x-mcp-servers header doesn't filter this endpoint. It does filter the MCP endpoint at /mcp , where x-mcp-servers: deepwiki the alias returns only DeepWiki's three tools. There the tool names are prefixed with the alias, as in deepwiki-read wiki structure . server id curl http://0.0.0.0:4000/mcp-rest/tools/call \ -H "x-litellm-api-key: Bearer $LITELLM MASTER KEY" \ -H "Content-Type: application/json" \ -d '{"name": "read wiki structure", "server id": "deepwiki mcp", "arguments": {"repoName": "BerriAI/litellm"}}' This returns the table of contents of LiteLLM's own DeepWiki. server id takes the server name or the alias, and it's required on this endpoint, even if you use a prefixed tool name. I tested the gateway directly, over REST and the /mcp endpoint, because that's where the config and docs problems were. I didn't put a model in the loop with /v1/responses and server url: "litellm proxy" . Doing that with the Ollama model from step 2 is next. Found on 1.110.1 and re-checked on 1.111.0 against the docs as of 28 Nov 2026. Each is a small docs change, and a few have a product fix that would have saved me the most time. LITELLM MASTER KEY . export line above the start command. sk-1234 from older examples is rejected as a known default. Authorization: Bearer $LITELLM MASTER KEY . litellm --test fails with and without a URL. gpt-3.5-turbo routing to starcoder, since that alias is never set up. huggingface/bigcode/starcoder is gone upstream. transport: "sse" . Product: warn at startup when a URL ends in /sse and transport is http . mcp aliases example points at a server name the page never defines, and the error blames the key. "status": null , like a working server. Report it as disabled , as the docs say. Already fixed: on 19 Nov, the REST docs said server id was optional with a prefixed tool name, but the endpoint required it. The REST page now lists server id as required, so the docs and the endpoint agree. Once I got past these, the gateway was solid. Most of the fixes are one line each.