Ollama / vLLM Bridge
v1.0.7Call your local Ollama or vLLM model over MCP with schema-validated JSON output
Values you need
| Variable | What it is | |
|---|---|---|
LOCAL_BACKEND | optional | Backend to use: ollama, vllm or openai Default: ollama |
LOCAL_HOST | optional | Model endpoint URL; must be local or on your own network. Required for the openai backend |
LOCAL_API_KEY | optional secret | Optional bearer token, openai backend only; sent as a header, never logged |
LOCAL_TIMEOUT | optional | Read timeout in seconds Default: 600 |
LOCAL_EMBED_MODEL | optional | Default embedding model Default: nomic-embed-text |
LOCAL_EMBED_PATH | optional | Optional, openai backend only: embedding endpoint path Default: /v1/embeddings |
LOCAL_SCHEMA_MODE | optional | Optional, openai backend only: auto, response_format or none Default: auto |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add mcp-ollama-vllm -- uvx mcp-ollama-vllm==1.0.6Add to
claude_desktop_config.json{
"mcpServers": {
"mcp-ollama-vllm": {
"args": [
"mcp-ollama-vllm==1.0.6"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mcp-ollama-vllm": {
"args": [
"mcp-ollama-vllm==1.0.6"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"mcp-ollama-vllm": {
"args": [
"mcp-ollama-vllm==1.0.6"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mcp-ollama-vllm]
command = "uvx"
args = ["mcp-ollama-vllm==1.0.6"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: list_models, local_ask, local_structured, local_embed.
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json