Skip to content
VS Code

ask ollama for VS Code

io.github.lykhoyda/ask-ollama

Bridge Claude with local Ollama LLMs for private AI-to-AI collaboration — no API keys, fully local

client:VS Code transport:stdio runtime:npm

Install ask ollama in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "ollama-host",
      "description": "OLLAMA_HOST",
      "password": true
    },
    {
      "type": "promptString",
      "id": "gmcpt-timeout-ms",
      "description": "GMCPT_TIMEOUT_MS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "gmcpt-log-level",
      "description": "GMCPT_LOG_LEVEL",
      "password": true
    }
  ],
  "servers": {
    "ask-ollama": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ask-llm/ollama-mcp"
      ],
      "env": {
        "OLLAMA_HOST": "${input:ollama-host}",
        "GMCPT_TIMEOUT_MS": "${input:gmcpt-timeout-ms}",
        "GMCPT_LOG_LEVEL": "${input:gmcpt-log-level}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

ask ollama in other clients