Atlas / MCP servers / nighttrek / Ollama

OllamaCAUTION

mcp/nighttrek/ollama-2
Verdict
CAUTION
Grade
B
Trust score
86 /100
Exposed tools
10 5r · 4w · 1d
Transport
sse · stdio
License
—
Stars
74
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

🚀 A powerful bridge between Ollama and the Model Context Protocol (MCP), enabling seamless integration of Ollama's local LLM capabilities into your MCP-powered applications.

🌟 Features

Complete Ollama Integration

  • Full API Coverage: Access all essential Ollama functionality through a clean MCP interface
  • OpenAI-Compatible Chat: Drop-in replacement for OpenAI's chat completion API
  • Local LLM Power: Run AI models locally with full control and privacy

Core Capabilities

  • 🔄 Model Management
  • Pull models from registries
  • Push models to registries
  • List available models
  • Create custom models from Modelfiles
  • Copy and remove models
  • 🤖 Model Execution
  • Run models with customizable prompts
  • Chat completion API with system/user/assistant roles
  • Configurable parameters (temperature, timeout)
  • Raw mode support for direct responses
  • 🛠 Server Control
  • Start and manage Ollama server
  • View detailed model information
  • Error handling and timeout management

🚀 Getting Started

Prerequisites

  • Ollama installed on your system
  • Node.js and npm/pnpm

Installation

  1. Install dependencies:
pnpm install
  1. Build the server:
pnpm run build

Configuration

Add the server to your MCP configuration:

For Claude Desktop:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json

{
"mcpServers": {
"ollama": {
"command": "node",
"args": ["/path/to/ollama-server/build/index.js"],
"env": {
"OLLAMA_HOST": "http://127.0.0.1:11434"  // Optional: customize Ollama API endpoint
}
}
}
}

🛠 Usage Examples

Pull and Run a Model

// Pull a model
await mcp.use_mcp_tool({
server_name: "ollama",
tool_name: "pull",
arguments: {
name: "llama2"
}
});

// Run the model
await mcp.use_mcp_tool({
Read from source at commit a68540b923ceOBSERVED · 2026-10-07
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.

claude-code
claude mcp add ollama-mcp -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "ollama-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ]
    }
  }
}
03

Exposed tools (10)

5 read · 4 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
chat_completionreadOpenAI-compatible chat completion API
cpreadCopy a model
createwriteCreate a model from a Modelfile
listreadList models
pullreadPull a model from a registry
pushwritePush a model to a registry
rmdestructiveRemove a model
runwriteRun a model
servewriteStart Ollama server
showreadShow information for a model
04

Trust audit

CAUTIONgrade B · trust 86/100 Install with care. The audit found things worth knowing before you trust its output.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeWARN
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (1 observation(s))
Network
declared (5 observation(s))
Shell
none-observed
Dependencies
not all pinned
Secrets in source
none-found

Findings (6)

MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
src/index.ts:20
const OLLAMA_HOST = process.env.OLLAMA_HOST || 'http://127.0.0.1:11434';
MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
rm
Why it matters. 1 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenance · inv.no_license · CWE-1104
Why it matters. no LICENSE file and no repo licence
Fix. add a licence
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
README.md:64
"OLLAMA_HOST": "http://127.0.0.1:11434"  // Optional: customize Ollama API endpoint
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
README.md:131
- `OLLAMA_HOST`: Configure custom Ollama API endpoint (default: http://127.0.0.1:11434)
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
axios, @types/node, typescript
Why it matters. 3 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: no_behavioural_pass, no_license.

Audited 2026-10-07 · audit v0.4.1 · source sha a68540b923cefull audit observations/trust-audit/mcp-server/nighttrek__ollama-2.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-07a68540b923ceCAUTIONB86first audit
06

Questions

What tools does Ollama expose?

10 in total: 5 read-only, 4 that write, and 1 that can delete or overwrite (rm). Every one is listed on this page with its risk.

Is Ollama safe to connect to an agent?

With care. The audit graded it B (86/100) and found 6 things worth knowing before you trust this server, listed below with the exact line each was found on. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does Ollama need?

No credential environment variables were found in its source, so it appears to need none.

How does Ollama run?

It speaks sse and stdio, so it runs as a local process your client starts. It is published on npm as ollama-mcp at 0.1.0.

How current is this page?

The grade is for one exact copy of the source (a68540b923ce), read on 2026-10-07. The repository is watched and re-audited when it changes.

Advertisement