Ollama / vLLM Bridge

v1.0.7
io.github.setheerwagen/mcp-ollama-vllm Checked 4 days ago Published 2 days ago

Call your local Ollama or vLLM model over MCP with schema-validated JSON output

Values you need

VariableWhat it is
LOCAL_BACKENDoptional Backend to use: ollama, vllm or openai Default: ollama
LOCAL_HOSToptional Model endpoint URL; must be local or on your own network. Required for the openai backend
LOCAL_API_KEYoptional secret Optional bearer token, openai backend only; sent as a header, never logged
LOCAL_TIMEOUToptional Read timeout in seconds Default: 600
LOCAL_EMBED_MODELoptional Default embedding model Default: nomic-embed-text
LOCAL_EMBED_PATHoptional Optional, openai backend only: embedding endpoint path Default: /v1/embeddings
LOCAL_SCHEMA_MODEoptional 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.6
Add 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

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: list_models, local_ask, local_structured, local_embed.
  4. 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