Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

Ollama MCP server

by rawveg/ollama-mcpAGPL-3.0 licenceAudited 6 Oct 2026 · source 78471f5c7f0e

npm ollama-mcp 2.1.0stdio★ 174
!CAUTIONGrade B · 89/100 · 6 Oct 2026 · 78471f5
174GitHub stars

Is it safe? With care — CAUTION, grade B (89/100). It exposes 14 tools: 11 read, 2 write and 1 destructive. The audit recorded 11 findings (0 critical, 0 high, 2 medium, 8 low). Maintainer's description: An MCP Server for Ollama

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Ollama MCP server (rawveg/ollama-mcp)”. Retrieved 6 Oct 2026. https://modelsatlas.com/mcp/rawveg/ollama

3 MCP servers are called Ollama. You are viewing rawveg/ollama-mcp. Compare all 3 →

Trust audit

Audit 0.4.1 · full source read 6 Oct 2026

Trust score89/100!CAUTION B
0 critical0 high2 medium8 low1 info

11 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.

What the source does

  • FilesystemDeclared1 observation
  • NetworkDeclared2 observations
  • ShellNone observedNothing seen in the source
  • DependenciesNot pinnedSome ranges float
  • SecretsNone foundNo keys in source

“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.

Five audit layers

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityPASS
L1 Static sourceSecrets, path traversal, supply chainWARN 9 findings
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS 1 finding
L3 InventoryDeclared tools match the sourceWARN 1 finding
L4 SandboxRun in isolation and watch behaviourSKIPPED

Provenance & runtime

Who published it, and what the audit could and could not run

Provenance

  • Repository owner rawvegUser accountAccount type recorded when we read the repository.
  • PackagePublished on npmollama-mcp at version 2.1.0
  • LicenceAGPL-3.0From the repository, as read at the audited commit.
  • Last push53 days agoActivity of the repository when we read it.
  • Source commit read78471f5c7f0eThe audit covers exactly this commit, read on 6 Oct 2026.

Runtime

  • Sandbox runNot run yetThis audit read the source only; it did not execute the server.
  • Tool inventory14 declaredRead from the source and classed read, write or destructive.

Every value here is read from the record's own repository and audit.Suggest a correction

Findings (11)

Sorted by severity

MEDIUMNetwork egressnet.raw_ip · src/server.ts:23
F-04 Network egressCWE-200 · CWE-319Layer L1
host: process.env.OLLAMA_HOST || 'http://127.0.0.1:11434',
Why
No further detail recorded for this rule.
Fix
—
MEDIUMFilesystem / pathmcp.destructive_tools
F-05 Filesystem / pathCWE-22 · CWE-59Layer L3
ollama_delete
Why
1 tool(s) can delete or overwrite
Fix
prefer a read-only mode or scoped tokens; the page states the blast radius
LOWFilesystem / pathfs.traversal · tests/integration/server.test.ts:45
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
const { createServer } = await import('../../src/server.js');
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · tests/schemas/chat-input.test.ts:2
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { ChatInputSchema } from '../../src/schemas.js';
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · tests/tools/chat.test.ts:3
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { chatWithModel, toolDefinition } from '../../src/tools/chat.js';
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · tests/tools/chat.test.ts:4
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { ResponseFormat } from '../../src/types.js';
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · tests/tools/copy.test.ts:3
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { copyModel, toolDefinition } from '../../src/tools/copy.js';
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · README.md:127
F-04 Network egressCWE-200 · CWE-319Layer L1
| `OLLAMA_HOST` | `http://127.0.0.1:11434` | Ollama server endpoint (use `https://ollama.com` for cloud) |
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · README.md:184
F-04 Network egressCWE-200 · CWE-319Layer L1
"OLLAMA_HOST": "http://127.0.0.1:11434",
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@modelcontextprotocol/sdk, json2md, markdown-table, ollama, zod, @types/node, @vitest/coverage-v8, typescript
Why
9 dependency range(s) float
Fix
pin exact versions or ship a lockfile
INFOPrompt injectionprompt.authority_framing · README.md:23
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- 🔧 **14 Comprehensive Tools** - Full access to Ollama's SDK functionality
Why
No further detail recorded for this rule.
Fix
—

Tools it exposes

14 declared in source · 1 destructive

11 read2 write1 destructive

1 tool can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.

ToolRiskWhat it does
ollama_deletedestructiveDelete a model from local storage. Removes the model and frees up disk space.
ollama_createwriteCreate a new model with structured parameters. Allows customization of model behavior, system prompts, and templates.
ollama_pushwritePush a model to the Ollama registry. Uploads a local model to make it available remotely.
get_weatherreadGet weather
ollama_chatreadChat with a model using conversation messages. Supports system messages, multi-turn conversations, tool calling, and generation options.
ollama_copyreadCopy a model. Creates a duplicate of an existing model with a new name.
ollama_embedreadGenerate embeddings for text input. Returns numerical vector representations.
ollama_generatereadGenerate completion from a prompt. Simpler than chat, useful for single-turn completions.
ollama_listreadList all available Ollama models installed locally. Returns model names, sizes, and modification dates.
ollama_psreadList running models. Shows which models are currently loaded in memory.
ollama_pullreadPull a model from the Ollama registry. Downloads the model to make it available locally.
ollama_showreadShow detailed information about a specific model including modelfile, parameters, and architecture details.
ollama_web_fetchreadFetch a web page by URL using Ollama\
ollama_web_searchreadPerform a web search using Ollama\

Install

Package version 2.1.0 · audited commit 78471f5

Read the findings first. The most severe is Network egress (medium) at src/server.ts.

One-click links open your editor with the config below filled in, exactly as the snippets show it, pinned to version 2.1.0. The audit covers commit 78471f5 only.

claude mcp add ollama-mcp --env OLLAMA_API_KEY=${OLLAMA_API_KEY} -- npx -y [email protected]

The command pins the package version recorded in the source (2.1.0); the audit covers commit 78471f5c7f0e. Transport: stdio. Reads this environment variable: OLLAMA_API_KEY. Give it the narrowest token it needs.

Audit history

  1. !CAUTION B 89 / 100

    First audit · 78471f5c7f0e

README badge

For maintainers · updates on every re-audit

ModelsAtlas: CAUTION BMODELSATLASCAUTION · B
[![ModelsAtlas: CAUTION B](https://modelsatlas.com/mcp/rawveg/ollama/badge.svg)](https://modelsatlas.com/mcp/rawveg/ollama/)

The badge always shows the latest audit; a maintainer cannot pin an old verdict.

Other ratings

Cited, never blended into our score

No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.

Questions about Ollama MCP server

What is the Ollama MCP server?
An MCP Server for Ollama
What tools does Ollama expose?
14 in total: 11 read-only, 2 that write, and 1 that can delete or overwrite (ollama_delete). 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 (89/100) and found 11 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?
It reads OLLAMA_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Ollama run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as ollama-mcp at 2.1.0.
How current is this page?
The grade is for one exact copy of the source (78471f5c7f0e), read on 2026-10-06. The repository is watched and re-audited when it changes.
Which Ollama MCP server is the right one?
emgeee/mcp-ollama. 3 servers share the name; see the side-by-side comparison.

Sources

  • rawveg/ollama-mcp on GitHub — the source we read, its licence, stars and activityObserved · 6 Oct 2026
  • ModelsAtlas trust audit — CAUTION verdict for commit 78471f5c7f0eObserved · 6 Oct 2026

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.