


What happens during installation
Below is a concise, step-by-step summary of what Cline automates when installing an MCP server (Ollama shown as an example):- Detect an existing Cline MCP settings file to avoid overwriting current servers.
- Create a local MCP directory if one doesn’t already exist.
- Clone the MCP server repository into that directory.
- Install dependencies using the repository’s preferred package manager (pnpm), falling back to npm if pnpm is unavailable.
- Build the server (run the repo’s build script).
- Add the server entry to Cline’s client MCP settings (JSON).
- Start or test the server from Cline and verify tools respond.
Cline checks for an existing MCP settings file and will prompt before making changes. Review prompts carefully to avoid accidental overwrites. Approve steps interactively when asked.
Common shell commands (local example paths)
Run these from a terminal when you need to perform or inspect the same steps manually:pnpm, fallback npm):
pnpm is missing:
If Cline updates your client MCP settings file, back it up first. Make sure the
args path points to the built entrypoint (build/index.js) and that any environment variables (like OLLAMA_HOST) use the correct host/port for your environment.Example MCP settings entry
Cline will propose adding an MCP server entry to your client settings JSON. Below is a canonical example—adjust paths and env values for your machine. Place this in your Cline settings file (path depends on platform and Cline configuration):Verifying the MCP server from Cline
After installation and configuration, Cline can start the MCP server and call its tools. Example interactions:- List installed local models (tool returns structured JSON):
- Request model details (tool returns a human-readable summary):
Quick reference
| Task | Command / Setting | Notes |
|---|---|---|
| Create MCP folder | mkdir -p "/Users/jeremy/Documents/Cline/MCP" | Use your own local path |
| Clone repo | git clone https://github.com/NightTrek/Ollama-mcp.git "/Users/jeremy/Documents/Cline/MCP/Ollama-mcp" | Matches marketplace package source |
| Install deps | pnpm install or npm install | Cline tries pnpm first, then npm |
| Build | npm run build | Use repo-provided build script |
| MCP settings | See JSON snippet above | Ensure args points to built index.js and env vars (e.g., OLLAMA_HOST) are correct |
| Test | Use Cline’s tool interface to list models and show details | Successful responses confirm configuration |
Checklist (final)
- Ensure package manager availability; Cline auto-falls back if needed.
- Back up your client MCP settings before any changes.
- Confirm MCP settings JSON points to the repository’s built entrypoint and includes required
envvalues. - Test by listing models and requesting model details from Cline.